Closed Bug 789010 Opened 12 years ago Closed 12 years ago

Use the PageThumbs API to get tab previews for tabs that aren't loaded yet

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 18
Tracking Status
firefox18 + verified

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
No description provided.
Attachment #658839 - Flags: review?(ttaubert)
Assignee: nobody → dao
Status: NEW → ASSIGNED
Comment on attachment 658839 [details] [diff] [review] patch Review of attachment 658839 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/browser-tabPreviews.js @@ +50,5 @@ > + return aTab.__thumbnail; > + > + if (aTab.getAttribute("pending") == "true") { > + let img = new Image; > + img.src = PageThumbs.getThumbnailURL(aTab.linkedBrowser.currentURI.spec); Nit: you could save currentURI.spec in a variable as we access it already at the top of the function.
Attachment #658839 - Flags: review?(ttaubert) → review+
Blocks: 789037
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
QA - please verify that this fixes the STR in https://bugzilla.mozilla.org/show_bug.cgi?id=789037#c0
(In reply to Alex Keybl [:akeybl] from comment #4) > QA - please verify that this fixes the STR in > https://bugzilla.mozilla.org/show_bug.cgi?id=789037#c0 Could anyone explain what the expected result would be here? I don't see a particular difference with the build from the report date (2012-09-05) What I'm seeing with 18b1 after following the steps: tab thumbnail previews are loaded for the majority of sites, but for what I can tell there still are cases (e.g. mozilla.ro) where an empty placeholder is left instead if the site isn't loaded in the session. tested on Linux:Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/18.0 Firefox/18.0
Dão could you add a before and after behavior description to make sure we can verify this bug using the STR from bug 789037?
QA Contact: virgil.dicu
STR: - set browser.ctrlTab.previews to true - close Firefox with a couple of tabs open - start Firefox and restore the previous session - hit Ctrl+Tab -> the Ctrl+Tab panel should show previews for background tabs even though they're not loaded yet
Thanks. Verified on Ubuntu 12.04 and Windows 7 on Firefox 18 beta 2: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0 Previews on mac don't work (that's bug 727378).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: