Bug 1388283 - Combine two if statements; r=dao
authorAmi <ami.bugzilla@gmail.com>
Tue, 08 Aug 2017 23:46:00 +0200
changeset 373581 495a724af85c
parent 373580 092017bb63c9
child 373582 b71ebbcb56f2
push id32305
push userryanvm@gmail.com
push dateWed, 09 Aug 2017 22:43:53 +0000
treeherdermozilla-central@411fe4772f31 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1388283
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1388283 - Combine two if statements; r=dao
browser/modules/UpdateTopLevelContentWindowIDHelper.jsm
--- a/browser/modules/UpdateTopLevelContentWindowIDHelper.jsm
+++ b/browser/modules/UpdateTopLevelContentWindowIDHelper.jsm
@@ -73,20 +73,19 @@ function _handleEvent(aEvent) {
     case "unload":
       WindowHelper.removeWindow(aEvent.currentTarget);
       break;
   }
 }
 
 function _handleMessage(aMessage) {
   let browser = aMessage.target;
-  if (aMessage.name === "Browser:Init") {
-    if (browser === browser.ownerGlobal.gBrowser.selectedBrowser) {
-      _updateCurrentContentOuterWindowID(browser);
-    }
+  if (aMessage.name === "Browser:Init" &&
+      browser === browser.ownerGlobal.gBrowser.selectedBrowser) {
+    _updateCurrentContentOuterWindowID(browser);
   }
 }
 
 // Methods that impact a window. Put into single object for organization.
 var WindowHelper = {
   addWindow: function NP_WH_addWindow(aWindow) {
     // Add event listeners
     TAB_EVENTS.forEach(function(event) {