Bug 1431214 - removed _setCurrentURI function as it was unused r=mikedeboer
authorWendy Wigg <wiggwendy@gmail.com>
Wed, 04 Dec 2019 10:59:42 +0000
changeset 505295 e58cebce47378165bdb2baffb15a0921ff922ba9
parent 505294 82ae4e73b3baacc7490690c3287c3d2ab13fc7d2
child 505296 e8463f077741d3bf4145f67ac7a0c762c72867ca
push id36881
push userdvarga@mozilla.com
push dateWed, 04 Dec 2019 16:22:31 +0000
treeherdermozilla-central@13fb375eaf14 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikedeboer
bugs1431214
milestone73.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 1431214 - removed _setCurrentURI function as it was unused r=mikedeboer Differential Revision: https://phabricator.services.mozilla.com/D55394
toolkit/content/widgets/browser-custom-element.js
--- a/toolkit/content/widgets/browser-custom-element.js
+++ b/toolkit/content/widgets/browser-custom-element.js
@@ -1008,30 +1008,16 @@
         this.webNavigation.loadURI(aURI, loadURIOptions)
       );
     }
 
     gotoIndex(aIndex) {
       this._wrapURIChangeCall(() => this.webNavigation.gotoIndex(aIndex));
     }
 
-    /**
-     * Used by session restore to ensure that currentURI is set so
-     * that switch-to-tab works before the tab is fully
-     * restored. This function also invokes onLocationChanged
-     * listeners in tabbrowser.xml.
-     */
-    _setCurrentURI(aURI) {
-      if (this.isRemoteBrowser) {
-        this._remoteWebProgressManager.setCurrentURI(aURI);
-      } else {
-        this.docShell.setCurrentURI(aURI);
-      }
-    }
-
     preserveLayers(preserve) {
       if (!this.isRemoteBrowser) {
         return;
       }
       let { frameLoader } = this;
       if (frameLoader.remoteTab) {
         frameLoader.remoteTab.preserveLayers(preserve);
       }