Closed
Bug 633096
Opened 14 years ago
Closed 12 years ago
Rewrite afterAllTabItemsUpdated in head.js using a tabItem observer
Categories
(Firefox Graveyard :: Panorama, defect, P4)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: seanedunn, Assigned: ttaubert)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
iangilman
:
review+
|
Details | Diff | Splinter Review |
Right now in head.js's afterAllTabItemsUpdated we call update on each of them, essentially bypassing the TabPriorityQueue. Adding the _updateTestFunc hook to check that they're all updated and then calling update() on them is much more graceful. Rewrite afterAllTabItemsUpdated in terms of this kind of tabPriorityQueue-obeying logic, and making sure all the tests still pass.
Updated•14 years ago
|
Priority: -- → P4
Comment 1•14 years ago
|
||
bugspam
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → tim.taubert
Status: NEW → ASSIGNED
Assignee | ||
Updated•14 years ago
|
Version: unspecified → Trunk
Assignee | ||
Updated•14 years ago
|
Summary: Rewrite afterAllTabItemsUpdated in head.js using TabItem._updateTestFunc. → Rewrite afterAllTabItemsUpdated in head.js using a tabItem observer
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #524910 -
Flags: feedback?(raymond)
Assignee | ||
Comment 3•14 years ago
|
||
Comment on attachment 524910 [details] [diff] [review]
patch v1
Passed try:
http://tbpl.mozilla.org/?tree=MozillaTry&pusher=tim.taubert@gmx.de&rev=f908b24a2c25
Comment 4•14 years ago
|
||
Comment on attachment 524910 [details] [diff] [review]
patch v1
Looks good to me.
Attachment #524910 -
Flags: feedback?(raymond) → feedback+
Assignee | ||
Updated•14 years ago
|
Attachment #524910 -
Flags: review?(ian)
Comment 5•14 years ago
|
||
Comment on attachment 524910 [details] [diff] [review]
patch v1
Looks fine, but can you explain why those two tests had to be changed?
Attachment #524910 -
Flags: review?(ian) → review+
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to comment #5)
> Looks fine, but can you explain why those two tests had to be changed?
browser_tabview_expander.js:
The problem is that newly created tabs with the url "about:blank#something" have a readyState == "uninitialized". So TabItem.isComplete() will never return true and the update will never occur. That is why I changed the url to "about:home". Alternatively we could also remove the hash.
browser_tabview_bug594958.js:
In bug 625561 (http://hg.mozilla.org/mozilla-central/rev/20ffcaad9700) these values got changed and I can't really remember why. So what I did was to re-think the whole test and to re-check the given values so that they're now correct and the thumbnails are rendered as expected. I think this will also help us the continue with bug 641188.
Attachment #524910 -
Attachment is obsolete: true
Attachment #528001 -
Flags: review?(ian)
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to comment #6)
> I think this will also help us the continue with bug 641188.
It does. I'll post in bug 641188.
Comment 8•13 years ago
|
||
Comment on attachment 528001 [details] [diff] [review]
patch v2
Review of attachment 528001 [details] [diff] [review]:
Cool, thanks
Attachment #528001 -
Flags: review?(ian) → review+
Assignee | ||
Comment 11•13 years ago
|
||
bugspam
(Fx7 was branched, removing open bugs from Fx7 meta bug, we won't create new meta bugs for upcoming Fx versions)
No longer blocks: 660175
Comment 12•13 years ago
|
||
Is there any concerns why this patch is not checked-in?
Assignee | ||
Comment 13•13 years ago
|
||
Yeah, alas, this patch does not pass try. I tried to find the error source but wasn't very successful so far and didn't have much time to try it further (because that's such a minor issue).
Assignee | ||
Comment 14•12 years ago
|
||
Fixed by bug 659594.
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•