Closed
Bug 345561
Opened 19 years ago
Closed 18 years ago
why try / catch in adjustTabstrip() in tabbrowser.xml?
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 3 alpha5
People
(Reporter: moco, Assigned: ventnor.bugzilla)
References
Details
Attachments
(1 file)
1.86 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
why try / catch in adjustTabstrip() in tabbrowser.xml?
we're not sure why, which is why we added the "XXXzeniko" comment:
case 1:
try {
...
}
catch (e) {
// XXXzeniko what error are we catching here?
}
Assignee | ||
Comment 1•19 years ago
|
||
All it is is just setting an attribute, the same in all other cases. I don't see the need for a try clause either.
Attachment #230237 -
Flags: review?(sspitzer)
Comment 2•19 years ago
|
||
Getting the boxObject property can apparently sometimes fail, perhaps that was an issue at some point?
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/xul/content/src/nsXULElement.cpp&rev=1.644#2036
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/base/src/nsDocument.cpp&rev=3.667#3215
Comment 3•19 years ago
|
||
hmm, maybe I hit this sometimes before the boxObject was defined? I wrote most of this months ago...
I'd say try the patch on trunk, but not worth taking on branch unless the try/catch is deemed harmful.
Comment 4•18 years ago
|
||
Comment on attachment 230237 [details] [diff] [review]
Remove try clause
sspitzer is busy with Places.
Attachment #230237 -
Flags: review?(sspitzer) → review?(gavin.sharp)
Updated•18 years ago
|
Attachment #230237 -
Flags: review?(gavin.sharp) → review+
Updated•18 years ago
|
Whiteboard: [checkin needed]
Updated•18 years ago
|
Assignee: nobody → ventnor.bugzilla
Comment 5•18 years ago
|
||
mozilla/toolkit/content/widgets/tabbrowser.xml 1.228
Status: NEW → RESOLVED
Closed: 18 years ago
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 3 alpha5
You need to log in
before you can comment on or make changes to this bug.
Description
•