[WebAuthN] Adopt SecurityOrigin::isMatchingRegistrableDomainSuffix()
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 May 2019 02:20:51 +0000 (02:20 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 2 May 2019 02:20:51 +0000 (02:20 +0000)
commit89c9c2089cd336b36cfc81dde24bf1b2f3d5fe86
treeb8fa0632debdf74a94d425aebc7288d1390283f7
parentf93ab19e61a2caa9703c073a484dc711cfd8731f
[WebAuthN] Adopt SecurityOrigin::isMatchingRegistrableDomainSuffix()
https://bugs.webkit.org/show_bug.cgi?id=197481

Reviewed by Brent Fulgham.

Source/WebCore:

This patch implements Step 6-7 from:
https://www.w3.org/TR/webauthn/#createCredential,
https://www.w3.org/TR/webauthn/#discover-from-external-source.

Test: http/wpt/webauthn/public-key-credential-ip-address.html

* Modules/webauthn/AuthenticatorCoordinator.cpp:
(WebCore::AuthenticatorCoordinator::create const):
(WebCore::AuthenticatorCoordinator::discoverFromExternalSource const):

LayoutTests:

* http/wpt/webauthn/public-key-credential-create-failure.https.html:
* http/wpt/webauthn/public-key-credential-get-failure.https.html:
* http/wpt/webauthn/public-key-credential-ip-address-expected.txt: Added.
* http/wpt/webauthn/public-key-credential-ip-address.html: Added.
* http/wpt/webauthn/resources/public-key-credential-ip-address.https.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/wpt/webauthn/public-key-credential-create-failure.https.html
LayoutTests/http/wpt/webauthn/public-key-credential-get-failure.https.html
LayoutTests/http/wpt/webauthn/public-key-credential-ip-address-expected.txt [new file with mode: 0644]
LayoutTests/http/wpt/webauthn/public-key-credential-ip-address.html [new file with mode: 0644]
LayoutTests/http/wpt/webauthn/resources/public-key-credential-ip-address.https.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/webauthn/AuthenticatorCoordinator.cpp