Closed Bug 502574 Opened 15 years ago Closed 15 years ago

Defunct loop in onTitleChanged

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firefox 3.6a1
Tracking Status
status1.9.1 --- .2-fixed

People

(Reporter: john.p.baker, Assigned: john.p.baker)

References

()

Details

(Keywords: perf, verified1.9.1)

Attachments

(1 file)

onTitleChanged was changed in bug 179656 to reflect that the browser array and the tab array were no longer in step.

-            var tab = tabBrowser.mTabContainer.childNodes[i];
+            var tab = document.getAnonymousElementByAttribute(tabBrowser, "linkedpanel", this.parentNode.id);

but the loop that finds the browser index was not removed at the same time.
Attachment #386962 - Flags: review?(dao)
Comment on attachment 386962 [details] [diff] [review]
patch
[Checked in: Comment 2 & 4]

Yay! I also fixed this in bug 402147 back in 2007, but that's still waiting for review...
Attachment #386962 - Flags: review?(dao) → review+
Keywords: perf
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/263cbbfeda99
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.6a1
Attachment #386962 - Flags: approval1.9.1.1?
Blocks: 402147
Attachment #386962 - Flags: approval1.9.1.1? → approval1.9.1.2?
Comment on attachment 386962 [details] [diff] [review]
patch
[Checked in: Comment 2 & 4]

a1912=beltzner
Attachment #386962 - Flags: approval1.9.1.2? → approval1.9.1.2+
Keywords: checkin-needed
What is the best/simplest way for QA to verify this on 3.5.2?
Open http://mxr.mozilla.org/mozilla1.9.1/source/browser/base/content/tabbrowser.xml and verify that the removed code isn't there anymore. Then load 
data:text/html,<script>setInterval(function(){document.title=Math.random()},200)</script> and verify that the tab's label updates continuously.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2)
Gecko/20090729 Firefox/3.5.2
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729
Firefox/3.5.2
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090729
Firefox/3.5.2

Verified code removed on the above builds.
Verified tab label updates continuously on the above builds.
Verified1.9.1
Keywords: verified1.9.1
Verified fixed on 1.9.2 with builds on all platforms like Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2b3pre) Gecko/20091114 Namoroka/3.6b3pre ID:20091114033807
Status: RESOLVED → VERIFIED
Attachment #386962 - Attachment description: patch → patch [Checked in: Comment 2 & 4]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: