ソースを参照

LibHTML: Fire the HtmlView::on_title_change hook after a load finishes

Andreas Kling 5 年 前
コミット
a8297657ab
1 ファイル変更3 行追加0 行削除
  1. 3 0
      Libraries/LibHTML/HtmlView.cpp

+ 3 - 0
Libraries/LibHTML/HtmlView.cpp

@@ -175,4 +175,7 @@ void HtmlView::load(const URL& url)
     document->normalize();
 
     set_document(document);
+
+    if (on_title_change)
+        on_title_change(document->title());
 }