mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Stub CacheStorage interface
With this change we can again open login form https://discord.com/login instead of failing in js because `caches.open()` is not defined.
This commit is contained in:
parent
28bfe701b7
commit
7efdd1c1ec
Notes:
github-actions[bot]
2025-06-05 21:03:31 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 7efdd1c1ec
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5012
10 changed files with 102 additions and 0 deletions
15
Libraries/LibWeb/ServiceWorker/CacheStorage.idl
Normal file
15
Libraries/LibWeb/ServiceWorker/CacheStorage.idl
Normal file
|
@ -0,0 +1,15 @@
|
|||
#import <Fetch/Request.idl>
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#cachestorage-interface
|
||||
[SecureContext, Exposed=(Window,Worker)]
|
||||
interface CacheStorage {
|
||||
//[NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional MultiCacheQueryOptions options = {});
|
||||
//[NewObject] Promise<boolean> has(DOMString cacheName);
|
||||
[NewObject] Promise<Cache> open(DOMString cacheName);
|
||||
//[NewObject] Promise<boolean> delete(DOMString cacheName);
|
||||
//[NewObject] Promise<sequence<DOMString>> keys();
|
||||
};
|
||||
|
||||
//dictionary MultiCacheQueryOptions : CacheQueryOptions {
|
||||
// DOMString cacheName;
|
||||
//};
|
Loading…
Add table
Add a link
Reference in a new issue