mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 06:32:26 +02: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:
committed by
Andreas Kling
parent
f60a2a1d80
commit
7bdbac7fd9
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user