Closed
Bug 628470
Opened 13 years ago
Closed 13 years ago
popup.xml#popup-base, hidePopup method throws exceptions for failed QI to nsIMenuBoxObject
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b12
People
(Reporter: WeirdAl, Assigned: WeirdAl)
Details
Attachments
(1 file)
1.60 KB,
patch
|
enndeakin
:
review+
mossop
:
approval2.0+
|
Details | Diff | Splinter Review |
This is extremely annoying for Venkman users. Can we switch to instanceof, already?
Assignee | ||
Comment 1•13 years ago
|
||
Updated•13 years ago
|
Attachment #506606 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 506606 [details] [diff] [review] switch to instanceof in showPopup, hidePopup requesting approval for FF4: Zero risk, and one less exception to be thrown and invisibly caught.
Attachment #506606 -
Flags: approval2.0?
Updated•13 years ago
|
Attachment #506606 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 3•13 years ago
|
||
try { menuBox = this.parentNode.boxObject; } catch(e) {} When would this throw, i.e. why is the try/catch still needed?
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to comment #3) > try { > menuBox = this.parentNode.boxObject; > } catch(e) {} > > When would this throw, i.e. why is the try/catch still needed? I don't know if it would ever throw. To my knowledge, it's only the QI calls that were throwing. That said, I don't think we want to take a bigger change than absolutely necessary at this late stage. The way it's written, if it did throw, menuBox would be null, and (null instanceof Components.interfaces.nsIMenuBoxObject) is always false.
Comment 5•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/a3a568807d82
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b12
You need to log in
before you can comment on or make changes to this bug.
Description
•