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

Bug reports and enhancement requests
Post Reply
koron
Junior Member
Posts: 20
Joined: Wed Jul 18, 2012 1:44 am

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

Post 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.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
daufinsyd
Posts: 2
Joined: Tue Aug 08, 2017 3:58 pm

NoScript doesn't work with last firefox nightly build

Post 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.
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
GreenReaper
Posts: 6
Joined: Tue Aug 08, 2017 5:22 pm

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

Post 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).
Laurence "GreenReaper" Parry
https://greenreaper.co.uk - https://wikifur.com/ - https://www.flayrah.com/ - https://inkbunny.net/ - https://yerf.metafur.org/
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
The009
Posts: 1
Joined: Wed Aug 09, 2017 2:18 am

NoScript completly unusable on FF64 Version 57

Post 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
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

Threads merged.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

Does latest development build 5.0.9rc1 work in latest Nightly without any tweaking?
*Always* check the changelogs BEFORE updating that important software!
-
GreenReaper
Posts: 6
Joined: Tue Aug 08, 2017 5:22 pm

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

Post 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.
Laurence "GreenReaper" Parry
https://greenreaper.co.uk - https://wikifur.com/ - https://www.flayrah.com/ - https://inkbunny.net/ - https://yerf.metafur.org/
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
daufinsyd
Posts: 2
Joined: Tue Aug 08, 2017 3:58 pm

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

Post by daufinsyd »

same here :)
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Post Reply