Enable WebCrypto on Mac
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Oct 2013 21:50:01 +0000 (21:50 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Oct 2013 21:50:01 +0000 (21:50 +0000)
commitd43745b4f8eb611600bd4678509b81337b78facf
treee2e00a42053197c09500b5cbeca02f794413fb3f
parent56831d6ced7b8b8ec4ea776f827169da191106dc
Enable WebCrypto on Mac
https://bugs.webkit.org/show_bug.cgi?id=123587

Reviewed by Anders Carlsson.

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig: Do it.

Source/WebCore:

* Configurations/FeatureDefines.xcconfig: Enable it.

* bindings/js/JSCryptoAlgorithmDictionary.cpp: Build fix.

* crypto/CryptoAlgorithmRegistry.cpp: (WebCore::CryptoAlgorithmRegistry::getIdentifierForName):
Special case empty keys to avoid upsetting HashMap.

* crypto/algorithms/CryptoAlgorithmSHA1.cpp: (WebCore::CryptoAlgorithmSHA1::create):
Build fix. Can't use make_unique, because constructor is private.

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig: Do it.

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig: Do it.

LayoutTests:

* TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/win/TestExpectations:
* platform/wincairo/TestExpectations:
Only skipping on specific platforms now.

* crypto: Added.
* crypto/crypto-gc-expected.txt: Copied from LayoutTests/security/crypto-gc-expected.txt.
* crypto/crypto-gc.html: Copied from LayoutTests/security/crypto-gc.html.
* crypto/crypto-random-values-expected.txt: Copied from LayoutTests/security/crypto-random-values-expected.txt.
* crypto/crypto-random-values-limits-expected.txt: Copied from LayoutTests/security/crypto-random-values-limits-expected.txt.
* crypto/crypto-random-values-limits.html: Copied from LayoutTests/security/crypto-random-values-limits.html.
* crypto/crypto-random-values-types-expected.txt: Copied from LayoutTests/security/crypto-random-values-types-expected.txt.
* crypto/crypto-random-values-types.html: Copied from LayoutTests/security/crypto-random-values-types.html.
* crypto/crypto-random-values.html: Copied from LayoutTests/security/crypto-random-values.html.
* crypto/subtle: Added.
* crypto/subtle/argument-conversion-expected.txt: Copied from LayoutTests/security/crypto-subtle-arguments-expected.txt.
* crypto/subtle/argument-conversion.html: Copied from LayoutTests/security/crypto-subtle-arguments.html.
* crypto/subtle/gc-2-expected.txt: Copied from LayoutTests/security/crypto-subtle-gc-2-expected.txt.
* crypto/subtle/gc-2.html: Copied from LayoutTests/security/crypto-subtle-gc-2.html.
* crypto/subtle/gc-3-expected.txt: Copied from LayoutTests/security/crypto-subtle-gc-3-expected.txt.
* crypto/subtle/gc-3.html: Copied from LayoutTests/security/crypto-subtle-gc-3.html.
* crypto/subtle/gc-expected.txt: Copied from LayoutTests/security/crypto-subtle-gc-expected.txt.
* crypto/subtle/gc.html: Copied from LayoutTests/security/crypto-subtle-gc.html.
* crypto/subtle/resources: Added.
* crypto/subtle/resources/common.js: Copied from LayoutTests/security/resources/common.js.
* crypto/subtle/sha-1-expected.txt: Copied from LayoutTests/security/crypto-subtle-sha1-expected.txt.
* crypto/subtle/sha-1.html: Copied from LayoutTests/security/crypto-subtle-sha1.html.
* security/crypto-gc-expected.txt: Removed.
* security/crypto-gc.html: Removed.
* security/crypto-random-values-expected.txt: Removed.
* security/crypto-random-values-limits-expected.txt: Removed.
* security/crypto-random-values-limits.html: Removed.
* security/crypto-random-values-types-expected.txt: Removed.
* security/crypto-random-values-types.html: Removed.
* security/crypto-random-values.html: Removed.
* security/crypto-subtle-arguments-expected.txt: Removed.
* security/crypto-subtle-arguments.html: Removed.
* security/crypto-subtle-gc-2-expected.txt: Removed.
* security/crypto-subtle-gc-2.html: Removed.
* security/crypto-subtle-gc-3-expected.txt: Removed.
* security/crypto-subtle-gc-3.html: Removed.
* security/crypto-subtle-gc-expected.txt: Removed.
* security/crypto-subtle-gc.html: Removed.
* security/crypto-subtle-sha1-expected.txt: Removed.
* security/crypto-subtle-sha1.html: Removed.
* security/resources/common.js: Removed.
Moved tests from security/ to crypto/.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
37 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/crypto/crypto-gc-expected.txt [moved from LayoutTests/security/crypto-gc-expected.txt with 100% similarity]
LayoutTests/crypto/crypto-gc.html [moved from LayoutTests/security/crypto-gc.html with 100% similarity]
LayoutTests/crypto/crypto-random-values-expected.txt [moved from LayoutTests/security/crypto-random-values-expected.txt with 100% similarity]
LayoutTests/crypto/crypto-random-values-limits-expected.txt [moved from LayoutTests/security/crypto-random-values-limits-expected.txt with 100% similarity]
LayoutTests/crypto/crypto-random-values-limits.html [moved from LayoutTests/security/crypto-random-values-limits.html with 100% similarity]
LayoutTests/crypto/crypto-random-values-types-expected.txt [moved from LayoutTests/security/crypto-random-values-types-expected.txt with 100% similarity]
LayoutTests/crypto/crypto-random-values-types.html [moved from LayoutTests/security/crypto-random-values-types.html with 100% similarity]
LayoutTests/crypto/crypto-random-values.html [moved from LayoutTests/security/crypto-random-values.html with 100% similarity]
LayoutTests/crypto/subtle/argument-conversion-expected.txt [moved from LayoutTests/security/crypto-subtle-arguments-expected.txt with 100% similarity]
LayoutTests/crypto/subtle/argument-conversion.html [moved from LayoutTests/security/crypto-subtle-arguments.html with 95% similarity]
LayoutTests/crypto/subtle/gc-2-expected.txt [moved from LayoutTests/security/crypto-subtle-gc-2-expected.txt with 100% similarity]
LayoutTests/crypto/subtle/gc-2.html [moved from LayoutTests/security/crypto-subtle-gc-2.html with 88% similarity]
LayoutTests/crypto/subtle/gc-3-expected.txt [moved from LayoutTests/security/crypto-subtle-gc-3-expected.txt with 100% similarity]
LayoutTests/crypto/subtle/gc-3.html [moved from LayoutTests/security/crypto-subtle-gc-3.html with 87% similarity]
LayoutTests/crypto/subtle/gc-expected.txt [moved from LayoutTests/security/crypto-subtle-gc-expected.txt with 100% similarity]
LayoutTests/crypto/subtle/gc.html [moved from LayoutTests/security/crypto-subtle-gc.html with 82% similarity]
LayoutTests/crypto/subtle/resources/common.js [moved from LayoutTests/security/resources/common.js with 100% similarity]
LayoutTests/crypto/subtle/sha-1-expected.txt [moved from LayoutTests/security/crypto-subtle-sha1-expected.txt with 100% similarity]
LayoutTests/crypto/subtle/sha-1.html [moved from LayoutTests/security/crypto-subtle-sha1.html with 92% similarity]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/win/TestExpectations
LayoutTests/platform/wincairo/TestExpectations
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
Source/WebCore/ChangeLog
Source/WebCore/Configurations/FeatureDefines.xcconfig
Source/WebCore/bindings/js/JSCryptoAlgorithmBuilder.cpp
Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp
Source/WebCore/crypto/CryptoAlgorithmRegistry.cpp
Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA1.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/FeatureDefines.xcconfig