B2G/gecko/browser/components/tabview/ui.js
// PB, we reenter Panorama if we had been there directly before PB.
PB, we reenter Panorama if we had been there directly before PB.
PB we reenter Panorama if we had been there directly before PB .
function pbObserver(subject, topic, data) {
      if (topic == "private-browsing") {
        if (data == "enter") {
          self._privateBrowsing.wasInTabView = self.isTabViewVisible();
          if (self.isTabViewVisible())
            self.goToTab(gBrowser.selectedTab);
        }
      } else if (topic == "private-browsing-change-granted") {
        if (data == "enter" || data == "exit") {
          Search.hide();
          self._privateBrowsing.transitionMode = data;
        }
      } else if (topic == "private-browsing-transition-complete") {
        if (self._privateBrowsing.transitionMode == "exit" &&
            self._privateBrowsing.wasInTabView)
          self.showTabView(false);
        self._privateBrowsing.transitionMode = "";
      }
    }
function pbObserver ( subject , topic , data ) { if ( topic == "private-browsing" ) { if ( data == "enter" ) { self . _privateBrowsing . wasInTabView = self . isTabViewVisible ( ) ; if ( self . isTabViewVisible ( ) ) self . goToTab ( gBrowser . selectedTab ) ; } } else if ( topic == "private-browsing-change-granted" ) { if ( data == "enter" || data == "exit" ) { Search . hide ( ) ; self . _privateBrowsing . transitionMode = data ; } } else if ( topic == "private-browsing-transition-complete" ) { if ( self . _privateBrowsing . transitionMode == "exit" && self . _privateBrowsing . wasInTabView ) self . showTabView ( false ) ; self . _privateBrowsing . transitionMode = "" ; } }
PB, we reenter Panorama if we had been there directly before PB.
PB we reenter Panorama if we had been there directly before PB .
// We could probably do this in private-browsing-change-granted, but // this seems like a nicer spot, right in the middle of the process. // If we are in Tab View, exit.  // We use .transitionMode here, as aData is empty.