mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implement windowproxy "delay-load-event-mode", and partially document "completely-loaded"
This commit is contained in:
parent
483bf245df
commit
eb82e781a3
10 changed files with 156 additions and 19 deletions
|
@ -1417,7 +1417,9 @@ impl Window {
|
|||
dom_count: self.Document().dom_count(),
|
||||
};
|
||||
|
||||
self.layout_chan.send(Msg::Reflow(reflow)).unwrap();
|
||||
self.layout_chan
|
||||
.send(Msg::Reflow(reflow))
|
||||
.expect("Layout thread disconnected.");
|
||||
|
||||
debug!("script: layout forked");
|
||||
|
||||
|
@ -1776,8 +1778,14 @@ impl Window {
|
|||
}
|
||||
}
|
||||
|
||||
// Step 7
|
||||
// Step 8
|
||||
if doc.prompt_to_unload(false) {
|
||||
if self.window_proxy().parent().is_some() {
|
||||
// Step 10
|
||||
// If browsingContext is a nested browsing context,
|
||||
// then put it in the delaying load events mode.
|
||||
self.window_proxy().start_delaying_load_events_mode();
|
||||
}
|
||||
self.main_thread_script_chan()
|
||||
.send(MainThreadScriptMsg::Navigate(
|
||||
pipeline_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue