Bug 1392352 - Part 2 - Translate the tabbrowser implementation into a JS class;r=mconley,r=dao CLOSED TREE

We keep the XBL binding around for <content>, <constructor>, and <destructor>. This can
eventually be migrated to a Custom Element once we have platform support, but in the meantime
this is a way to get the many thousands of LOC into a JS class.

MozReview-Commit-ID: 1dCQp527yF9
This commit is contained in:
Brian Grinstead
2018-02-27 10:04:14 -08:00
parent 4fa6ea82ec
commit 938da9ee8f
14 changed files with 5660 additions and 12494 deletions

View File

@@ -376,7 +376,7 @@ var FullScreen = {
// request was initiated from an in-process browser, we need
// to get its corresponding browser here.
let browser;
if (event.target == gBrowser) {
if (event.target == gBrowser.container) {
browser = event.originalTarget;
} else {
let topWin = event.target.ownerGlobal.top;