-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: can't access dead object in patchWindow.js #4
Comments
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:
The issue doesn't come up when using Tor Browser security level "Normal". |
Hi, thank you for the report and the reduced test case. |
Hello, I've recently made some changes to the script injection machinery recently which are likely to affect this issue. |
I have been seeing this problem in Firefox on Android. I am on version 11.4.25 of the extension. |
Thank you very much for this test case. I could reproduce indeed, and I'm investigating it. |
First, I apologize as I cannot reproduce consistently the issue and cannot share the code that leads to it (it is from a private website). If this bug report is useless, feel free to close it.
So, this happens on a fairly complex javascript application that manipulates the DOM and uses Web Workers. The browser used is Tor Browser 11.0.14, based on Mozilla Firefox 91.10.0esr, in its default configuration (so, noscript is enabled by default). Sometimes, when using the application, all DOM manipulations seem to stop working, and a page reload is required. Specifically, running:
document.createElement("div").appendChild(document.createElement("div"))
in the browser javascript console throws a DOMException. When catched with a try-catch block, the catched error is
undefined
. Using the browser debugger step by step shows the original exception. On line 285 of the NSCLpatchWindow.js
, this:for (let j = 0; j in win; j++) {
produces this exception:
TypeError: can't access dead object
and indeed,
win
appears asDeadObject
in the browser debugger. See MDN about dead objects:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Dead_object
Do you know if the issue might be coming from your software or if I'm looking in the wrong direction?
The text was updated successfully, but these errors were encountered: