Opened 21 months ago

Last modified 21 months ago

#29451 new defect

document.body must not return null at document_end state

Reported by: cypherpunks Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Major Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Manifest: "content_scripts":[{ "all_frames": true, "matches": https://*/*?, "js": test.js?, "run_at": "document_end" }],

test.js: document.body.addEventListener(...)

And try to open this page:

Final Result: "TypeError: document.body is null" in Browser Console.

Expected result: No error, because the script run at document_end

Tested on: Tor Browser 8.0.5

May affect on: Firefox 60.5.0esr

The reason why I post this here is doesn't let me create an account. Go easy on me.

Child Tickets

Change History (2)

Note: See TracTickets for help on using tickets.