Page 1 of 1

[FIXED] NS doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Tue Aug 08, 2017 2:05 pm
by koron
On 0808 nightly, NoScript shows exception "this.mappings is undefined" and doesn't work at all.

Root cause is that Bug 1374847 was fixed.
nsIPrefBranch2 no longer exists, so Qi of nsIPrefBranch2 at ScriptSurrogate.js(line 22) fails.

NoScript doesn't work with last firefox nightly build

PostPosted: Tue Aug 08, 2017 4:33 pm
by daufinsyd
Hi :)

I updated firefox nightly to the today's build but since NoScript isn't working anymore.
JS scripts are blocked nonetheless the drop down menu of NoScript isn't displayed.

Re: NoScript doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Tue Aug 08, 2017 5:37 pm
by GreenReaper
Indeed, it is Bug 1374847 - but in fact it is more than just that file:

  • Main.js
  • ScriptSurrogate.js
  • ABE.js
  • URIValidator.js
  • ExternalFilters.js
These files are inside the /content/noscript folder, itself inside chrome/noscript.jar in the 528KB .xpi (for me, {73a6fe31-595d-460b-a920-fcc0f8843232}.xpi) in %AppData%\Mozilla\Firefox\Profiles\[your profile name]\extensions.

You have to extract the noscript.jar from the .xpi (I used 7-zip for this), replace all the references in the .js files, copy them back inside the .jar, then replace the .jar inside the .xpi (which requires the browser to be closed). Note that you cannot double-click the .jar from within the .xpi in 7-zip, it does not support replacing files within an archive opened within an archive.

Once that is done . . . it probably still will not work because it cannot be verified. Open about:config and change xpinstall.signatures.required to false, then restart the browser. Then it works. Hopefully the developers can patch this up to work soon (and keep working with older clients, if relevant).

NoScript completly unusable on FF64 Version 57

PostPosted: Wed Aug 09, 2017 2:25 am
by The009
NS will not allow any JavaScript to run in the browser and not a single menu in the application works.

This is using the latest Nightly Release of FireFox.

It worked just fine 56 but something has changed in 57 that it is no longer usable.

I can help provide more info if you let me know what you need.

Quick Edit, this also includes NS Beta RC1

Re: NoScript doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Wed Aug 09, 2017 2:38 am
by barbaz
Threads merged.

Re: NoScript doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Wed Aug 09, 2017 3:15 am
by barbaz
I confirm that GreenReaper's workaround works.

GreenReaper wrote:You have to extract the noscript.jar from the .xpi (I used 7-zip for this), replace all the references in the .js files,

What you need to replace is "nsIPrefBranch2" replace with "nsIPrefBranch". You also need to delete the META-INF directory from the .xpi - it only contains the addon's signature, which won't be valid after the modifications.

GreenReaper wrote:Hopefully the developers can patch this up to work soon (and keep working with older clients, if relevant).

NoScript supported browsers are based on Gecko 45 and up.

nsIPrefBranch2 is only needed for Gecko 12 and below, i.e. not at all in current NoScript.

Re: NoScript doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Wed Aug 09, 2017 9:08 pm
by barbaz
Does latest development build 5.0.9rc1 work in latest Nightly without any tweaking?

Re: NoScript doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Wed Aug 09, 2017 9:19 pm
by GreenReaper
barbaz wrote:Does latest development build 5.0.9rc1 work in latest Nightly without any tweaking?

It does appear to work on the 9 Aug 64-bit Windows build, though I am not a regular user of some of the more advanced features.

Re: NoScript doesn't work on 0808 nightly due to Bug 1374847

PostPosted: Thu Aug 10, 2017 8:00 am
by daufinsyd
same here :)