Closed Bug 295200 Opened 20 years ago Closed 20 years ago

Crash calling createRange on a wrapped document

Categories

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

x86
All
defect
Not set
blocker

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.
Blocks: 281988
confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050523 Firefox/1.0+
This looks a lot like the crash I'm seeing in bug 295101
Depends on: 295101
Fixed by patch in bug 295101.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.