Page 1 of 1

10.1.8.17rc8 queryDocStatus loop

Posted: Thu Aug 23, 2018 10:24 am
by skriptimaahinen
But before the main bug, some small fries first:

XSS.js:64

Code: Select all

                   v
await include("bg/COntentScriptOnce.js");
content.js:188

Code: Select all

                                               v
now() - performance.timing.domContentLoadedEvenStart < 5000)) {

content.js:178

Code: Select all

({canScript, shouldScript} = await Messages.send("queryDocStatus", {url: document.URL}));
If NS Options page is open, the above line will throw error on any page load:

Code: Select all

Error querying docStatus TypeError: "undefined has no properties"
(Note that debug has been disabled for content.js even if the debug option is selected, so you won't see this by default)

This results in a infinite init() loop (until the Options page is closed).

Re: 10.1.8.17rc8 queryDocStatus loop

Posted: Thu Aug 23, 2018 3:15 pm
by Giorgio Maone
All fixed in the repo, thank you.