Bug 1506338 - Use gBrowser instead of getBrowser() in pocket code r=dao
authorMaxiwell Luo <maxluoxiii@gmail.com>
Thu, 22 Nov 2018 10:43:27 +0000
changeset 447690 f5ada684f144e794bbb55cf6031adc3473cca387
parent 447689 3456782875d80c25bc2e6000b99b3cdce9be43d9
child 447691 3691033d6e78b3481438c6d75b6a1e4200591388
push id35086
push userdvarga@mozilla.com
push dateThu, 22 Nov 2018 21:47:14 +0000
treeherdermozilla-central@522388759018 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1506338
milestone65.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 1506338 - Use gBrowser instead of getBrowser() in pocket code r=dao Differential Revision: https://phabricator.services.mozilla.com/D12621
browser/components/pocket/content/main.js
--- a/browser/components/pocket/content/main.js
+++ b/browser/components/pocket/content/main.js
@@ -512,21 +512,21 @@ var pktUI = (function() {
           triggeringPrincipal: aTriggeringPrincipal,
         });
     }
 
 
     // -- Helper Functions -- //
 
     function getCurrentUrl() {
-        return getBrowser().currentURI.spec;
+        return gBrowser.currentURI.spec;
     }
 
     function getCurrentTitle() {
-        return getBrowser().contentTitle;
+        return gBrowser.contentTitle;
     }
 
     function getPanel() {
         var frame = getPanelFrame();
         var panel = frame;
         while (panel && panel.localName != "panel") {
             panel = panel.parentNode;
         }