Closed
Bug 419968
Opened 17 years ago
Closed 12 years ago
JSEventListener has wrong script context, for Python Dom event handlers
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
DUPLICATE
of bug 807226
People
(Reporter: twhitema, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b4pre)
Build has the extensions/python extensions enabled and debug enabled. Opening the pyxul test script "chrome://pyxultest/content/pyxultest.xul" window, I receive the following assertion error for every dom event Python handles:
###!!! ASSERTION: JSEventListener has wrong script context?: 'stack &&
NS_SUCCEEDED(stack->Peek(&cx)) && cx && GetScriptContextFromJSContext(cx) ==
mContext', file
/home/toddw/src/mozilla/src/trunk_debug_2/mozilla/dom/src/events/nsJSEventListener.cpp,
line 244
The actual event handling seems to work correctly, so I'm unsure if this is simply a logging error, or there is a real bug in there.
Note: This is a follow-on from bug 419765.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•17 years ago
|
||
That assertion was added in bug 347480. Probably should check mContext->GetScriptTypeID for JS before asserting. And we really should rename nsJSEventListener now that it can be used for more than JS.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Version: unspecified → Trunk
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•