Bug 1329450 Fix amIWebInstallInfo fallout on fennec r=JanH
authorAndrew Swan <aswan@mozilla.com>
Fri, 13 Jan 2017 08:06:22 -0800
changeset 329303 9cb19aceacf0487e75b3792cdbe21e652fe3ead3
parent 329302 181226e8933bf08a57f49faebcb9a32933bf13b9
child 329304 2c630751958a56e56114867fe4697711e3522ce9
push id31203
push userkwierso@gmail.com
push dateFri, 13 Jan 2017 23:28:17 +0000
treeherdermozilla-central@671a2f8542ca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersJanH
bugs1329450
milestone53.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 1329450 Fix amIWebInstallInfo fallout on fennec r=JanH MozReview-Commit-ID: FJsJiYs5Ole
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -5155,18 +5155,18 @@ var XPInstallObserver = {
     Services.obs.addObserver(this, "xpi-signature-changed", false);
     Services.obs.addObserver(this, "browser-delayed-startup-finished", false);
 
     AddonManager.addInstallListener(this);
   },
 
   observe: function(aSubject, aTopic, aData) {
     let installInfo, tab, host;
-    if (aSubject && aSubject instanceof Ci.amIWebInstallInfo) {
-      installInfo = aSubject;
+    if (aSubject && aSubject.wrappedJSObject) {
+      installInfo = aSubject.wrappedJSObject;
       tab = BrowserApp.getTabForBrowser(installInfo.browser);
       if (installInfo.originatingURI) {
         host = installInfo.originatingURI.host;
       }
     }
 
     let strings = Strings.browser;
     let brandShortName = Strings.brand.GetStringFromName("brandShortName");