[ WK2 ] Layout Test http/wpt/service-workers/update-service-worker.https.html is a flaky Timeout
https://bugs.webkit.org/show_bug.cgi?id=187766
rdar://problem/59459120
Patch by Youenn Fablet <youennf@gmail.com> on 2022-06-22
Reviewed by Darin Adler.
Make sure scope is fine with script URL.
* LayoutTests/http/wpt/service-workers/update-service-worker.https.html:
* LayoutTests/platform/wk2/TestExpectations:
Canonical link: https://commits.webkit.org/251741@main
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@295736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/http/wpt/service-workers/update-service-worker.https.html b/LayoutTests/http/wpt/service-workers/update-service-worker.https.html
index 9f38af5..321ec55 100644
--- a/LayoutTests/http/wpt/service-workers/update-service-worker.https.html
+++ b/LayoutTests/http/wpt/service-workers/update-service-worker.https.html
@@ -10,10 +10,10 @@
var registration;
var iframe;
promise_test(async (test) => {
- registration = await navigator.serviceWorker.getRegistration("resources");
+ registration = await navigator.serviceWorker.getRegistration("resources/");
if (registration)
await registration.unregister();
- registration = await navigator.serviceWorker.register("resources/update-worker.py", { scope : "resources" });
+ registration = await navigator.serviceWorker.register("resources/update-worker.py", { scope : "resources/" });
activeWorker = registration.active;
if (activeWorker)
return;
diff --git a/LayoutTests/platform/wk2/TestExpectations b/LayoutTests/platform/wk2/TestExpectations
index 67cc8eb..b32d2d2 100644
--- a/LayoutTests/platform/wk2/TestExpectations
+++ b/LayoutTests/platform/wk2/TestExpectations
@@ -847,8 +847,6 @@
webkit.org/b/186406 compositing/iframes/display-none-subframe.html [ Pass Failure ]
-webkit.org/b/187766 http/wpt/service-workers/update-service-worker.https.html [ Pass Failure Timeout ]
-
# Newly imported test that is flaky on WebKit2 only.
imported/w3c/web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/no_window_open_when_term_nesting_level_nonzero.window.html [ Pass Failure ]