Bug 1478855 - Use ES6 default parameter in updateBrowserRemotenessByURL. r=dao
authorsahil bhosale <sahilbhosale63@live.com>
Wed, 15 Aug 2018 17:24:42 +0530
changeset 431785 ed3e05886ae83718462fc7b3116fe4c706455b16
parent 431784 8ab9f8c268fff2af8d7f638b30d55f2211424402
child 431786 48bf31989df6bdaa0f9135f6ed6ad857b0d22863
push id34451
push userebalazs@mozilla.com
push dateThu, 16 Aug 2018 09:25:15 +0000
treeherdermozilla-central@161817e6d127 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1478855
milestone63.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 1478855 - Use ES6 default parameter in updateBrowserRemotenessByURL. r=dao
browser/base/content/tabbrowser.js
--- a/browser/base/content/tabbrowser.js
+++ b/browser/base/content/tabbrowser.js
@@ -1680,19 +1680,17 @@ window._gBrowser = {
 
     evt = document.createEvent("Events");
     evt.initEvent("TabRemotenessChange", true, false);
     tab.dispatchEvent(evt);
 
     return true;
   },
 
-  updateBrowserRemotenessByURL(aBrowser, aURL, aOptions) {
-    aOptions = aOptions || {};
-
+  updateBrowserRemotenessByURL(aBrowser, aURL, aOptions = {}) {
     if (!gMultiProcessBrowser)
       return this.updateBrowserRemoteness(aBrowser, false);
 
     let oldRemoteType = aBrowser.getAttribute("remoteType") || null;
 
     aOptions.remoteType =
       E10SUtils.getRemoteTypeForURI(aURL,
         gMultiProcessBrowser,