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:
parent
297e293a3f
commit
cfa0c9bf9f
2 changed files with 16 additions and 0 deletions
|
@ -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>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue