Closed
Bug 496018
Opened 15 years ago
Closed 15 years ago
Show more meaningful exception when keypress is targetted on a non-existent widget
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: whimboo, Assigned: mikeal)
Details
(Whiteboard: [verified-mozmill-1.2])
When we call keypress which uses the synthesizeKey function from the EventUtils.js module we get an exception if the target element is not visible. It's not really understandable what's going on. A more meaningful failure should be logged. Currently we get: Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.sendKeyEvent]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///Volumes/data/build/mozmill/trunk/mozmill/extension/resource/modules/EventUtils.js :: synthesizeKey :: line 326" data: no] Source File: file:///Volumes/data/build/mozmill/trunk/mozmill/extension/resource/modules/frame.js Line: 411 Mikeal said on IRC that he wants to fix it right away.
Assignee | ||
Comment 1•15 years ago
|
||
Fixed in r476.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•15 years ago
|
||
Looks good. And I was wrong. The exception will be thrown for non-existent widgets and not for hidden ones. Sorry for my false interpretation.
Assignee: nobody → mrogers
Status: RESOLVED → VERIFIED
Summary: Show more meaningful exception when keypress is targetted on a hidden element → Show more meaningful exception when keypress is targetted on a non-existent widget
Whiteboard: [verified-mozmill-1.2]
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•