mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
minibrowser: Reset the location field when switching tabs (#33316)
Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
e6ee879d2a
commit
7e493ba865
1 changed files with 2 additions and 0 deletions
|
@ -366,6 +366,7 @@ impl Minibrowser {
|
||||||
if let Some(event) =
|
if let Some(event) =
|
||||||
Self::browser_tab(ui, label, webview.focused, webview_id)
|
Self::browser_tab(ui, label, webview.focused, webview_id)
|
||||||
{
|
{
|
||||||
|
location_dirty.set(false);
|
||||||
embedder_events.push(event);
|
embedder_events.push(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -523,6 +524,7 @@ impl Minibrowser {
|
||||||
app_event_queue.push(EmbedderEvent::Reload(browser_id));
|
app_event_queue.push(EmbedderEvent::Reload(browser_id));
|
||||||
},
|
},
|
||||||
MinibrowserEvent::NewWebView => {
|
MinibrowserEvent::NewWebView => {
|
||||||
|
self.location_dirty.set(false);
|
||||||
let url = ServoUrl::parse("servo:newtab").unwrap();
|
let url = ServoUrl::parse("servo:newtab").unwrap();
|
||||||
app_event_queue.push(EmbedderEvent::NewWebView(url, WebViewId::new()));
|
app_event_queue.push(EmbedderEvent::NewWebView(url, WebViewId::new()));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue