Bug 1041475 - TEST-UNEXPECTED-FAIL | mozmill/content-tabs/test-install-xpi.js | test-install-xpi.js::test_install_corrupt_xpi + test-install-xpi.js::test_install_xpi_offer + test-install-xpi.js::test_xpinstall_disabled + test-install-xpi.js::test_xpinstall_actually_i (port bug 952201). r=mconley, a=Standard8
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Tue, 22 Jul 2014 23:20:37 +0300
changeset 18516 dd76794f296a8a2c9c750a11729de34efb136ae0
parent 18515 c2c478ef42cb91932c9fc49c2b8643ba988afd0b
child 18517 bf96a2fe5d868471611eda8cff24cbee792b70f1
push id1254
push usermbanner@mozilla.com
push dateMon, 28 Jul 2014 13:08:48 +0000
treeherdercomm-aurora@dd76794f296a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, Standard8
bugs1041475, 952201
Bug 1041475 - TEST-UNEXPECTED-FAIL | mozmill/content-tabs/test-install-xpi.js | test-install-xpi.js::test_install_corrupt_xpi + test-install-xpi.js::test_install_xpi_offer + test-install-xpi.js::test_xpinstall_disabled + test-install-xpi.js::test_xpinstall_actually_i (port bug 952201). r=mconley, a=Standard8
mail/base/content/specialTabs.js
--- a/mail/base/content/specialTabs.js
+++ b/mail/base/content/specialTabs.js
@@ -1226,18 +1226,21 @@ var specialTabs = {
 
   xpInstallObserver: {
     observe: function (aSubject, aTopic, aData) {
       const Ci = Components.interfaces;
       let brandBundle = document.getElementById("bundle_brand");
       let messengerBundle = document.getElementById("bundle_messenger");
 
       let installInfo = aSubject.QueryInterface(Ci.amIWebInstallInfo);
-      let win = installInfo.originatingWindow;
-      let notificationBox = getNotificationBox(win.top);
+      // If not e10s, the window installing the add-ons, otherwise the
+      // browser installing the add-ons.
+      // XXX: needs reworking to do something useful if it's a browser.
+      let winOrBrowser = installInfo.originator;
+      let notificationBox = getNotificationBox(winOrBrowser.top);
       let notificationID = aTopic;
       let brandShortName = brandBundle.getString("brandShortName");
       let notificationName, messageString, buttons;
       const iconURL = "chrome://messenger/skin/icons/update.png";
 
       switch (aTopic) {
       case "addon-install-disabled":
         notificationID = "xpinstall-disabled";