"Allow sites to push their own rulesets" causes crashes
Posted: Tue Jun 16, 2015 10:51 pm
"Allow sites to push their own rulesets" causes Firefox to crash on certain websites.
I've been trying for the past few days to determine exact steps to reproduce, but I have been unsuccessful. I suspect there is something like a race condition occurring, because of the nature of the results I've observed ...
I have two separate Firefox profiles which can reproduce the issue near 100% of the time on particular websites. In these profiles, I can prevent the issue (at or near 100% of the time) on all 3 sites I've taken note of being affected by unchecking "Allow sites to push their own rulesets". Alternatively, I can prevent the issue on 2 of the 3 sites by disabling HTTPS Everywhere.
The affected sites include runnersworld.com and two other sites which are not public.
Because I have not been able to reproduce in a fresh profile, I have attempted to narrow down the variables involved both on the profile side and the website side.
On the website side (for the two non-public sites), I have tried to determine what page element(s) are triggering the issue by removing things one by one on a test page. I have not been successful in identifying exactly what is triggering the issue because the results become inconsistent, though I've noticed that the more things I delete from the page, the less frequently the issue occurs ... down to under 20% (remember that the issue occurs near 100% of the time before I start taking things out of the page).
On the profile side, I have tried to determine what extensions or settings might be involved in triggering the issue, but again I have not been successful because the results become inconsistent. I can still reproduce the issue near 100% of the time when all extensions other than NoScript have been disabled for 1 of the 3 sites. For all 3 of the sites, I can still reproduce the issue near 100% of the time when all extensions other than NoScript and HTTPS Everywhere have been disabled. Once I start removing customizations from my prefs.js and deleting other profile folder files, the frequency of the crashes decreases, again down to under 20%.
These results lead me to believe there may be something like a race condition which is preventing consistent reproduction of the issue which appears to me to originate in the "Allow sites to push their own rulesets" code.
BTW, I have Firefox set to clear my browser history on exit; I noticed that, once an affected page has made it into the browser cache (in an instance where it doesn't crash), it doesn't seem to cause crashes on subsequent navigation to the same page until I re-open Firefox.
Help!
EDIT:
Occurs with just the following changes from default NoScript configuration:
- check "Scripts Globally Allowed (dangerous)"
- check "Allow sites to push their own rulesets"
EDIT 2:
Also note that I have a very slow Internet connection (1 Mbps), which may be relevant.
EDIT 3:
I have now been able to reproduce in a fresh profile with just NoScript and HTTPS Everywhere installed, but only sporadically (maybe 10% of the time). Keep in mind that HTTPS Everywhere is not strictly necessary to reproduce this bug; it seems that the bug is simply more likely to be triggered when the browser is doing more things.
Updated list of sites known to be affected:
runnersworld.com
sears.com
googleonlinesecurity.blogspot.com
addons.prestashop.com
I've been trying for the past few days to determine exact steps to reproduce, but I have been unsuccessful. I suspect there is something like a race condition occurring, because of the nature of the results I've observed ...
I have two separate Firefox profiles which can reproduce the issue near 100% of the time on particular websites. In these profiles, I can prevent the issue (at or near 100% of the time) on all 3 sites I've taken note of being affected by unchecking "Allow sites to push their own rulesets". Alternatively, I can prevent the issue on 2 of the 3 sites by disabling HTTPS Everywhere.
The affected sites include runnersworld.com and two other sites which are not public.
Because I have not been able to reproduce in a fresh profile, I have attempted to narrow down the variables involved both on the profile side and the website side.
On the website side (for the two non-public sites), I have tried to determine what page element(s) are triggering the issue by removing things one by one on a test page. I have not been successful in identifying exactly what is triggering the issue because the results become inconsistent, though I've noticed that the more things I delete from the page, the less frequently the issue occurs ... down to under 20% (remember that the issue occurs near 100% of the time before I start taking things out of the page).
On the profile side, I have tried to determine what extensions or settings might be involved in triggering the issue, but again I have not been successful because the results become inconsistent. I can still reproduce the issue near 100% of the time when all extensions other than NoScript have been disabled for 1 of the 3 sites. For all 3 of the sites, I can still reproduce the issue near 100% of the time when all extensions other than NoScript and HTTPS Everywhere have been disabled. Once I start removing customizations from my prefs.js and deleting other profile folder files, the frequency of the crashes decreases, again down to under 20%.
These results lead me to believe there may be something like a race condition which is preventing consistent reproduction of the issue which appears to me to originate in the "Allow sites to push their own rulesets" code.
BTW, I have Firefox set to clear my browser history on exit; I noticed that, once an affected page has made it into the browser cache (in an instance where it doesn't crash), it doesn't seem to cause crashes on subsequent navigation to the same page until I re-open Firefox.
Help!
EDIT:
Occurs with just the following changes from default NoScript configuration:
- check "Scripts Globally Allowed (dangerous)"
- check "Allow sites to push their own rulesets"
EDIT 2:
Also note that I have a very slow Internet connection (1 Mbps), which may be relevant.
EDIT 3:
I have now been able to reproduce in a fresh profile with just NoScript and HTTPS Everywhere installed, but only sporadically (maybe 10% of the time). Keep in mind that HTTPS Everywhere is not strictly necessary to reproduce this bug; it seems that the bug is simply more likely to be triggered when the browser is doing more things.
Updated list of sites known to be affected:
runnersworld.com
sears.com
googleonlinesecurity.blogspot.com
addons.prestashop.com