mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibWeb: Add initial implementation for WorkerGlobalScope
This initial implementation stubs out the WorkerGlobalScope, WorkerLocation and WorkerNavigator classes. It doesn't take into account all the things that actually need passed into the constructors for these objects, nor the extra abstract operations that need to be performed on them by the rest of the Browser infrastructure. However, it does create bindings that compile and link :^)
This commit is contained in:
parent
8b38df72a3
commit
820e99f97d
Notes:
sideshowbarker
2024-07-17 19:06:15 +09:00
Author: https://github.com/ADKaster
Commit: 820e99f97d
Pull-request: https://github.com/SerenityOS/serenity/pull/12330
Reviewed-by: https://github.com/linusg
11 changed files with 527 additions and 0 deletions
12
Userland/Libraries/LibWeb/HTML/WorkerLocation.idl
Normal file
12
Userland/Libraries/LibWeb/HTML/WorkerLocation.idl
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Exposed=Worker]
|
||||
interface WorkerLocation {
|
||||
stringifier readonly attribute USVString href;
|
||||
readonly attribute USVString origin;
|
||||
readonly attribute USVString protocol;
|
||||
readonly attribute USVString host;
|
||||
readonly attribute USVString hostname;
|
||||
readonly attribute USVString port;
|
||||
readonly attribute USVString pathname;
|
||||
readonly attribute USVString search;
|
||||
readonly attribute USVString hash;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue