Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 14fb97b18b24bfafb8ca4e01ef2f0a76aec8e006
      
https://github.com/WebKit/WebKit/commit/14fb97b18b24bfafb8ca4e01ef2f0a76aec8e006
  Author: Jessica Cheung <[email protected]>
  Date:   2026-04-24 (Fri, 24 Apr 2026)

  Changed paths:
    M 
LayoutTests/fast/viewport/ios/shrink-to-fit-content-large-width-breakpoint-expected.txt
    M 
LayoutTests/fast/viewport/ios/shrink-to-fit-content-responsive-viewport-with-horizontal-overflow-expected.txt
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

  Log Message:
  -----------
  Log warning messages to the console if a page with a responsive meta viewport 
scrolls horizontally
https://bugs.webkit.org/show_bug.cgi?id=197429
rdar://175292678

Reviewed by Richard Robinson, Lily Spiniolas, and Aditya Keerthi.

Fixed a FIXME by adding console warning messages when a
responsive meta viewport was used.

To prevent extra logs, only give a warning message if the width
changed. This is tracked by m_lastShrinkToFitLayoutWidth, which
is used to compare if the width is different from before.

Update test results since they include the new console warnings.

* 
LayoutTests/fast/viewport/ios/shrink-to-fit-content-large-width-breakpoint-expected.txt:
* 
LayoutTests/fast/viewport/ios/shrink-to-fit-content-responsive-viewport-with-horizontal-overflow-expected.txt:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::didCommitLoad):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::shrinkToFitContent):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to