Bug 1306786 - Fix intermittent browser/base/content/test/popupNotifications/browser_popupNotification_4.js draft
authorKirk Steuber <ksteuber@mozilla.com>
Tue, 11 Oct 2016 10:48:31 -0700
changeset 423812 e6d02bdf40a3b959f13d9152664fa503089866dd
parent 423604 7ae377917236b7e6111146aa9fb4c073c0efc7f4
child 533523 d39d6292f38f6461d049bdb73e027b16451d5a8c
push id31989
push userksteuber@mozilla.com
push dateTue, 11 Oct 2016 17:49:28 +0000
bugs1306786
milestone52.0a1
Bug 1306786 - Fix intermittent browser/base/content/test/popupNotifications/browser_popupNotification_4.js MozReview-Commit-ID: 6Ok06hRXFUa
browser/base/content/test/popupNotifications/browser_popupNotification_4.js
--- a/browser/base/content/test/popupNotifications/browser_popupNotification_4.js
+++ b/browser/base/content/test/popupNotifications/browser_popupNotification_4.js
@@ -128,17 +128,19 @@ var tests = [
 
       let notification = showNotification(notifyObj);
       let win = gBrowser.replaceTabWithWindow(gBrowser.selectedTab);
       yield whenDelayedStartupFinished(win);
       let [tab] = win.gBrowser.tabs;
       let anchor = win.document.getElementById("default-notification-icon");
 
       yield new Promise(resolve => {
+        let originalCallback = notification.options.eventCallback;
         notification.options.eventCallback = function (eventName) {
+          originalCallback(eventName);
           if (eventName == "shown") {
             resolve();
           }
         };
         info("Showing the notification again");
         notification.reshow();
       });