-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Navigation] Support "initial about:blank document" logic #28792
base: main
Are you sure you want to change the base?
[Navigation] Support "initial about:blank document" logic #28792
Conversation
EWS run on previous version of this PR (hash c81d8c8) |
c81d8c8
to
b9d79a4
Compare
EWS run on previous version of this PR (hash b9d79a4) |
b9d79a4
to
4450c08
Compare
EWS run on previous version of this PR (hash 4450c08) |
4450c08
to
0f10b9d
Compare
EWS run on previous version of this PR (hash 0f10b9d) |
0f10b9d
to
7266be7
Compare
EWS run on previous version of this PR (hash 7266be7) |
7266be7
to
1563fb2
Compare
EWS run on previous version of this PR (hash 1563fb2) |
1563fb2
to
affa258
Compare
EWS run on previous version of this PR (hash affa258) |
affa258
to
863a2a1
Compare
EWS run on previous version of this PR (hash 863a2a1) |
863a2a1
to
cd2d8ca
Compare
EWS run on previous version of this PR (hash cd2d8ca) |
https://bugs.webkit.org/show_bug.cgi?id=274393 Reviewed by NOBODY (OOPS!). Keep track of the "initial about:blank document" flag and check it in the "has entries and events disabled" algorithm. [1] https://html.spec.whatwg.org/multipage/nav-history-apis.html#has-entries-and-events-disabled (Step 3) * LayoutTests/imported/w3c/web-platform-tests/navigation-api/currententrychange-event/navigate-from-initial-about-blank-same-doc-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/currententrychange-event/navigate-from-initial-about-blank-same-doc-popup-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/updateCurrentEntry-method/exception-order-initial-about-blank-unserializablestate-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-api/updateCurrentEntry-method/initial-about-blank-expected.txt: * Source/WebCore/dom/Document.h: (WebCore::Document::isInitialAboutBlank const): (WebCore::Document::setIsInitialAboutBlank): * Source/WebCore/loader/DocumentWriter.cpp: (WebCore::DocumentWriter::end): * Source/WebCore/page/Navigation.cpp: (WebCore::Navigation::hasEntriesAndEventsDisabled const):
cd2d8ca
to
7d612aa
Compare
EWS run on current version of this PR (hash 7d612aa) |
@@ -2597,6 +2600,8 @@ class Document | |||
bool m_scheduledDeferredAXObjectCacheUpdate { false }; | |||
bool m_wasRemovedLastRefCalled { false }; | |||
|
|||
bool m_isInitialAboutBlank { false }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FrameLoader already has this state:
bool isShowingInitialAboutBlank = m_localFrame->loader().stateMachine().isDisplayingInitialEmptyDocument()
7d612aa
7d612aa