[FIXED] Local html file fails if Firefox isn't already running

Ask for help about NoScript, no registration needed to post
User avatar
selden
Posts: 4
Joined: Sat Jan 26, 2013 2:15 pm

[FIXED] Local html file fails if Firefox isn't already running

Post by selden » Sat Feb 06, 2021 2:26 pm

I'm using
NoScript 11.2
FireFox 85.0.2 (64-bit)
Windows 10 Pro x64 20H2

Interactive Fiction compiler tweego 2.1.1
Interactive Fiction story format SugarCube 2.34.1

A story created using tweego and SugarCube is an HTML file containing javascript.
----
Problem:
Interactive Fiction stories fail with a runtime error when Firefox v85.0.1 is NOT already open and I click on (select) an HTML file generated by tweego. This problem is also encountered when Firefox is NOT already open and I “drag and drop” the HTML file onto Firefox’s desktop icon.

The runtime error message is
Error: can’t redefine non-cofigurable property “_real_stringify”.

This problem is NOT seen if I disable the NoScript add-on or if the story is opened in a copy of Firefox which is already running.

According to the author of tweego and SugarCube, this problem seems to have started after some recent change to NoScript and is not something he can fix.

A discussion of this problem can be seen at https://intfiction.org/t/firefox-compat ... lems/49305

A copy of a failing story HTML (minimum.html) is available in this Zip file:
https://www.classe.cornell.edu/~seb/files/minimum.zip (140 KB, expands to 490 KB)

Thanks for whatever help you can provide.
Selden
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

User avatar
Giorgio Maone
Site Admin
Posts: 9034
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Local html file fails if Firefox isn't already running

Post by Giorgio Maone » Sat Feb 06, 2021 10:19 pm

Thank you for your report.
I couldn't reproduce your issue as described, likely because I couldn't try on a Windows machine, but I could produce the same effect by disabling and re-enabling NoScript from the add-ons manager.

I'm not sure the root cause is the same, but I could fix my own instance in latest development build. Could you please check if this fixes your instance as well? Thanks.

v 11.2.1rc1
============================================================
x Prevent double script on trusted file:// pages in some
edge cases

x Updated events archive
x Prevent detection of wrapped functions (e.g. in WebGL
interception) on Chromium
x Updated TLDs
x Merge German language update
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

barbaz
Senior Member
Posts: 9831
Joined: Sat Aug 03, 2013 5:45 pm

Re: Local html file fails if Firefox isn't already running

Post by barbaz » Sat Feb 06, 2021 11:19 pm

Giorgio Maone wrote:
Sat Feb 06, 2021 10:19 pm
v 11.2.1rc1
============================================================
x Prevent double script on trusted file:// pages in some
edge cases

x Updated events archive
x Prevent detection of wrapped functions (e.g. in WebGL
interception) on Chromium
x Updated TLDs
x Merge German language update
(11.2.1rc1 xpi is not signed.)
*Always* check the changelogs BEFORE updating that important software!
-

User avatar
Giorgio Maone
Site Admin
Posts: 9034
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Local html file fails if Firefox isn't already running

Post by Giorgio Maone » Sun Feb 07, 2021 11:35 am

barbaz wrote:
Sat Feb 06, 2021 11:19 pm
(11.2.1rc1 xpi is not signed.)
It was on AMO, but messed up with the synchronization. Fixed, thanks.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0

User avatar
selden
Posts: 4
Joined: Sat Jan 26, 2013 2:15 pm

Re: Local html file fails if Firefox isn't already running

Post by selden » Sun Feb 07, 2021 3:31 pm

Version 11.2.1rc1 does indeed fix the problem.

Thanks, a lot!
Selden
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

Post Reply