1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:57:35 +00:00

LibWeb: Implement snapshotting source snapshot params per the spec

This commit is contained in:
Andrew Kaster 2023-08-25 20:34:50 -06:00 committed by Andreas Kling
parent 798a1b2751
commit 03eae09619
4 changed files with 32 additions and 17 deletions

View file

@ -232,7 +232,7 @@ public:
DeprecatedString const& source() const { return m_source; }
void set_source(DeprecatedString source) { m_source = move(source); }
HTML::EnvironmentSettingsObject& relevant_settings_object();
HTML::EnvironmentSettingsObject& relevant_settings_object() const;
void navigate_to_javascript_url(StringView url);
void evaluate_javascript_url(StringView url);
@ -530,6 +530,8 @@ public:
u32 unload_counter() const { return m_unload_counter; }
HTML::SourceSnapshotParams snapshot_source_snapshot_params() const;
protected:
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;