1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibWeb: Implement module type allowed

This patch adds the module type allowed steps given a module type string
and an environment settings object.
This commit is contained in:
networkException 2022-09-17 18:11:06 +02:00 committed by Andreas Kling
parent 297e293a3f
commit cfa0c9bf9f
2 changed files with 16 additions and 0 deletions

View file

@ -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>);