Bug 1404088 - Add gBrowser to the browser property list. r=ochameau draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 29 Sep 2017 11:57:53 -0500
changeset 672988 b26e85d5944ed32fcf9867f40163f19bb42dddb6
parent 672987 b45b7321b324cafd44c2e3c4c6390ce91185e17c
child 672989 b0b571bc0343ab71a937ff7c8a12afee799759ea
child 674662 668010cfe91117403ef565fea92caada6b5a64a2
push id82424
push userbmo:jryans@gmail.com
push dateFri, 29 Sep 2017 22:45:11 +0000
reviewersochameau
bugs1404088
milestone58.0a1
Bug 1404088 - Add gBrowser to the browser property list. r=ochameau MozReview-Commit-ID: fWPCkDe6Ve
devtools/client/responsive.html/browser/tunnel.js
--- a/devtools/client/responsive.html/browser/tunnel.js
+++ b/devtools/client/responsive.html/browser/tunnel.js
@@ -49,16 +49,19 @@ const SWAPPED_BROWSER_STATE = [
  * needed.
  */
 const PROPERTIES_FROM_BROWSER_WINDOW = [
   // This is used by PermissionUI.jsm for permission doorhangers.
   "PopupNotifications",
   // This is used by ContentClick.jsm when opening links in ways other than just
   // navigating the viewport.
   "whereToOpenLink",
+  // This is used by various event handlers, typically to call `getTabForBrowser` to map
+  // a browser back to a tab.
+  "gBrowser",
 ];
 
 /**
  * This module takes an "outer" <xul:browser> from a browser tab as described by
  * Firefox's tabbrowser.xml and wires it up to an "inner" <iframe mozbrowser>
  * browser element containing arbitrary page content of interest.
  *
  * The inner <iframe mozbrowser> element is _just_ the page content.  It is not