mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Make nested browsing context navigations check the loaded status of the active document of the nested browsing context.
This commit is contained in:
parent
edfd15c36f
commit
c2ce7d72a1
8 changed files with 99 additions and 5 deletions
|
@ -278,9 +278,7 @@ impl HTMLIFrameElement {
|
|||
// see https://html.spec.whatwg.org/multipage/#the-iframe-element:about:blank-3
|
||||
let is_about_blank =
|
||||
pipeline_id.is_some() && pipeline_id == self.about_blank_pipeline_id.get();
|
||||
// Replacement enabled also takes into account whether the document is "completely loaded",
|
||||
// see https://html.spec.whatwg.org/multipage/#the-iframe-element:completely-loaded
|
||||
let replace = is_about_blank || !document.is_completely_loaded();
|
||||
let replace = is_about_blank;
|
||||
self.navigate_or_reload_child_browsing_context(
|
||||
Some(load_data),
|
||||
NavigationType::Regular,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue