Skip to content

Commit

Permalink
Part 11: Migrate ShowPersistentNotification to use IPC
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D227696

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1928702
gecko-commit: bda570180adfcc20891d5cfb47406756fe8903ad
gecko-reviewers: asuth
  • Loading branch information
saschanaz authored and moz-wptsync-bot committed Nov 12, 2024
1 parent 5c316a4 commit a038203
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/service-workers/service-worker/resources/test-helpers.sub.js
// META: script=resources/helpers.js

// (Cannot use `global=serviceworker` because testdriver only supports window)

Expand All @@ -14,8 +15,8 @@ navigator.serviceWorker.addEventListener("message", async ev => {
}
});

promise_setup(() => {
return test_driver.set_permission({ name: "notifications" }, "granted");
promise_setup(async () => {
await trySettingPermission("granted");
});

service_worker_test("getnotifications-sw.js", "Service worker test setup");

0 comments on commit a038203

Please sign in to comment.