Closed Bug 559231 Opened 11 years ago Closed 11 years ago

"ASSERTION: Bad caller!" setting iframe src to javascript: url

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: mrbkap)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
###!!! ASSERTION: Bad caller!: 'system', file /Users/jruderman/mozilla-central/js/src/xpconnect/src/xpccomponents.cpp, line 3562
The testcase has to be loaded as a local file to trigger the bug.  Maybe it needs the Firefox-generated error page?
Attached patch FixSplinter Review
Bogus assertion: always have to deal with the "no code running" case (it'd be pretty nice if the caps API communicated this instead of picking the basically random principal out of the context's globalObject pointer).

NB: I haven't actually reproduced the assertion, but I'm pretty sure this is the fix.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #439411 - Flags: review?(jst)
Attachment #439411 - Flags: review?(jst) → review+
http://hg.mozilla.org/mozilla-central/rev/5ae5e8a40b4f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.