Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8dbebaa6d56be48eca38f560fb23754b279ff69d
      
https://github.com/WebKit/WebKit/commit/8dbebaa6d56be48eca38f560fb23754b279ff69d
  Author: Ryosuke Niwa <[email protected]>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    A LayoutTests/fast/events/page-visibility-resize-event-order-expected.txt
    A LayoutTests/fast/events/page-visibility-resize-event-order.html
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h

  Log Message:
  -----------
  Google Spreadsheet is glitchy in Safari
https://bugs.webkit.org/show_bug.cgi?id=294310

Reviewed by Simon Fraser.

The bug was caused by WebKit firing resize event before visibilitychange event.
Defer the dispatching of resize event while the page is not visible to emulate 
the behavior of Chrome.

This fixes the glitch on Google spreadsheet.

* LayoutTests/fast/events/page-visibility-resize-event-order-expected.txt: 
Added.
* LayoutTests/fast/events/page-visibility-resize-event-order.html: Added.
* LayoutTests/platform/wpe/TestExpectations:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::visibilityStateChanged):
(WebCore::Document::runResizeSteps):
* Source/WebCore/dom/Document.h:

Canonical link: https://commits.webkit.org/296124@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to