crash [@ IsChromeURI] Loading an overlay using loadOverlay into an uninitialized XULDocument

NEW
Unassigned

Status

()

Core
XUL
--
critical
11 years ago
7 years ago

People

(Reporter: Nickolay_Ponomarev, Unassigned)

Tracking

({crash})

Firefox Tracking Flags

(Not tracked)

Details

(crash signature)

(Reporter)

Description

11 years ago
Loading an overlay using loadOverlay into an uninitialized XULDocument crashes:
var xulDoc = Components.classes["@mozilla.org/xul/xul-document;1"].createInstance(Components.interfaces.nsIDOMXULDocument); xulDoc.loadOverlay("chrome://browser/content/",null);

Discovered by dkirsch on irc.

IsChromeURI(aURI=0x00000000)  Line 146	C++
nsXULDocument::LoadOverlayInternal(aURI=0x03f6d558, aIsDynamic=0x00000001, aShouldReturn=0x0012e794, aFailureFromContent=0x0012e78c)  Line 2694	C++
nsXULDocument::LoadOverlay(aURL={...}, aObserver=0x00000000)  Line 2656	C++
NS_InvokeByIndex(that=0x00000011, methodIndex=0x00000002, paramCount=0x0012e904, params=0x00d01894)  Line 102	C++
XPCWrappedNative::CallMethod(ccx={...}, mode=0x00000011)  Line 2247	C++
XPCWrappedNative::CallMethod(ccx={...}, mode=CALL_METHOD)  Line 2247	C++
XPC_WN_CallMethod(cx=0x040cb0a8, obj=JSObject [... slots], argc=0x00000002, argv=0x04120610, vp=0x0012ebac)  Line 1464	C++
js_Invoke(cx=0x040cb0a8, argc=0x00000002, flags=0x00000000)  Line 1353	C
js_Interpret(cx=0x040cb0a8, pc=0x00d40b1c, result=0x0012f1ac)  Line 4042	C
js_Execute(cx=0x040cb0a8, chain=JSObject [... slots], script=JSScript "javascript: var%20xulDoc%20%3D%20Components.classes%5B%22%40mozilla.org%2Fxul%2Fxul-document%3B1%22%5D.createInstance(Components.interfaces.nsIDOMXULDocument)%3BxulDoc.loadOverlay(%22chrome%3A%2F%2Fbrowser%2Fcontent%2F%22%2Cnull)%3B%20", down=0x00000000, flags=0x00000000, result=0x0012f2d8)  Line 1612	C

Updated

9 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
(Assignee)

Updated

7 years ago
Crash Signature: [@ IsChromeURI]
You need to log in before you can comment on or make changes to this bug.