瀏覽代碼

LibWeb: Expose a getter for Document's unload_counter

We need to check this value from the Navigation APIs.
Andrew Kaster 1 年之前
父節點
當前提交
7ad45d9e71
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Libraries/LibWeb/DOM/Document.h

+ 2 - 0
Userland/Libraries/LibWeb/DOM/Document.h

@@ -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;