LibWeb: Expose a getter for Document's unload_counter

We need to check this value from the Navigation APIs.
This commit is contained in:
Andrew Kaster 2023-08-24 16:17:45 -06:00 committed by Andreas Kling
parent 268fd93352
commit 7ad45d9e71
Notes: sideshowbarker 2024-07-16 18:06:41 +09:00

View file

@ -528,6 +528,8 @@ public:
using IndicatedPart = Variant<Element*, TopOfTheDocument>;
IndicatedPart determine_the_indicated_part() const;
u32 unload_counter() const { return m_unload_counter; }
protected:
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;