Bug 197481

Summary: [WebAuthN] Adopt SecurityOrigin::isMatchingRegistrableDomainSuffix()
Product: WebKit Reporter: Jiewen Tan <jiewen_tan>
Component: WebCore Misc.Assignee: Jiewen Tan <jiewen_tan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, ews-watchlist, jiewen_tan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 181943    
Attachments:
Description Flags
Patch
bfulgham: review+, ews-watchlist: commit-queue-
Patch for landing
none
Archive of layout-test-results from ews126 for ios-simulator-wk2 none

Description Jiewen Tan 2019-05-01 15:23:03 PDT
Adopt SecurityOrigin::isMatchingRegistrableDomainSuffix().
Comment 1 Jiewen Tan 2019-05-01 15:32:24 PDT
Created attachment 368722 [details]
Patch
Comment 2 Brent Fulgham 2019-05-01 17:16:55 PDT
Comment on attachment 368722 [details]
Patch

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

Looks good! I would adjust the comments slightly, but no further review is needed.

> Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp:131
> +    // be domains or IP addresses. https://url.spec.whatwg.org/#url-representation

I think it might be simpler to just say: "The effective domain may be represented in various manners, such as a domain or an ip address. Only the domain format of host is permitted in WebAuthN.

> Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp:198
> +    // be a domain or an IP address. https://url.spec.whatwg.org/#url-representation

Ditto: I think it might be simpler to just say: "The effective domain may be represented in various manners, such as a domain or an ip address. Only the domain format of host is permitted in WebAuthN.
Comment 3 Jiewen Tan 2019-05-01 18:39:30 PDT
Comment on attachment 368722 [details]
Patch

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

Thanks Brent for r+ this patch.

>> Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp:131
>> +    // be domains or IP addresses. https://url.spec.whatwg.org/#url-representation
> 
> I think it might be simpler to just say: "The effective domain may be represented in various manners, such as a domain or an ip address. Only the domain format of host is permitted in WebAuthN.

Fixed.

>> Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp:198
>> +    // be a domain or an IP address. https://url.spec.whatwg.org/#url-representation
> 
> Ditto: I think it might be simpler to just say: "The effective domain may be represented in various manners, such as a domain or an ip address. Only the domain format of host is permitted in WebAuthN.

Fixed.
Comment 4 Jiewen Tan 2019-05-01 18:40:46 PDT
Created attachment 368748 [details]
Patch for landing
Comment 5 EWS Watchlist 2019-05-01 18:44:38 PDT
Comment on attachment 368722 [details]
Patch

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

New failing tests:
imported/w3c/web-platform-tests/xhr/event-upload-progress.htm
Comment 6 EWS Watchlist 2019-05-01 18:44:40 PDT
Created attachment 368749 [details]
Archive of layout-test-results from ews126 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126  Port: ios-simulator-wk2  Platform: Mac OS X 10.14.4
Comment 7 Jiewen Tan 2019-05-01 18:50:13 PDT
(In reply to Build Bot from comment #5)
> Comment on attachment 368722 [details]
> Patch
> 
> Attachment 368722 [details] did not pass ios-sim-ews (ios-simulator-wk2):
> Output: https://webkit-queues.webkit.org/results/12056568
> 
> New failing tests:
> imported/w3c/web-platform-tests/xhr/event-upload-progress.htm

The test failure is completely unrelated. Not able to reproduce locally.
Comment 8 WebKit Commit Bot 2019-05-01 19:20:57 PDT
Comment on attachment 368748 [details]
Patch for landing

Clearing flags on attachment: 368748

Committed r244863: <https://trac.webkit.org/changeset/244863>
Comment 9 Radar WebKit Bug Importer 2019-05-02 15:36:04 PDT
<rdar://problem/50424889>