Opened 3 months ago

Last modified 3 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:

Description

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: https://via.hypothes.is/https://lists.torproject.org/pipermail/tor-onions/2019-January/thread.html

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 bugzilla.mozilla.org doesn't let me create an account. Go easy on me.

Child Tickets

Change History (2)

Note: See TracTickets for help on using tickets.