Closed
Bug 643773
Opened 15 years ago
Closed 15 years ago
"ASSERTION: CheckLoadURIWithPrincipal must have a principal" with InstallTrigger
Categories
(Core :: Security: CAPS, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: mossop)
References
Details
(Keywords: assertion, testcase, Whiteboard: [sg:dupe 645699])
Attachments
(2 files)
###!!! ASSERTION: CheckLoadURIWithPrincipal must have a principal: 'aPrincipal', file caps/src/nsScriptSecurityManager.cpp, line 1397
| Reporter | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
jst thinks the fact that the principal is null may imply some of the JS this passes through is chrome-privileged code. Not sure if there's something scary going on here.
Comment 3•15 years ago
|
||
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/content/extensions-content.js#175
175 checkLoadURIFromScript: function(aUri) {
176 var secman = Cc["@mozilla.org/scriptsecuritymanager;1"].
177 getService(Ci.nsIScriptSecurityManager);
178 var principal = this.window.content.document.nodePrincipal;
179 try {
180 secman.checkLoadURIWithPrincipal(principal, aUri,
181 Ci.nsIScriptSecurityManager.DISALLOW_INHERIT_PRINCIPAL);
182 return true;
183 }
184 catch(e) {
185 return false;
186 }
187 }
principal is undefined here, since this.window is a SJOW, and thus
this.window.content.document is not a real document.
this.window being a SJOW is not good. Please see bug 645699.
| Reporter | ||
Comment 4•15 years ago
|
||
Does the patch in bug 645699 fix this bug?
Comment 5•15 years ago
|
||
If this isn't fixed by bug 645699 then it probably bounces back to mrbkap. But assigning to mossop for now.
Assignee: nobody → dtownsend
| Assignee | ||
Comment 6•15 years ago
|
||
This was fixed by bug 645699
Updated•15 years ago
|
Whiteboard: [sg:dupe 645699]
Updated•11 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•