10.1.8.17rc8 queryDocStatus loop

Bug reports and enhancement requests
Post Reply
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

10.1.8.17rc8 queryDocStatus loop

Post 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).
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: 10.1.8.17rc8 queryDocStatus loop

Post by Giorgio Maone »

All fixed in the repo, thank you.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Post Reply