site causes Firefox to hang when scripts are not allowed

Ask for help about NoScript, no registration needed to post
UsabilityDude
Posts: 4
Joined: Mon Jul 28, 2014 2:24 am

site causes Firefox to hang when scripts are not allowed

Post by UsabilityDude »

This page reliably causes Firefox on Mac to hang when scripts are not allowed:
http://billmoyers.com/2015/02/27/libertarian-delusion/
The site is OK if scrips are globally allowed.

Mac OSX 10.9.5 on a MacBook Pro (Intel)
Firefox v36
NoScript 2.6.9.16
I also use Ghostery for Firefox version 5.4.2
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:36.0) Gecko/20100101 Firefox/36.0
barbaz
Senior Member
Posts: 11093
Joined: Sat Aug 03, 2013 5:45 pm

Re: site causes Firefox to hang when scripts are not allowed

Post by barbaz »

Does disabling all extensions other than NoScript get it working? (Tools > Add-ons Manager)
*Always* check the changelogs BEFORE updating that important software!
-
UsabilityDude
Posts: 4
Joined: Mon Jul 28, 2014 2:24 am

Re: site causes Firefox to hang when scripts are not allowed

Post by UsabilityDude »

Just tried disabling all extensions except NoScript. Firefox still hangs on that page.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:36.0) Gecko/20100101 Firefox/36.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: site causes Firefox to hang when scripts are not allowed

Post by Thrawn »

It doesn't hang if you block the site itself...do you need to allow it? Actually, you just need to block cdn.billmoyers.com.

After leaving it long enough, I saw a script hang warning for

Code: Select all

http://cdn.billmoyers.com/wp-content/themes/billmoyers/libs/js/lib/idangerous.swiper.min.js?ver=1.0:15
This appears to be a JavaScript library for mobile devices, so you shouldn't need it. Blocking it with an ABE rule seems to avoid the hang:

Code: Select all

Site ^.*idangerous.swiper.*
Deny
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
barbaz
Senior Member
Posts: 11093
Joined: Sat Aug 03, 2013 5:45 pm

Re: site causes Firefox to hang when scripts are not allowed

Post by barbaz »

Thanks for that Thrawn. By "scripts blocked" I thought UsabilityDude meant "all scripts blocked".

And I was wondering why I had this sense of deja vu reading this thread...
viewtopic.php?f=8&t=20414
Thoughts on merging?

Anyway, once I reproduce the hanging I'll see if it's possible to stop the hanging with a surrogate...
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11093
Joined: Sat Aug 03, 2013 5:45 pm

Re: site causes Firefox to hang when scripts are not allowed

Post by barbaz »

OK, so it looks like you can avoid the hang by allowing the wp.com site that you get in the NoScript menu.
This script is the needed one, no idea if it's surrogateable or not.

The fact it hangs without that third-party script is just asking for trouble. What if wp.com just goes offline for some reason or they move the script without putting in a redirection?

Suggestion: point the webmaster(s) of billmoyers.com to this thread and ask them if they can find a way to host that script on billmoyers.com, because in general third-party scripts are simply not reliable enough for such strong dependencies.
*Always* check the changelogs BEFORE updating that important software!
-
UsabilityDude
Posts: 4
Joined: Mon Jul 28, 2014 2:24 am

Re: site causes Firefox to hang when scripts are not allowed

Post by UsabilityDude »

Thanks for the diagnosis, and thanks so much for all your work on NoScript.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:36.0) Gecko/20100101 Firefox/36.0
Post Reply