Closed Bug 461058 Opened 16 years ago Closed 1 month ago

Resizing window before showing Tabsposé leads to multiple aspect ratios

Categories

(Camino Graveyard :: Tabbed Browsing, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: alqahira, Unassigned)

Details

Attachments

(1 file)

Attached image Multiple aspect ratios
STR:

1) Open several tabs
2) In the current tab, resize the window (e.g., Apple.com to fit the width)
3) Invoke Tabsposé
--> Observe tab aspect ratios
4) Close Tabsposé and switch tabs (say, to google.com)
5) Resize the new tab
6) Invoke Tabsposé
--> Observe tab aspect ratios

ER: Tab previews all have the same aspect ratio (matching the current window)

AR: Tab previews have multiple aspect ratios, with each preview having the aspect ratio of the window the last time that tab was visited.
You are resizing the window using the widget on the window title bar, correct ? When I use the little grip at the bottom of the window, I don't see any problems.
Since we don't cache the thumbnails, I'm perplexed as to how this could happen.
(In reply to comment #1)
> You are resizing the window using the widget on the window title bar, correct ?
> When I use the little grip at the bottom of the window, I don't see any
> problems.

No, the resize widget at the bottom-right.

(In reply to comment #2)
> Since we don't cache the thumbnails, I'm perplexed as to how this could happen.

Since we're asking Gecko to thumbnail, is Gecko not being notified of the new window size until a tab is shown, so that it thinks that the window size is still what it was when each tab was originally created (or last viewed)?
Quite possibly; I think we do in fact have code to prevent doing resizing in background tabs for performance reasons. Excellent thought.
(In reply to comment #4)
> Quite possibly; I think we do in fact have code to prevent doing resizing in
> background tabs for performance reasons. Excellent thought.

This comment at the beginning of BrowserWrapper's |setFrame:resizingBrowserViewIfHidden:|, for instance? http://mxr.mozilla.org/camino/source/camino/src/browser/BrowserWrapper.mm#380

I'm not sure how that would get down to Gecko, but it does sound like the code in question.

OTOH, I don't know if we want to slow Tabsposé down any further by forcing a resize of all tabs in a window before thumbnailing :(
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: