STR:
Create new profile, install NoScript, restart
After restart the following message is shown:

Go to any webpage that uses scripts, for ex. http://www.vimeo.com
Scripts are supposed to be blocked but they are not.
Code: Select all
get service() {
var ns = null;
for(var attempt=1; attempt <= 2 ;attempt++) {
try {
ns = Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject;
break;
} catch(ex) {
dump(ex.message);
window.navigator.plugins.refresh();
}
}
if(ns != null) {
ns.init();
}
delete this.service;
return this.service = ns;
},
Hmm...that's a shame, in some ways, although I expect that there's no way to really secure Firefox 3.0 anyway.Giorgio Maone wrote:I'm finally forced to switch all the loops to for...of, which means raising the lowest Gecko compatible version from 3.0.1 to 13.
I can't test now, but would this idea work?Thrawn wrote:Just hypothetically, since JavaScript is interpreted, is it possible to implement some kind of feature detection and use the appropriate loop syntax for the platform?
Code: Select all
try {
let unimportant_iterable = [2,3];
for (let item of unimportant_iterable) {
item+= 2;
}
} catch(e){
// for-of loop unsupported
}