diff options
author | networkException <git@nwex.de> | 2022-09-17 18:11:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-06 16:41:36 +0200 |
commit | cfa0c9bf9f9477a9ac6102773d96209caa0c3832 (patch) | |
tree | 5850c704885c5e9b37ba9bf7ed5415213f26d46f /Userland/Libraries/LibWeb/HTML/Scripting/Environments.h | |
parent | 297e293a3f08f07bc1a458ea4f9fefb9a34926b3 (diff) | |
download | serenity-cfa0c9bf9f9477a9ac6102773d96209caa0c3832.zip |
LibWeb: Implement module type allowed
This patch adds the module type allowed steps given a module type string
and an environment settings object.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Scripting/Environments.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Scripting/Environments.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Environments.h b/Userland/Libraries/LibWeb/HTML/Scripting/Environments.h index dbb1377dc6..6c42681ddd 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/Environments.h +++ b/Userland/Libraries/LibWeb/HTML/Scripting/Environments.h @@ -106,6 +106,8 @@ struct EnvironmentSettingsObject bool is_scripting_enabled() const; bool is_scripting_disabled() const; + bool module_type_allowed(String const& module_type) const; + protected: explicit EnvironmentSettingsObject(NonnullOwnPtr<JS::ExecutionContext>); |