mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibWebView: Update OOPWV's URL when a page starts/finishes loading
If the page's URL is changed from within the WebContent process (e.g. window.location.href is set from JavaScript, or a navigation is started from WebDriver), we would not store the URL at all within OOPWV. This prevented actions like reloading from working properly, as the browser would reload whatever URL was previously entered in the URL box.
This commit is contained in:
parent
325061b0e4
commit
9782660cb6
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/trflynn89
Commit: 9782660cb6
Pull-request: https://github.com/SerenityOS/serenity/pull/16121
1 changed files with 2 additions and 0 deletions
|
@ -300,12 +300,14 @@ void OutOfProcessWebView::notify_server_did_middle_click_link(Badge<WebContentCl
|
|||
|
||||
void OutOfProcessWebView::notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL& url)
|
||||
{
|
||||
m_url = url;
|
||||
if (on_load_start)
|
||||
on_load_start(url);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_finish_loading(Badge<WebContentClient>, const AK::URL& url)
|
||||
{
|
||||
m_url = url;
|
||||
if (on_load_finish)
|
||||
on_load_finish(url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue