Bug 1346286 - Remove CPOWs from browser_popupNotification_3.js. r=Gijs
MozReview-Commit-ID: IZunjQBZeD6
--- 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";