From 4d522bbbac0040794a7a14999413ac62748df37f Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 23 Jun 2021 12:24:20 -0400 Subject: [PATCH] Fix handling of navigations before/during load * Fix handling of navigations before/during load Several types of navigations have a special handling, where if they happen "before load", they are converted into "replace" navigations (instead of "default" navigations). However, this special handling had several interoperability problems and the specification was somewhat broken due to a bad definition of "completely loaded". The result here mostly aligns with Blink behavior. Notable changes from the previous spec: * "completely loaded" gets flipped only after the load event has run. It is mostly used to determine "default" vs. "replace" navigations, and in almost all cases browsers treat navigations before or during the load event as getting the special "replace" treatment. This includes the below cases, as well as