Closed Bug 679853 Opened 13 years ago Closed 13 years ago

switching from private browsing does not show panorama if it was open before

Categories

(Firefox Graveyard :: Panorama, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 9

People

(Reporter: ttaubert, Assigned: ttaubert)

Details

Attachments

(1 file)

STR:

1) have two tabs
2) select the second tab
3) go into panorama
4) enter private browsing
5) go into panorama
6) leave private browsing

Expected result: Panorama is shown.
Actual result: Panorama is not shown.

This is because the PB service sets an intermediate browser state before switching to PB mode completely (see bug 476463). This issues a TabSelect event which zooms out of Panorama (possibly a regression since bug 633190).
Comment on attachment 553886 [details] [diff] [review]
[checked-in] patch v1

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

Is this a good way to tell a reviewer what my patch does? Let's try...

::: browser/base/content/tabview/ui.js
@@ -718,5 @@
>        } else if (topic == "private-browsing-change-granted") {
>          if (data == "enter" || data == "exit") {
>            hideSearch();
>            self._privateBrowsing.transitionMode = data;
> -          self.storageBusy();

This can be removed because UI._storageBusy is only a flag, not a counter anymore (since bug 662812). The SSWindowStateReady/Busy events will be fired by the setBrowserState() calls the private browsing service issues.

@@ -732,5 @@
>              self._privateBrowsing.wasInTabView)
>            self.showTabView(false);
>  
>          self._privateBrowsing.transitionMode = "";
> -        self.storageReady();

(see above)

@@ +886,5 @@
>      this._currentTab = tab;
>  
>      if (this.isTabViewVisible()) {
> +      if (!this.restoredClosedTab && !this._privateBrowsing.transitionMode &&
> +          this._lastOpenedTab == tab && tab._tabViewTabItem) {

If we're in the middle of a private browsing mode transition we don't want to zoom into a tab.
Attachment #553886 - Flags: feedback?(raymond)
Comment on attachment 553886 [details] [diff] [review]
[checked-in] patch v1

Seems to be a good way to explain what a patch does.
Attachment #553886 - Flags: feedback?(raymond) → feedback+
Attachment #553886 - Flags: review?(dietrich)
Comment on attachment 553886 [details] [diff] [review]
[checked-in] patch v1

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

thanks for the explanations, it *definitely* helps. r=me.

::: browser/base/content/tabview/ui.js
@@ +886,5 @@
>      this._currentTab = tab;
>  
>      if (this.isTabViewVisible()) {
> +      if (!this.restoredClosedTab && !this._privateBrowsing.transitionMode &&
> +          this._lastOpenedTab == tab && tab._tabViewTabItem) {

there are a bunch of other conditions in there - some are self-documenting and some aren't. can you add a comment here that clearly explains the conditions for zoom in to occur?
Attachment #553886 - Flags: review?(dietrich) → review+
Comment on attachment 553886 [details] [diff] [review]
[checked-in] patch v1

http://hg.mozilla.org/mozilla-central/rev/e138c3a22a65
Attachment #553886 - Attachment description: patch v1 → [checked-in] patch v1
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 9
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: