mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-26 18:09:45 +00:00
LibWeb: Hook TrustedTypes to the SharedWorkers api
This commit is contained in:
parent
bd4e3fd3e0
commit
e6ac064a34
Notes:
github-actions[bot]
2025-10-13 12:23:30 +00:00
Author: https://github.com/tete17
Commit: e6ac064a34
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6424
Reviewed-by: https://github.com/Lubrsi ✅
Reviewed-by: https://github.com/tcl3
4 changed files with 17 additions and 8 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/AbstractWorker.h>
|
||||
#include <LibWeb/HTML/WorkerAgentParent.h>
|
||||
#include <LibWeb/TrustedTypes/TrustedScriptURL.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
|
@ -22,7 +23,7 @@ class SharedWorker final
|
|||
GC_DECLARE_ALLOCATOR(SharedWorker);
|
||||
|
||||
public:
|
||||
static WebIDL::ExceptionOr<GC::Ref<SharedWorker>> construct_impl(JS::Realm&, String const& script_url, Variant<String, WorkerOptions>& options);
|
||||
static WebIDL::ExceptionOr<GC::Ref<SharedWorker>> construct_impl(JS::Realm&, TrustedTypes::TrustedScriptURLOrString const& script_url, Variant<String, WorkerOptions>& options);
|
||||
|
||||
virtual ~SharedWorker();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue