Closed Bug 1107342 Opened 10 years ago Closed 10 years ago

Ctrl-Tab should prevent a few more thumbnails from expiring than are displayed in the UI

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 37

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Currently, when restarting Firefox and closing tabs, the Ctrl-Tab panel fills in the gaps with blank thumbnails.
Attachment #8531790 - Flags: review?(ttaubert)
Attachment #8531790 - Flags: review?(ttaubert) → review?(jmathies)
Comment on attachment 8531790 [details] [diff] [review]
patch

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

::: browser/base/content/browser-tabPreviews.js
@@ +514,1 @@
>        urls.push(this.tabList[i].linkedBrowser.currentURI.spec);

Can thumbnailCount be greater than the number of tabs here? It doesn't look like PageThumbs will catch an exception.
(In reply to Jim Mathies [:jimm] from comment #1)
> >        urls.push(this.tabList[i].linkedBrowser.currentURI.spec);
> 
> Can thumbnailCount be greater than the number of tabs here?

No, because of this.tabCount here:

+    const thumbnailCount = Math.min(this.tabPreviewCount + extraThumbnails,
+                                    this.tabCount);
Attachment #8531790 - Flags: review?(jmathies) → review+
https://hg.mozilla.org/mozilla-central/rev/db933e2f2077
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 37
Verified fixed on Windows 7 64-bit, Ubuntu 14.04 64-bit and Mac OS X 10.8.5 using Firefox 37 beta 6, build ID: 20150316202753.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: