Open Bug 522388 Opened 16 years ago Updated 3 years ago

"ASSERTION: Unable to get an nsIScriptGlobalObject from the ScriptGlobalObjectOwner!" with <video src="javascript:">

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
macOS
defect

Tracking

()

Tracking Status
firefox-esr52 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

###!!! ASSERTION: Unable to get an nsIScriptGlobalObject from the ScriptGlobalObjectOwner!: 'global', file /Users/jruderman/central/dom/src/jsurl/nsJSProtocolHandler.cpp, line 166
Still happens on trunk.
There are a bunch of places that we could fix this assertion... I don't know where the right place is though, and the code deals with not having a script global object well enough. Basically JS urls assert that they can get an SGO. When they can't, they bail, and because the video code loads the URL on an event, the SGO is NULL by the time the JS URL starts to load.
http://hg.mozilla.org/mozilla-central/rev/b2a70e08c9a0 changed the assertion slightly: ###!!! ASSERTION: Unable to get an nsIScriptGlobalObject from the docShell!: 'global', file dom/src/jsurl/nsJSProtocolHandler.cpp, line 133
First testcase doesn't reproduce anymore for me on trunk, but the second one does still.
Has Regression Range: --- → no
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: