mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
LibWeb: Add 'is scripting enabled' concept to EnvironmentSettingsObject
This is now the source of truth for 'user enabled/disabled scripting', but it has to ask the window's page, which actually stores the setting. Also use this new functionality in two places where it was previously marked as a FIXME.
This commit is contained in:
parent
f60a2a1d80
commit
7bdbac7fd9
6 changed files with 42 additions and 4 deletions
|
@ -101,6 +101,9 @@ struct EnvironmentSettingsObject
|
|||
|
||||
void notify_about_rejected_promises(Badge<EventLoop>);
|
||||
|
||||
bool is_scripting_enabled() const;
|
||||
bool is_scripting_disabled() const;
|
||||
|
||||
protected:
|
||||
explicit EnvironmentSettingsObject(JS::ExecutionContext& realm_execution_context);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue