Error: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: masayuki, Unassigned, NeedInfo)
References
Details
(Keywords: regression)
Attachments
(1 file)
812 bytes,
text/html
|
Details |
We cannot use dispatchEvent in Javascript(see testcase). I think that it is regression of bug 296704. It blocks bug 259454.
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
See this testcase. focus is set to first anchor, press enter. If the javascript code is successed, you can show the alert dialog that text is "success". But if the code is failed, you can see this message in Javascript console. Error: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" 20050621 build doesn't have this problem. but my build that is from CVS is failed this. This bug is blocks bug 259454 that is very important bug for CJK users. Please hurry up to fix this regression!
Reporter | ||
Comment 3•19 years ago
|
||
Debug build returns following log. WARNING: NS_ENSURE_TRUE(!NS_IS_EVENT_IN_DISPATCH(innerEvent)) failed, file m:/mozilla-d/mozilla/content/events/src/nsEventStateManager.cpp, line 4344 JavaScript error: , line 0: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: https://bugzilla.mozilla.org/attachment.cgi?id=186995 :: enter :: line 12" data: no]
Reporter | ||
Updated•19 years ago
|
Comment 4•19 years ago
|
||
Specs say that you can't dispatch an event already being dispatched.
Updated•19 years ago
|
Reporter | ||
Comment 5•19 years ago
|
||
Then, if I want to fire the event, should I just do what? See bug 259454, I want to fire the keypress event in anchor element when user press key in find toolbar.
Reporter | ||
Comment 6•19 years ago
|
||
(In reply to comment #4) > Specs say that you can't dispatch an event already being dispatched. Where is this spec?
Comment 7•19 years ago
|
||
*** Bug 301531 has been marked as a duplicate of this bug. ***
Comment 8•19 years ago
|
||
See the specification at http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-EventTarget-dispatchEvent.
Updated•5 years ago
|
MailTab and restoreTab doesn't work properly and leaves this error message even in 9.0.3 version. How can it be solved?
Exception { name: "NS_ERROR_ILLEGAL_VALUE", message: "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMessenger.msgHdrFromURI]", result: 2147942487, filename: "chrome://messenger/content/mailTabs.js", lineNumber: 419, columnNumber: 0, data: null, stack: "restoreTab@chrome://messenger/content/mailTabs.js:419:32\nrestoreTab@chrome://messenger/content/tabmail.js:1493:19\nrestoreTabs@chrome://messenger/content/tabmail.js:1514:19\natStartupRestoreTabs@chrome://messenger/content/msgMail3PaneWindow.js:1254:13\n", location: XPCWrappedNative_NoHelper }
columnNumber: 0
data: null
filename: "chrome://messenger/content/mailTabs.js"
lineNumber: 419
location: XPCWrappedNative_NoHelper { QueryInterface: QueryInterface(), filename: Getter, name: Getter, … }
QueryInterface: function QueryInterface()
asyncCaller: null
asyncCause: null
caller: XPCWrappedNative_NoHelper { QueryInterface: QueryInterface(), filename:
, name:
, … }
columnNumber: 32
filename: "chrome://messenger/content/mailTabs.js"
formattedStack: "restoreTab@chrome://messenger/content/mailTabs.js:419:32\nrestoreTab@chrome://messenger/content/tabmail.js:1493:19\nrestoreTabs@chrome://messenger/content/tabmail.js:1514:19\natStartupRestoreTabs@chrome://messenger/content/msgMail3PaneWindow.js:1254:13\n"
lineNumber: 419
name: "restoreTab"
nativeSavedFrame: SavedFrame { source: "chrome://messenger/content/mailTabs.js", sourceId: 212, line: 419, … }
sourceId: 212
sourceLine: ""
toString: function toString()
<get asyncCaller()>: function asyncCaller()
<get asyncCause()>: function asyncCause()
<get caller()>: function caller()
<get columnNumber()>: function columnNumber()
<get filename()>: function filename()
<get formattedStack()>: function formattedStack()
<get lineNumber()>: function lineNumber()
<get name()>: function name()
<get nativeSavedFrame()>: function nativeSavedFrame()
<get sourceId()>: function sourceId()
<get sourceLine()>: function sourceLine()
Description
•