Comments (5)
I found a way to reproduce the issue consistently with a minimal code example. It looks like the issue comes either from the NSCL or from Firefox / Tor Browser? Steps to reproduce the issue:
- Create a file
first.html
:
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<button onclick="document.createElement('div').appendChild(document.createElement('div'));">
Add something to the DOM
</button>
<br/>
<a href="second.html">second.html</a>
</body>
</html>
- Create a file
second.html
:
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
</body>
</html>
-
Open Tor Browser 11.0.14, based on Mozilla Firefox 91.10.0esr, NoScript version 11.4.6, and set the Tor Browser security level to "Safer". Open the browser console to monitor the issue.
-
Open
first.html
as a local file. Click the button, no issue. Click the link. Go back to the previous page using the browser "left arrow" button. Click the button again, aDOMException
is thrown. The browser console indicates the exception comes frompatchWindow.js:299
. Using the browser debugger seems to indicate the initial exception comes frompatchWindow.js:285
.
The issue doesn't come up when using Tor Browser security level "Normal".
from nscl.
I have been seeing this problem in Firefox on Android.
On initial load of a Wikipedia page, tapping the article section headers successfully expands/collapses that section of the article. However, if I tap a link within the article to go to a different article, and then I use the Back button to go back to the original article, tapping the article section headers will no longer expand/collapse the section. When I attached Firefox debugging, I see that tapping the section header triggers the same 'TypeError: can't access dead object' error for the 'win' object in the line 'for (let j = 0; j in win; j++)' reported in this issue.
I am on version 11.4.25 of the extension.
from nscl.
Hi, thank you for the report and the reduced test case.
At first glance, it seems a lifecycle mismatch between the page retrieved from BF Cache and the extension content script.
Not your code's fault, anyway.
Investigating...
from nscl.
Hello, I've recently made some changes to the script injection machinery recently which are likely to affect this issue.
Can you still reproduce on NoScript 11.4.19rc3?
Thanks!
from nscl.
On initial load of a Wikipedia page
Thank you very much for this test case. I could reproduce indeed, and I'm investigating it.
from nscl.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nscl.