Bug 196077

Summary: We should pass minimumEffectiveDeviceWidth to web process on new page creation.
Product: WebKit Reporter: Yongjun Zhang <yongjun_zhang>
Component: WebKit Misc.Assignee: Yongjun Zhang <yongjun_zhang>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, cdumez, commit-queue, ews-watchlist, thorton, webkit-bug-importer, wenson_hsieh, yongjun_zhang
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Ignore the initial scale.
ews-watchlist: commit-queue-
Archive of layout-test-results from ews121 for ios-simulator-wk2
none
Patch.
cdumez: review+, cdumez: commit-queue-
Add review comments and fix mac build failure. none

Description Yongjun Zhang 2019-03-21 08:32:31 PDT
If the page is using nativeWebpageParametersWithShrinkToFit as the default configuration, we should not force its initial scale to 1.
Comment 1 Yongjun Zhang 2019-03-21 08:35:03 PDT
<rdar://problem/49108202>
Comment 2 Yongjun Zhang 2019-03-21 08:40:55 PDT
Created attachment 365547 [details]
Ignore the initial scale.
Comment 3 EWS Watchlist 2019-03-21 13:24:21 PDT
Comment on attachment 365547 [details]
Ignore the initial scale.

Attachment 365547 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/11602696

New failing tests:
fast/viewport/ios/width-is-device-width-overflowing-body-overflow-hidden-tall.html
fast/viewport/ios/viewport-shrink-to-fit-on-new-navigation.html
Comment 4 EWS Watchlist 2019-03-21 13:24:22 PDT
Created attachment 365605 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.6
Comment 5 Yongjun Zhang 2019-04-05 15:57:48 PDT
Created attachment 366852 [details]
Patch.
Comment 6 EWS Watchlist 2019-04-05 16:00:24 PDT
Attachment 366852 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:5889:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:5905:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
Total errors found: 2 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Chris Dumez 2019-04-05 16:18:21 PDT
Comment on attachment 366852 [details]
Patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=366852&action=review

r=me

> LayoutTests/ChangeLog:10
> +        Reviewed by NOBODY (OOPS!).

This goes before "Add a layout test..."

> Source/WebCore/page/ViewportConfiguration.cpp:180
> +    updateMinimumLayoutSize();

Could this be moved inside updateDefaultConfiguration() if it is needed whenever we update the default config?

> Source/WebKit/ChangeLog:12
> +        Reviewed by NOBODY (OOPS!).

Should come before the description.

> Source/WebKit/Shared/WebPageCreationParameters.h:151
> +    double viewportConfigurationMinimumEffectiveDeviceWidth;

Should really have a default value, to be safe.

> Tools/ChangeLog:12
> +        https://bugs.webkit.org/show_bug.cgi?id=196077

What's this?

> Tools/ChangeLog:13
> +        <rdar://problem/49108202>

What's this?

> Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:5923
> +        EXPECT_EQ([width intValue], 1024);

1024 should go first.
Comment 8 Yongjun Zhang 2019-04-05 19:35:57 PDT
Created attachment 366867 [details]
Add review comments and fix mac build failure.
Comment 9 EWS Watchlist 2019-04-05 19:41:15 PDT
Attachment 366867 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:5889:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:5905:  Multi-line string ("...") found.  This lint script doesn't do well with such strings, and may give bogus warnings.  They're ugly and unnecessary, and you should use concatenation instead".  [readability/multiline_string] [5]
Total errors found: 2 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 WebKit Commit Bot 2019-04-05 20:41:32 PDT
Comment on attachment 366867 [details]
Add review comments and fix mac build failure.

Clearing flags on attachment: 366867

Committed r243961: <https://trac.webkit.org/changeset/243961>
Comment 11 WebKit Commit Bot 2019-04-05 20:41:34 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2019-04-05 20:43:29 PDT
<rdar://problem/49665406>