mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibWeb/HTML: Implement the StorageEvent interface
This commit is contained in:
parent
c5f9710492
commit
f3e92f2ae5
Notes:
github-actions[bot]
2024-12-25 10:58:07 +00:00
Author: https://github.com/shannonbooth
Commit: f3e92f2ae5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3017
13 changed files with 333 additions and 0 deletions
25
Libraries/LibWeb/HTML/StorageEvent.idl
Normal file
25
Libraries/LibWeb/HTML/StorageEvent.idl
Normal file
|
@ -0,0 +1,25 @@
|
|||
#import <DOM/Event.idl>
|
||||
#import <HTML/Storage.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webstorage.html#storageevent
|
||||
[Exposed=Window]
|
||||
interface StorageEvent : Event {
|
||||
constructor(DOMString type, optional StorageEventInit eventInitDict = {});
|
||||
|
||||
readonly attribute DOMString? key;
|
||||
readonly attribute DOMString? oldValue;
|
||||
readonly attribute DOMString? newValue;
|
||||
readonly attribute USVString url;
|
||||
readonly attribute Storage? storageArea;
|
||||
|
||||
undefined initStorageEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional DOMString? key = null, optional DOMString? oldValue = null, optional DOMString? newValue = null, optional USVString url = "", optional Storage? storageArea = null);
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webstorage.html#storageeventinit
|
||||
dictionary StorageEventInit : EventInit {
|
||||
DOMString? key = null;
|
||||
DOMString? oldValue = null;
|
||||
DOMString? newValue = null;
|
||||
USVString url = "";
|
||||
Storage? storageArea = null;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue