Bug 1478855 - Use ES6 default parameter in updateBrowserRemotenessByURL. r=dao
authorsahil bhosale <sahilbhosale63@live.com>
Wed, 15 Aug 2018 17:24:42 +0530
changeset 486883 ed3e05886ae83718462fc7b3116fe4c706455b16
parent 486882 8ab9f8c268fff2af8d7f638b30d55f2211424402
child 486884 48bf31989df6bdaa0f9135f6ed6ad857b0d22863
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [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,