Closed Bug 961479 Opened 10 years ago Closed 10 years ago

Cached thumbnails of pending tabs are discarded when opening Panorama

Categories

(Firefox Graveyard :: Panorama, defect)

29 Branch
defect
Not set
normal

Tracking

(firefox29+ fixed)

RESOLVED FIXED
Firefox 29
Tracking Status
firefox29 + fixed

People

(Reporter: alice0775, Assigned: ttaubert)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Regression window(fx)
Good:
http://hg.mozilla.org/integration/fx-team/rev/db5091d58b58
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 ID:20140116095802
Bad:
http://hg.mozilla.org/integration/fx-team/rev/5d45e6b035a3
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 ID:20140116114608
Pushlog:
http://hg.mozilla.org/integration/fx-team/pushloghtml?fromchange=db5091d58b58&tochange=5d45e6b035a3


Bug 961016 does not fix this problem.
Attached image screenshot
Component: Session Restore → Panorama
OS: Windows 7 → All
Hardware: x86_64 → All
Due to the slight delay in blocking about:blank's load since we use messages we need to check whether tabs are pending before discarding cached thumbnails.
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Attachment #8362623 - Flags: review?(jaws)
Summary: [Session Restore] Panorama(Tabcandy) thumbnails of background tabs and other group tabs are black until the tab is selected after session restore → Cached thumbnails of pending tabs are discarded when opening Panorama
Comment on attachment 8362623 [details] [diff] [review]
0001-Bug-961479-Mark-pending-tabs-as-incomplete-to-not-ov.patch

Review of attachment 8362623 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/components/tabview/tabitems.js
@@ +847,5 @@
>      Utils.assertThrow(tab, "tab");
>  
> +    // A pending tab can't be complete, yet.
> +    if (tab.hasAttribute("pending")) {
> +      setTimeout(callback);

This will call the callback with an `undefined` value for whether the tab is loaded or not. Can you set the argument to `false` so it is more explicit?

How hard would it be to add a test for this?
Attachment #8362623 - Flags: review?(jaws) → review+
Added a test and addressed your comment.

https://tbpl.mozilla.org/?tree=Try&rev=547c89d8603d
Attachment #8362623 - Attachment is obsolete: true
Attachment #8363172 - Flags: review?(jaws)
Attachment #8363172 - Flags: review?(jaws) → review+
https://hg.mozilla.org/mozilla-central/rev/54c2f1da0771
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Since this is a regression and in order to keep an eye on this going to track.
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: