mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 07:07:49 +00:00
LibWeb: Add most of ServiceWorker Update algorithm
This misses the final, most important part of actually creating a service worker object and sending the script over to it in a WebWorker process.
This commit is contained in:
parent
d002254ada
commit
85541f1e76
Notes:
github-actions[bot]
2024-10-23 17:35:51 +00:00
Author: https://github.com/ADKaster
Commit: 85541f1e76
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1866
Reviewed-by: https://github.com/awesomekling
5 changed files with 312 additions and 6 deletions
|
@ -5,6 +5,9 @@
|
|||
setTimeout(() => {
|
||||
// We need to do this spoofing later in the event loop so that we don't end up
|
||||
// telling the test runner the wrong URL in page_did_finish_loading.
|
||||
|
||||
// FIXME: We need to use an actual https:// domain here in order to
|
||||
// actually fetch() our js file.
|
||||
spoofCurrentURL("https://example.com/service-worker-register.html");
|
||||
|
||||
let swPromise = navigator.serviceWorker.register("service-worker.js");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue