Open Bug 436953 Opened 16 years ago Updated 2 years ago

Accessing location property on DOM exceptions throws

Categories

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

defect

Tracking

()

People

(Reporter: joao.eiras, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008060204 Minefield/3.1a1pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008060204 Minefield/3.1a1pre

1. let x be an XPathException
2. for(var p in x) throws the following exception
message: Permission denied to create wrapper for object of class UnnamedClass
fileName: file:///C:/Documents%20and%20Settings/jce/Desktop/o_bugs/ffbug_1.html
lineNumber: 11
stack: location()@:0
dump([object XPathException])@file:///C:/Documents%20and%20Settings/jce/Desktop/o_bugs/ffbug_1.html:11
@file:///C:/Documents%20and%20Settings/jce/Desktop/o_bugs/ffbug_1.html:21



Reproducible: Always
Attached file testcase (obsolete) —
This isn't specific to XPathExceptions, it happens for all DOM exceptions. It seems to throw when accessing the location property, which is a XPCJSStackFrame.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Summary: for in enumeration over xpathexception throws → Accessing location property on DOM exceptions throws
Attached file testcase
This just tries to access the location property of the exception, which throws 'Permission denied to create wrapper for object of class UnnamedClass'.
Attachment #323451 - Attachment is obsolete: true
Yep, tripped over this trying to serialize objects to JSON.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
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: