Closed
Bug 295200
Opened 19 years ago
Closed 19 years ago
Crash calling createRange on a wrapped document
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: neil, Unassigned)
References
Details
Steps to reproduce problem: 1. Open the JavaScript console 2. Evaluate (new XPCNativeWrapper(top.document)).createRange() Expected result: [object Range] Actual result: Crash in JS_GetClass jsapi.c:2040 JSVAL_TO_PRIVATE(GC_AWARE_GET_SLOT(cx, obj, JSSLOT_CLASS)); Additional information: Evaluating (new XPCNativeWrapper(top.document)).toString() displays [XPCNativeWrapper [object XULDocument]] Evaluating "" + (new XPCNativeWrapper(top.document)) displays [object XULDocument] Evaluating (new XPCNativeWrapper(top.document)) fails with an assertion at nsFrameLoader.cpp:170 Note: the code works in an extension with autowrapping enabled.
Comment 1•19 years ago
|
||
confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050523 Firefox/1.0+
Comment 3•19 years ago
|
||
Fixed by patch in bug 295101.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•