Bug 1041770 - Update missed reference. r=mrbkap, a=lmandel
authorNick Alexander <nalexander@mozilla.com>
Mon, 21 Jul 2014 15:02:38 -0700
changeset 217837 40044a225ae7d203d9483211666da14554dc3aa1
parent 217836 5007a59d2d92b972263fbf104da86851628f662f
child 217838 645d232705b36072db63680804960e9578fbbc99
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap, lmandel
bugs1041770, 952201
milestone33.0
Bug 1041770 - Update missed reference. r=mrbkap, a=lmandel This was oversight from the landing of Bug 952201. It manifested as: E GeckoConsole(5812) [JavaScript Error: "win is undefined" {file: "chrome://browser/content/browser.js" line: 5978}] when trying to install a blocked add-on.
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6000,17 +6000,17 @@ var XPInstallObserver = {
 
   observe: function xpi_observer(aSubject, aTopic, aData) {
     switch (aTopic) {
       case "addon-install-started":
         NativeWindow.toast.show(Strings.browser.GetStringFromName("alertAddonsDownloading"), "short");
         break;
       case "addon-install-blocked":
         let installInfo = aSubject.QueryInterface(Ci.amIWebInstallInfo);
-        let win = installInfo.originatingWindow;
+        let win = installInfo.originator;
         let tab = BrowserApp.getTabForWindow(win.top);
         if (!tab)
           return;
 
         let host = null;
         if (installInfo.originatingURI) {
           host = installInfo.originatingURI.host;
         }