Closed
Bug 587187
Opened 14 years ago
Closed 14 years ago
properly test for TabView being defined
Categories
(Firefox :: Tabbed Browser, defect, P3)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 6
People
(Reporter: iangilman, Assigned: raymondlee)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
[1:33pm] Mardak: you'll get a ReferenceError: TabView is not defined if you dont do window.TabView
This may fix bug 586818, but even if not, it's worth doing.
Reporter | ||
Comment 1•14 years ago
|
||
Attachment #465872 -
Flags: review?(dolske)
Comment 2•14 years ago
|
||
Comment on attachment 465872 [details] [diff] [review]
Patch v1
I suppose this could alternatively use |typeof TabView != "undefined"|, but whatever.
Attachment #465872 -
Flags: review?(dolske)
Attachment #465872 -
Flags: review+
Attachment #465872 -
Flags: approval2.0+
Comment 3•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/5deb7e7751d8
Check the global object for existence to avoid ReferenceError.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: b4
Target Milestone: --- → Firefox 4.0b4
Version: unspecified → Trunk
Comment 4•14 years ago
|
||
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•14 years ago
|
Component: TabCandy → Tabbed Browser
QA Contact: tabcandy → tabbed.browser
Comment 5•14 years ago
|
||
Comment on attachment 465872 [details] [diff] [review]
Patch v1
>diff -r e49b735ae874 browser/base/content/tabbrowser.xml
>--- a/browser/base/content/tabbrowser.xml Thu Aug 12 18:18:25 2010 -0700
>+++ b/browser/base/content/tabbrowser.xml Fri Aug 13 15:43:27 2010 -0700
>@@ -723,7 +723,7 @@
> <method name="updateTitlebar">
> <body>
> <![CDATA[
>- if (TabView && TabView.isVisible()) {
>+ if (window.TabView && TabView.isVisible()) {
Is this going to spawn a "reference to undefined property window.TabView" (strict?) warning? ("TabView" in window && Taview...) might be better.
Comment 6•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 7•14 years ago
|
||
reopening, see comment 5
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: test for window.TabView rather than just TabView → properly test for TabView being defined
Updated•14 years ago
|
Target Milestone: Firefox 4.0b4 → Firefox 4.0
Reporter | ||
Updated•14 years ago
|
Priority: -- → P3
Updated•14 years ago
|
Whiteboard: [approved-patches-landed]
Reporter | ||
Comment 8•14 years ago
|
||
Raymond, this has been languishing on my plate. Can you take care of it?
Assignee: ian → raymond
Assignee | ||
Comment 9•14 years ago
|
||
Attachment #465872 -
Attachment is obsolete: true
Attachment #525928 -
Flags: feedback?(tim.taubert)
Comment 10•14 years ago
|
||
Comment on attachment 525928 [details] [diff] [review]
v2
Looks good :)
Attachment #525928 -
Flags: feedback?(tim.taubert) → feedback+
Assignee | ||
Comment 11•14 years ago
|
||
Comment on attachment 525928 [details] [diff] [review]
v2
Passed Try
http://tbpl.mozilla.org/?tree=MozillaTry&rev=51afe70f85d8
Attachment #525928 -
Flags: review?(ian)
Reporter | ||
Comment 12•14 years ago
|
||
Comment on attachment 525928 [details] [diff] [review]
v2
Thanks!
Attachment #525928 -
Flags: review?(ian) → review+
Assignee | ||
Comment 13•14 years ago
|
||
Attachment #525928 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 14•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [approved-patches-landed]
Target Milestone: Firefox 4.0 → Firefox 6
You need to log in
before you can comment on or make changes to this bug.
Description
•