The default bug view has changed. See this FAQ.

Accessing location property on DOM exceptions throws

NEW
Unassigned

Status

()

Core
DOM
9 years ago
8 years ago

People

(Reporter: Joao Eiras, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

455 bytes, text/html
Details
(Reporter)

Description

9 years ago
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
(Reporter)

Comment 1

9 years ago
Created attachment 323451 [details]
testcase
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
Created attachment 323537 [details]
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

Comment 4

9 years ago
Yep, tripped over this trying to serialize objects to JSON.
You need to log in before you can comment on or make changes to this bug.