Closed
Bug 606039
Opened 15 years ago
Closed 15 years ago
CSP - invalid scheme in directive value causes exception
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 548949
People
(Reporter: bsterne, Assigned: geekboy)
References
(Blocks 1 open bug)
Details
To reproduce, send a policy such as:
X-Content-Security-Policy: allow foo:
The following exception goes uncaught:
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "this._host.clone is not a function" {file: "resource://gre/modules/CSPUtils.jsm" line: 1082}]' when calling method: [nsIContentSecurityPolicy::refinePolicy]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "<unknown>" data: yes]
************************************************************
Should that line just be:
aClone._host = this._host ? this._host : undefined;
Assigning to :geekboy 'cause he'll fix this quick-like.
| Assignee | ||
Comment 1•15 years ago
|
||
I think this is solved by the patch in bug 548949.
| Assignee | ||
Comment 2•15 years ago
|
||
Confirmed fixed in http://hg.mozilla.org/mozilla-central/rev/91a749304ec9 (which is newer than the rev where bug 548949 landed).
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•