Bug 196077 - We should pass minimumEffectiveDeviceWidth to web process on new page creation.
Summary: We should pass minimumEffectiveDeviceWidth to web process on new page creation.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yongjun Zhang
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-21 08:32 PDT by Yongjun Zhang
Modified: 2019-04-05 20:43 PDT (History)
8 users (show)

See Also:


Attachments
Ignore the initial scale. (1.77 KB, patch)
2019-03-21 08:40 PDT, Yongjun Zhang
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.96 MB, application/zip)
2019-03-21 13:24 PDT, EWS Watchlist
no flags Details
Patch. (19.20 KB, patch)
2019-04-05 15:57 PDT, Yongjun Zhang
cdumez: review+
cdumez: commit-queue-
Details | Formatted Diff | Diff
Add review comments and fix mac build failure. (18.90 KB, patch)
2019-04-05 19:35 PDT, Yongjun Zhang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>