[CredentialManagement] Incorporate IDL updates from latest spec
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 May 2017 21:08:18 +0000 (21:08 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 May 2017 21:08:18 +0000 (21:08 +0000)
commit5ba355553c0709e26d33ffc969fba35f7691a44d
tree423a8e2e39ea2d97bacc6bb0dcf4de6dce3490e0
parent8df742db676be1c4555e6ed9cb34c1d8e37b4c0b
[CredentialManagement] Incorporate IDL updates from latest spec
https://bugs.webkit.org/show_bug.cgi?id=172011

Patch by Ali Juma <ajuma@chromium.org> on 2017-05-30
Reviewed by Daniel Bates.

Source/JavaScriptCore:

* runtime/CommonIdentifiers.h:

Source/WebCore:

This patch adds IDL definitions for the CredentialsContainer, CredentialsUserData and
FederatedCredentials interfaces, the NavigatorCredentials partial interface, and the
CredentialCreationOptions, CredentialRequestOptions, FederatedCredentialRequestOptions,
and PasswordCredentialData dictionaries. It also deletes IDL definitions for the
SiteBoundCredential interface and the SiteBoundCredentialData dictionary.

Test: credentials/idlharness.html

* CMakeLists.txt:
* DerivedSources.make:
* Modules/credentials/BasicCredential.idl:
* Modules/credentials/CredentialCreationOptions.h: Copied from Source/WebCore/Modules/credentials/PasswordCredential.cpp.
* Modules/credentials/CredentialCreationOptions.idl: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/CredentialRequestOptions.h: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/CredentialRequestOptions.idl: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/CredentialUserData.h: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
(WebCore::CredentialUserData::~CredentialUserData):
* Modules/credentials/CredentialUserData.idl: Copied from Source/WebCore/Modules/credentials/SiteBoundCredential.idl.
* Modules/credentials/CredentialsContainer.cpp: Copied from Source/WebCore/Modules/credentials/PasswordCredential.cpp.
(WebCore::CredentialsContainer::get):
(WebCore::CredentialsContainer::store):
(WebCore::CredentialsContainer::isCreate):
(WebCore::CredentialsContainer::preventSilentAccess):
* Modules/credentials/CredentialsContainer.h: Copied from Source/WebCore/Modules/credentials/SiteBoundCredential.h.
(WebCore::CredentialsContainer::create):
(WebCore::CredentialsContainer::CredentialsContainer):
* Modules/credentials/CredentialsContainer.idl: Copied from Source/WebCore/Modules/credentials/SiteBoundCredential.idl.
* Modules/credentials/FederatedCredential.cpp: Copied from Source/WebCore/Modules/credentials/SiteBoundCredential.cpp.
(WebCore::FederatedCredential::FederatedCredential):
(WebCore::FederatedCredential::~FederatedCredential):
* Modules/credentials/FederatedCredential.h: Renamed from Source/WebCore/Modules/credentials/SiteBoundCredential.h.
(WebCore::FederatedCredential::create):
(WebCore::FederatedCredential::provider):
(WebCore::FederatedCredential::protocol):
* Modules/credentials/FederatedCredential.idl: Copied from Source/WebCore/Modules/credentials/BasicCredential.idl.
* Modules/credentials/FederatedCredentialInit.h: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/FederatedCredentialInit.idl: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.idl.
* Modules/credentials/FederatedCredentialRequestOptions.h: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/FederatedCredentialRequestOptions.idl: Added.
* Modules/credentials/NavigatorCredentials.cpp: Renamed from Source/WebCore/Modules/credentials/SiteBoundCredential.cpp.
(WebCore::NavigatorCredentials::NavigatorCredentials):
(WebCore::NavigatorCredentials::~NavigatorCredentials):
(WebCore::NavigatorCredentials::supplementName):
(WebCore::NavigatorCredentials::credentials):
(WebCore::NavigatorCredentials::from):
* Modules/credentials/NavigatorCredentials.h: Copied from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/NavigatorCredentials.idl: Renamed from Source/WebCore/Modules/credentials/SiteBoundCredential.idl.
* Modules/credentials/PasswordCredential.cpp:
(WebCore::PasswordCredential::PasswordCredential):
(WebCore::PasswordCredential::~PasswordCredential):
* Modules/credentials/PasswordCredential.h:
(WebCore::PasswordCredential::create):
(WebCore::PasswordCredential::password):
(WebCore::PasswordCredential::setIdName): Deleted.
(WebCore::PasswordCredential::idName): Deleted.
(WebCore::PasswordCredential::setPasswordName): Deleted.
(WebCore::PasswordCredential::passwordName): Deleted.
(WebCore::PasswordCredential::setAdditionalData): Deleted.
(WebCore::PasswordCredential::additionalData): Deleted.
* Modules/credentials/PasswordCredential.idl:
* Modules/credentials/PasswordCredentialData.h: Renamed from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h.
* Modules/credentials/PasswordCredentialData.idl: Renamed from Source/WebCore/Modules/credentials/SiteBoundCredentialData.idl.
* WebCore.xcodeproj/project.pbxproj:

LayoutTests:

* credentials/idlharness-expected.txt:
* credentials/idlharness.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
34 files changed:
LayoutTests/ChangeLog
LayoutTests/credentials/idlharness-expected.txt
LayoutTests/credentials/idlharness.html
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/CommonIdentifiers.h
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/Modules/credentials/BasicCredential.idl
Source/WebCore/Modules/credentials/CredentialCreationOptions.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialCreationOptions.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialRequestOptions.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialRequestOptions.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialUserData.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialUserData.idl [moved from Source/WebCore/Modules/credentials/SiteBoundCredential.idl with 92% similarity]
Source/WebCore/Modules/credentials/CredentialsContainer.cpp [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialsContainer.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/CredentialsContainer.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/FederatedCredential.cpp [moved from Source/WebCore/Modules/credentials/SiteBoundCredential.cpp with 78% similarity]
Source/WebCore/Modules/credentials/FederatedCredential.h [moved from Source/WebCore/Modules/credentials/SiteBoundCredential.h with 65% similarity]
Source/WebCore/Modules/credentials/FederatedCredential.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/FederatedCredentialInit.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/FederatedCredentialInit.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/FederatedCredentialRequestOptions.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/FederatedCredentialRequestOptions.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/NavigatorCredentials.cpp [new file with mode: 0644]
Source/WebCore/Modules/credentials/NavigatorCredentials.h [new file with mode: 0644]
Source/WebCore/Modules/credentials/NavigatorCredentials.idl [new file with mode: 0644]
Source/WebCore/Modules/credentials/PasswordCredential.cpp
Source/WebCore/Modules/credentials/PasswordCredential.h
Source/WebCore/Modules/credentials/PasswordCredential.idl
Source/WebCore/Modules/credentials/PasswordCredentialData.h [moved from Source/WebCore/Modules/credentials/SiteBoundCredentialData.h with 91% similarity]
Source/WebCore/Modules/credentials/PasswordCredentialData.idl [moved from Source/WebCore/Modules/credentials/SiteBoundCredentialData.idl with 90% similarity]
Source/WebCore/WebCore.xcodeproj/project.pbxproj