Closed Bug 643773 Opened 15 years ago Closed 15 years ago

"ASSERTION: CheckLoadURIWithPrincipal must have a principal" with InstallTrigger

Categories

(Core :: Security: CAPS, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: mossop)

References

Details

(Keywords: assertion, testcase, Whiteboard: [sg:dupe 645699])

Attachments

(2 files)

Attached file testcase —
###!!! ASSERTION: CheckLoadURIWithPrincipal must have a principal: 'aPrincipal', file caps/src/nsScriptSecurityManager.cpp, line 1397
Attached file stack trace —
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.
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.
Does the patch in bug 645699 fix this bug?
If this isn't fixed by bug 645699 then it probably bounces back to mrbkap. But assigning to mossop for now.
Assignee: nobody → dtownsend
This was fixed by bug 645699
Status: NEW → RESOLVED
Closed: 15 years ago
Depends on: CVE-2011-2370
Resolution: --- → FIXED
Whiteboard: [sg:dupe 645699]
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: