Bug 1346286 - Remove CPOWs from browser_popupNotification_3.js. r=Gijs draft
authorBlake Kaplan <mrbkap@gmail.com>
Thu, 09 Mar 2017 17:29:08 -0800
changeset 499558 6bdda290554b7c919ac8d15ada5fe6bf1697a38c
parent 499557 db5ebfa2a494d1d9bc709a2375d520e2ad111d89
child 549391 23919e4c556c81a91b0ed42b0fa991e3ded50164
push id49450
push userbmo:mrbkap@mozilla.com
push dateWed, 15 Mar 2017 23:51:54 +0000
reviewersGijs
bugs1346286
milestone55.0a1
Bug 1346286 - Remove CPOWs from browser_popupNotification_3.js. r=Gijs MozReview-Commit-ID: IZunjQBZeD6
browser/base/content/test/popupNotifications/browser_popupNotification_3.js
--- a/browser/base/content/test/popupNotifications/browser_popupNotification_3.js
+++ b/browser/base/content/test/popupNotifications/browser_popupNotification_3.js
@@ -238,31 +238,33 @@ var tests = [
       showNotification(this.notifyObj);
     },
     onShown(popup) {
       let self = this;
       let progressListener = {
         onLocationChange: function onLocationChange() {
           gBrowser.removeProgressListener(progressListener);
 
-	  executeSoon(() => {
+          executeSoon(() => {
             let notification = PopupNotifications.getNotification(self.notifyObj.id,
                                                                   self.notifyObj.browser);
             ok(notification != null, "Notification remained when subframe navigated");
             self.notifyObj.options.eventCallback = undefined;
 
             notification.remove();
-	  });
+          });
         },
       };
 
       info("Adding progress listener and performing navigation");
       gBrowser.addProgressListener(progressListener);
-      content.document.getElementById("iframe")
-                      .setAttribute("src", "http://example.org/");
+      ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
+        content.document.getElementById("iframe")
+                        .setAttribute("src", "http://example.org/");
+      });
     },
     onHidden() {}
   },
   // Popup Notifications should catch exceptions from callbacks
   { id: "Test#10",
     run() {
       this.testNotif1 = new BasicNotification(this.id);
       this.testNotif1.message += " 1";