Last Comment Bug 436953 - Accessing location property on DOM exceptions throws
: Accessing location property on DOM exceptions throws
Status: NEW
:
Product: Core
Classification: Components
Component: DOM (show other bugs)
: Trunk
: All All
: -- normal with 2 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-02 16:35 PDT by Joao Eiras
Modified: 2009-07-08 10:17 PDT (History)
4 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
testcase (585 bytes, text/html)
2008-06-02 16:36 PDT, Joao Eiras
no flags Details
testcase (455 bytes, text/html)
2008-06-03 02:37 PDT, Peter Van der Beken [:peterv]
no flags Details

Description Joao Eiras 2008-06-02 16:35:45 PDT
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
Comment 1 Joao Eiras 2008-06-02 16:36:44 PDT
Created attachment 323451 [details]
testcase
Comment 2 Peter Van der Beken [:peterv] 2008-06-03 02:31:28 PDT
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.
Comment 3 Peter Van der Beken [:peterv] 2008-06-03 02:37:50 PDT
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'.
Comment 4 Matthew Eernisse 2008-11-20 07:34:13 PST
Yep, tripped over this trying to serialize objects to JSON.

Note You need to log in before you can comment on or make changes to this bug.