Closed
Bug 1300778
Opened 8 years ago
Closed 8 years ago
RemotePageManager.jsm should not use window.document.documentURI to identify websites
Categories
(Core :: DOM: Content Processes, defect)
Core
DOM: Content Processes
Tracking
()
RESOLVED
INVALID
People
(Reporter: freddy, Unassigned)
References
Details
Snippets of affected code:
> this.messageManager.sendAsyncMessage("RemotePage:InitPort", {
> portID: portID,
> url: window.document.documentURI.replace(/[\#|\?].*$/, ""),
> });
and
> let url = window.document.documentURI.replace(/[\#|\?].*$/, "");
> if (!registeredURLs.has(url))
Christoph (in CC) said documentURI can be clobbered, so we should prefer |window.location.origin|
Reporter | ||
Comment 1•8 years ago
|
||
documentURI is readonly.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•