Explorar o código

Ladybird: Fire the WebContentView::on_load_finish hook if set

Andreas Kling %!s(int64=2) %!d(string=hai) anos
pai
achega
90fee39290
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Ladybird/WebContentView.cpp

+ 2 - 0
Ladybird/WebContentView.cpp

@@ -800,6 +800,8 @@ void WebContentView::notify_server_did_finish_loading(Badge<WebContentClient>, A
     m_url = url;
     if (is_inspector_open())
         inspect_dom_tree();
+    if (on_load_finish)
+        on_load_finish(url);
 }
 
 void WebContentView::notify_server_did_request_navigate_back(Badge<WebContentClient>)