From d280c831b695ad8eb00fbcbd9af2de8bf625823e Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 24 May 2021 18:04:48 -0400 Subject: [PATCH] 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 WebKit and Blink behavior. Notable changes: * "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