Truly independent web browser
LibWeb: Give the reason a documentless navigation clears its ID
Shannon Booth7919ca394400
diff --git a/Libraries/LibWeb/HTML/LocalNavigable.cpp b/Libraries/LibWeb/HTML/LocalNavigable.cppindex 3ea396880c6..bb5084c634d 100644--- a/Libraries/LibWeb/HTML/LocalNavigable.cpp+++ b/Libraries/LibWeb/HTML/LocalNavigable.cpp@@ -970,8 +970,8 @@ void LocalNavigable::continue_navigation_at_population(NavigationPopulationRequeauto pending_document = output ? output->document : GC::Ptr<DOM::Document> {};// AD-HOC: Clear the ongoing navigation, like the "navigation must be a replace" and download cases do.- // No history step will be applied for this navigation, so nothing else clears it, and a stale- // ongoing navigation ID makes later same-document traversals consider themselves superseded.+ // No history step will be applied for this navigation, so nothing else clears it, and WebDriver+ // would wait for it to mature until the page load timeout.if (!pending_document)navigable->set_ongoing_navigation({});