Closed
Bug 290659
Opened 20 years ago
Closed 20 years ago
Using the Event.prototype.__defineGetter__ or Event.prototype.__defineSetter__ fails
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 290777
People
(Reporter: randy, Assigned: bugzilla)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Using the component at the URL in this bug report
(http://webfx.eae.net/dhtml/ieemu/) the __definGetter__ or __defineSetter
returns the following error.
Error: [Exception... "Illegal operation on WrappedNative prototype object"
nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame ::
http://localhost:3000/All/JavaScript/ieemu.js :: anonymous :: line 39" data: no]
Source File: http://localhost:3000/All/JavaScript/ieemu.js
Line: 39
Reproducible: Always
Steps to Reproduce:
1. Mouse over an element that has a trigger from that module
Actual Results:
The JavaScript console reported the following error:
Error: [Exception... "Illegal operation on WrappedNative prototype object"
nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame ::
http://localhost:3000/All/JavaScript/ieemu.js :: anonymous :: line 39" data: no]
Source File: http://localhost:3000/All/JavaScript/ieemu.js
Line: 39
Expected Results:
It should have evaluated the statement on line 39 which is
if (this.type == "mouseout")
Reporter | ||
Comment 1•20 years ago
|
||
This is the actual code that shows to have a problem.
Updated•20 years ago
|
Component: General → JavaScript Engine
Keywords: testcase
Product: Firefox → Core
Version: unspecified → 1.0 Branch
Reporter | ||
Comment 2•20 years ago
|
||
Further on this bug, it is related to the 'this.type' evaluation on line 39.
It appears that 'this' does not reference the window.event object. I was able
to work around the code by changing the file as attached. Hopefully this will
help others that come looking later. I don't think the subject accurately
describes the bug any longer, but it was what I had thought was the issue
previously when initially submitting the bug.
Comment 4•20 years ago
|
||
*** This bug has been marked as a duplicate of 290777 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•