Changeset 267593 in webkit
- Timestamp:
- Sep 25, 2020 2:29:46 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r267589 r267593 1 2020-09-25 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, reverting r267589. 4 5 Broke document.visibilityState when coming out of back/forward 6 cache 7 8 Reverted changeset: 9 10 "visibilitychange:hidden doesn't fire during page navigations" 11 https://bugs.webkit.org/show_bug.cgi?id=151234 12 https://trac.webkit.org/changeset/267589 13 1 14 2020-09-25 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/resources/import-expectations.json
r267589 r267593 337 337 "web-platform-tests/orientation-event": "skip", 338 338 "web-platform-tests/orientation-sensor": "skip", 339 "web-platform-tests/page-visibility": " import",339 "web-platform-tests/page-visibility": "skip", 340 340 "web-platform-tests/paint-timing": "skip", 341 341 "web-platform-tests/payment-handler": "skip", -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/no_window_open_when_term_nesting_level_nonzero.window-expected.txt
r267589 r267593 1 CONSOLE MESSAGE: Error: assert_equals: expected no popup during visibilitychange expected null but got object "[object Window]"2 1 CONSOLE MESSAGE: Error: assert_equals: expected no popup during pagehide expected null but got object "[object Window]" 3 2 CONSOLE MESSAGE: Error: assert_equals: expected no popup during unload expected null but got object "[object Window]" -
trunk/Source/WebCore/ChangeLog
r267592 r267593 1 2020-09-25 Chris Dumez <cdumez@apple.com> 2 3 Unreviewed, reverting r267589. 4 5 Broke document.visibilityState when coming out of back/forward 6 cache 7 8 Reverted changeset: 9 10 "visibilitychange:hidden doesn't fire during page navigations" 11 https://bugs.webkit.org/show_bug.cgi?id=151234 12 https://trac.webkit.org/changeset/267589 13 1 14 2020-09-25 Antoine Quint <graouts@webkit.org> 2 15 -
trunk/Source/WebCore/dom/Document.cpp
r267589 r267593 1773 1773 // that the page is hidden, as specified by the spec: 1774 1774 // https://w3c.github.io/page-visibility/#visibilitystate-attribute 1775 if (!m_frame || !m_frame->page() || m_isUnloadingOrUnloaded)1775 if (!m_frame || !m_frame->page()) 1776 1776 return VisibilityState::Hidden; 1777 1777 return m_frame->page()->visibilityState(); -
trunk/Source/WebCore/dom/Document.h
r267589 r267593 492 492 bool isTimerThrottlingEnabled() const { return m_isTimerThrottlingEnabled; } 493 493 494 void markAsUnloadingOrUnloaded() { m_isUnloadingOrUnloaded = true; }495 496 494 WEBCORE_EXPORT ExceptionOr<Ref<Node>> adoptNode(Node& source); 497 495 … … 2130 2128 #endif 2131 2129 bool m_hasVisuallyNonEmptyCustomContent { false }; 2132 bool m_isUnloadingOrUnloaded { false };2133 2130 2134 2131 Ref<UndoManager> m_undoManager; -
trunk/Source/WebCore/loader/FrameLoader.cpp
r267589 r267593 3276 3276 downcast<HTMLInputElement>(*currentFocusedElement).endEditing(); 3277 3277 if (m_pageDismissalEventBeingDispatched == PageDismissalType::None) { 3278 m_frame.document()->markAsUnloadingOrUnloaded();3279 3280 m_frame.document()->dispatchEvent(Event::create(eventNames().visibilitychangeEvent, Event::CanBubble::Yes, Event::IsCancelable::No));3281 3282 3278 if (unloadEventPolicy == UnloadEventPolicyUnloadAndPageHide) { 3283 3279 m_pageDismissalEventBeingDispatched = PageDismissalType::PageHide; 3284 3280 m_frame.document()->domWindow()->dispatchEvent(PageTransitionEvent::create(eventNames().pagehideEvent, m_frame.document()->backForwardCacheState() == Document::AboutToEnterBackForwardCache), m_frame.document()); 3285 3281 } 3282 3283 // FIXME: update Page Visibility state here. 3284 // https://bugs.webkit.org/show_bug.cgi?id=116770 3286 3285 3287 3286 if (m_frame.document()->backForwardCacheState() == Document::NotInBackForwardCache) {
Note: See TracChangeset
for help on using the changeset viewer.