Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Navigation] Consolidate "document is fully active" check in navigate
https://bugs.webkit.org/show_bug.cgi?id=273972 Reviewed by Alex Christensen. The navigate method starts of by (partly) checking whether the document is fully active by checking that the frame exists, however the "document is fully active" check should be done in step 7 (see [1]). So remove the frame check and rely on the later call to isFullyActive to get the correct order of handling possible errors. [1] https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-navigate * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/navigate-rejection-order-detached-unserializablestate-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigation-methods/return-value/navigate-rejection-order-invalidurl-detached-expected.txt: * Source/WebCore/page/Navigation.cpp: (WebCore::Navigation::navigate): Canonical link: https://commits.webkit.org/278627@main
- Loading branch information