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)
Firefox
General
Tracking
()
VERIFIED
FIXED
Firefox 18
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 file)
3.73 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #658839 -
Flags: review?(ttaubert)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → dao
Status: NEW → ASSIGNED
Comment 1•12 years ago
|
||
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+
Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
Comment 4•12 years ago
|
||
QA - please verify that this fixes the STR in https://bugzilla.mozilla.org/show_bug.cgi?id=789037#c0
Comment 5•12 years ago
|
||
(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
Comment 6•12 years ago
|
||
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?
Updated•12 years ago
|
QA Contact: virgil.dicu
Assignee | ||
Comment 7•12 years ago
|
||
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
Comment 8•12 years ago
|
||
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).
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•