Bug 1041770 - Update missed reference. r=mrbkap, a=lmandel
authorNick Alexander <nalexander@mozilla.com>
Mon, 21 Jul 2014 15:02:38 -0700
changeset 216715 40044a225ae7
parent 216714 5007a59d2d92
child 216716 645d232705b3
push id3889
push userryanvm@gmail.com
push date2014-09-15 13:57 +0000
treeherdermozilla-beta@0af2575571f3 [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;
         }