mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibWeb: Add scaffold for for "execution context of a realm"
Alongside some const qualfied getters that this requires.
This commit is contained in:
committed by
Andrew Kaster
parent
aef18435fb
commit
0628b74272
Notes:
github-actions[bot]
2024-11-01 19:16:30 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/0628b742729 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1932 Reviewed-by: https://github.com/ADKaster ✅
@@ -63,6 +63,7 @@ public:
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-target-browsing-context
|
||||
JS::ExecutionContext& realm_execution_context();
|
||||
JS::ExecutionContext const& realm_execution_context() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#concept-settings-object-module-map
|
||||
ModuleMap& module_map();
|
||||
@@ -135,6 +136,8 @@ private:
|
||||
bool m_discarded { false };
|
||||
};
|
||||
|
||||
JS::ExecutionContext const& execution_context_of_realm(JS::Realm const&);
|
||||
|
||||
RunScriptDecision can_run_script(JS::Realm const&);
|
||||
bool is_scripting_enabled(JS::Realm const&);
|
||||
bool is_scripting_disabled(JS::Realm const&);
|
||||
|
||||
Reference in New Issue
Block a user