Bug 186442 - [WebKit on watchOS] Upstream watchOS source additions to OpenSource
Summary: [WebKit on watchOS] Upstream watchOS source additions to OpenSource
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: Wenson Hsieh
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-08 13:37 PDT by Wenson Hsieh
Modified: 2018-06-26 07:48 PDT (History)
12 users (show)

See Also:


Attachments
Patch (81.21 KB, patch)
2018-06-08 13:45 PDT, Wenson Hsieh
thorton: review+
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (81.26 KB, patch)
2018-06-08 19:32 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews200 for win-future (12.89 MB, application/zip)
2018-06-08 20:11 PDT, EWS Watchlist
no flags Details
Form controls (84.67 KB, patch)
2018-06-12 11:38 PDT, Wenson Hsieh
thorton: review+
Details | Formatted Diff | Diff
Patch for landing (84.69 KB, patch)
2018-06-12 12:28 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff
Rename more references to extra zoom (93.00 KB, patch)
2018-06-16 23:00 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2018-06-08 13:37:42 PDT
<rdar://problem/40879364>
Comment 1 Wenson Hsieh 2018-06-08 13:45:21 PDT
Created attachment 342317 [details]
Patch
Comment 2 Wenson Hsieh 2018-06-08 19:32:24 PDT
Created attachment 342355 [details]
Patch for landing
Comment 3 EWS Watchlist 2018-06-08 20:11:42 PDT
Comment on attachment 342317 [details]
Patch

Attachment 342317 [details] did not pass win-ews (win):
Output: http://webkit-queues.webkit.org/results/8094262

New failing tests:
http/tests/preload/onload_event.html
Comment 4 EWS Watchlist 2018-06-08 20:11:54 PDT
Created attachment 342357 [details]
Archive of layout-test-results from ews200 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews200  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 5 WebKit Commit Bot 2018-06-08 20:12:26 PDT
Comment on attachment 342355 [details]
Patch for landing

Clearing flags on attachment: 342355

Committed r232659: <https://trac.webkit.org/changeset/232659>
Comment 6 Wenson Hsieh 2018-06-12 11:38:11 PDT
Reopening to attach new patch.
Comment 7 Wenson Hsieh 2018-06-12 11:38:12 PDT
Created attachment 342570 [details]
Form controls
Comment 8 Tim Horton 2018-06-12 12:04:26 PDT
Comment on attachment 342570 [details]
Form controls

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

> Source/WebKit/UIProcess/ios/forms/WKDatePickerViewController.mm:647
> +    if (pickerView == _yearAndEraPicker)
> +        [_yearAndEraPicker setChangingValue:YES];
> +    if (pickerView == _dayPicker)

else if?

> Source/WebKit/UIProcess/ios/forms/WKDatePickerViewController.mm:655
> +    if (pickerView == _yearAndEraPicker)

Ditto

> Source/WebKit/UIProcess/ios/forms/WKNumberPadViewController.mm:145
> +- (void)_handleKeyPress:(WKNumberPadKey)key

This is not my favorite thing in the world, but OK.

> Source/WebKit/UIProcess/ios/forms/WKNumberPadViewController.mm:258
> +    fadeOutAnimation.fromValue = @(1);

Do you need the parens?

> Source/WebKit/UIProcess/ios/forms/WKTimePickerViewController.mm:67
> +    [_dateFormatter setLocale:[NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]];

en_US_POSIX, always?
Comment 9 Wenson Hsieh 2018-06-12 12:22:20 PDT
Comment on attachment 342570 [details]
Form controls

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

>> Source/WebKit/UIProcess/ios/forms/WKDatePickerViewController.mm:647
>> +    if (pickerView == _dayPicker)
> 
> else if?

Sounds good.

>> Source/WebKit/UIProcess/ios/forms/WKDatePickerViewController.mm:655
>> +    if (pickerView == _yearAndEraPicker)
> 
> Ditto

Done!

>> Source/WebKit/UIProcess/ios/forms/WKNumberPadViewController.mm:145
>> +- (void)_handleKeyPress:(WKNumberPadKey)key
> 
> This is not my favorite thing in the world, but OK.

I'm definitely taking suggestions! :/

>> Source/WebKit/UIProcess/ios/forms/WKNumberPadViewController.mm:258
>> +    fadeOutAnimation.fromValue = @(1);
> 
> Do you need the parens?

Nope! Removed.

>> Source/WebKit/UIProcess/ios/forms/WKTimePickerViewController.mm:67
>> +    [_dateFormatter setLocale:[NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]];
> 
> en_US_POSIX, always?

Yes. This is just used to transform hour and minute values into an input value (also see: -[WKDateTimePicker dateFormatterForPicker] on iOS).
Comment 10 Wenson Hsieh 2018-06-12 12:28:03 PDT
Created attachment 342581 [details]
Patch for landing
Comment 11 WebKit Commit Bot 2018-06-12 13:07:29 PDT
Comment on attachment 342581 [details]
Patch for landing

Clearing flags on attachment: 342581

Committed r232770: <https://trac.webkit.org/changeset/232770>
Comment 12 Wenson Hsieh 2018-06-16 23:00:48 PDT
Created attachment 342908 [details]
Rename more references to extra zoom
Comment 13 WebKit Commit Bot 2018-06-17 11:37:16 PDT
Comment on attachment 342908 [details]
Rename more references to extra zoom

Clearing flags on attachment: 342908

Committed r232916: <https://trac.webkit.org/changeset/232916>