Title: [212261] trunk
Revision
212261
Author
jiewen_...@apple.com
Date
2017-02-13 17:07:03 -0800 (Mon, 13 Feb 2017)

Log Message

[WebCrypto] WebInspector should indicate webkitSubtle is deprecated
https://bugs.webkit.org/show_bug.cgi?id=165913
<rdar://problem/30477222>

Reviewed by Joseph Pecoraro.

Source/WebCore:

Covered by existing tests.

* page/Crypto.cpp:
(WebCore::Crypto::webkitSubtle):

LayoutTests:

* crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html:
Change webkitSubtle to subtle.
* crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt-expected.txt:
* crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt-expected.txt:
* crypto/webkitSubtle/aes-cbc-encrypt-decrypt-expected.txt:
* crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding-expected.txt:
* crypto/webkitSubtle/aes-cbc-generate-key-expected.txt:
* crypto/webkitSubtle/aes-cbc-import-jwk-expected.txt:
* crypto/webkitSubtle/aes-cbc-invalid-length-expected.txt:
* crypto/webkitSubtle/aes-cbc-unwrap-failure-expected.txt:
* crypto/webkitSubtle/aes-cbc-unwrap-rsa-expected.txt:
* crypto/webkitSubtle/aes-cbc-wrap-rsa-expected.txt:
* crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable-expected.txt:
* crypto/webkitSubtle/aes-cbc-wrong-key-class-expected.txt:
* crypto/webkitSubtle/aes-export-key-expected.txt:
* crypto/webkitSubtle/aes-kw-key-manipulation-expected.txt:
* crypto/webkitSubtle/aes-kw-wrap-unwrap-aes-expected.txt:
* crypto/webkitSubtle/aes-postMessage-expected.txt:
* crypto/webkitSubtle/argument-conversion-expected.txt:
* crypto/webkitSubtle/array-buffer-view-offset-expected.txt:
* crypto/webkitSubtle/gc-2-expected.txt:
* crypto/webkitSubtle/gc-expected.txt:
* crypto/webkitSubtle/hmac-check-algorithm-expected.txt:
* crypto/webkitSubtle/hmac-export-key-expected.txt:
* crypto/webkitSubtle/hmac-generate-key-expected.txt:
* crypto/webkitSubtle/hmac-import-jwk-expected.txt:
* crypto/webkitSubtle/hmac-postMessage-expected.txt:
* crypto/webkitSubtle/hmac-sign-verify-empty-key-expected.txt:
* crypto/webkitSubtle/hmac-sign-verify-expected.txt:
* crypto/webkitSubtle/import-jwk-expected.txt:
* crypto/webkitSubtle/jwk-export-use-values-expected.txt:
* crypto/webkitSubtle/jwk-import-use-values-expected.txt:
* crypto/webkitSubtle/rsa-export-generated-keys-expected.txt:
* crypto/webkitSubtle/rsa-export-key-expected.txt:
* crypto/webkitSubtle/rsa-export-private-key-expected.txt:
* crypto/webkitSubtle/rsa-indexeddb-expected.txt:
* crypto/webkitSubtle/rsa-indexeddb-non-exportable-expected.txt:
* crypto/webkitSubtle/rsa-indexeddb-non-exportable-private-expected.txt:
* crypto/webkitSubtle/rsa-indexeddb-private-expected.txt:
* crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key-expected.txt:
* crypto/webkitSubtle/rsa-oaep-key-manipulation-expected.txt:
* crypto/webkitSubtle/rsa-oaep-plaintext-length-expected.txt:
* crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes-expected.txt:
* crypto/webkitSubtle/rsa-postMessage-expected.txt:
* crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt-expected.txt:
* crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt:
* crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-expected.txt:
* crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt:
* crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt:
* crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt:
* crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify-expected.txt:
* crypto/webkitSubtle/sha-1-expected.txt:
* crypto/webkitSubtle/sha-224-expected.txt:
* crypto/webkitSubtle/sha-256-expected.txt:
* crypto/webkitSubtle/sha-384-expected.txt:
* crypto/webkitSubtle/sha-512-expected.txt:
* crypto/webkitSubtle/unimplemented-unwrap-crash-expected.txt:
* crypto/webkitSubtle/unwrapKey-check-usage-expected.txt:
* crypto/webkitSubtle/wrapKey-check-usage-expected.txt:
* fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (212260 => 212261)


--- trunk/LayoutTests/ChangeLog	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/ChangeLog	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,72 @@
+2017-02-13  Jiewen Tan  <jiewen_...@apple.com>
+
+        [WebCrypto] WebInspector should indicate webkitSubtle is deprecated
+        https://bugs.webkit.org/show_bug.cgi?id=165913
+        <rdar://problem/30477222>
+
+        Reviewed by Joseph Pecoraro.
+
+        * crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html:
+        Change webkitSubtle to subtle.
+        * crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-encrypt-decrypt-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-generate-key-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-import-jwk-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-invalid-length-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-unwrap-failure-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-unwrap-rsa-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-wrap-rsa-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable-expected.txt:
+        * crypto/webkitSubtle/aes-cbc-wrong-key-class-expected.txt:
+        * crypto/webkitSubtle/aes-export-key-expected.txt:
+        * crypto/webkitSubtle/aes-kw-key-manipulation-expected.txt:
+        * crypto/webkitSubtle/aes-kw-wrap-unwrap-aes-expected.txt:
+        * crypto/webkitSubtle/aes-postMessage-expected.txt:
+        * crypto/webkitSubtle/argument-conversion-expected.txt:
+        * crypto/webkitSubtle/array-buffer-view-offset-expected.txt:
+        * crypto/webkitSubtle/gc-2-expected.txt:
+        * crypto/webkitSubtle/gc-expected.txt:
+        * crypto/webkitSubtle/hmac-check-algorithm-expected.txt:
+        * crypto/webkitSubtle/hmac-export-key-expected.txt:
+        * crypto/webkitSubtle/hmac-generate-key-expected.txt:
+        * crypto/webkitSubtle/hmac-import-jwk-expected.txt:
+        * crypto/webkitSubtle/hmac-postMessage-expected.txt:
+        * crypto/webkitSubtle/hmac-sign-verify-empty-key-expected.txt:
+        * crypto/webkitSubtle/hmac-sign-verify-expected.txt:
+        * crypto/webkitSubtle/import-jwk-expected.txt:
+        * crypto/webkitSubtle/jwk-export-use-values-expected.txt:
+        * crypto/webkitSubtle/jwk-import-use-values-expected.txt:
+        * crypto/webkitSubtle/rsa-export-generated-keys-expected.txt:
+        * crypto/webkitSubtle/rsa-export-key-expected.txt:
+        * crypto/webkitSubtle/rsa-export-private-key-expected.txt:
+        * crypto/webkitSubtle/rsa-indexeddb-expected.txt:
+        * crypto/webkitSubtle/rsa-indexeddb-non-exportable-expected.txt:
+        * crypto/webkitSubtle/rsa-indexeddb-non-exportable-private-expected.txt:
+        * crypto/webkitSubtle/rsa-indexeddb-private-expected.txt:
+        * crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key-expected.txt:
+        * crypto/webkitSubtle/rsa-oaep-key-manipulation-expected.txt:
+        * crypto/webkitSubtle/rsa-oaep-plaintext-length-expected.txt:
+        * crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes-expected.txt:
+        * crypto/webkitSubtle/rsa-postMessage-expected.txt:
+        * crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt-expected.txt:
+        * crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt:
+        * crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-expected.txt:
+        * crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt:
+        * crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt:
+        * crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt:
+        * crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify-expected.txt:
+        * crypto/webkitSubtle/sha-1-expected.txt:
+        * crypto/webkitSubtle/sha-224-expected.txt:
+        * crypto/webkitSubtle/sha-256-expected.txt:
+        * crypto/webkitSubtle/sha-384-expected.txt:
+        * crypto/webkitSubtle/sha-512-expected.txt:
+        * crypto/webkitSubtle/unimplemented-unwrap-crash-expected.txt:
+        * crypto/webkitSubtle/unwrapKey-check-usage-expected.txt:
+        * crypto/webkitSubtle/wrapKey-check-usage-expected.txt:
+        * fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt:
+
 2017-02-13  Ryan Haddad  <ryanhad...@apple.com>
 
         Mark media/modern-media-controls/layout-node/addChild.html as flaky on El Capitan WK1.

Modified: trunk/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html (212260 => 212261)


--- trunk/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html	2017-02-14 01:07:03 UTC (rev 212261)
@@ -23,7 +23,7 @@
 var extractable = true;
 
 debug("Generating a key pair...");
-crypto.webkitSubtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) {
+crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) {
     keyPair = result;
     shouldBe("keyPair.toString()", "'[object Object]'");
     shouldBe("keyPair.publicKey.type", "'public'");

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test AES-CBC encrypt and decrypt functions with a 256 bit key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test AES-CBC encrypt and decrypt functions with a 256 bit key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-encrypt-decrypt-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-encrypt-decrypt-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-encrypt-decrypt-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test AES-CBC encrypt and decrypt functions.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test AES-CBC encrypt and decrypt functions on a plaintext that is not a multiple of block size in length.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-generate-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-generate-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-generate-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 616: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test generating an AES key using AES-CBC algorithm.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-import-jwk-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-import-jwk-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-import-jwk-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 32: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test importing a JWK key for AES-CBC.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-invalid-length-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-invalid-length-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-invalid-length-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test an unsupported AES key length.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-unwrap-failure-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-unwrap-failure-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-unwrap-failure-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 23: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test unwrapping an RSA key with AES-CBC.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-unwrap-rsa-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-unwrap-rsa-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-unwrap-rsa-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 32: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test unwrapping an RSA key with AES-CBC.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrap-rsa-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrap-rsa-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrap-rsa-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 32: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test wrapping an RSA key with AES-CBC.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 32: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test wrapping an RSA key with AES-CBC.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrong-key-class-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrong-key-class-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-cbc-wrong-key-class-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test calling AES-CBC encrypt with a HMAC key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-export-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-export-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-export-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 616: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test exporting an AES key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-kw-key-manipulation-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-kw-key-manipulation-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-kw-key-manipulation-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 19: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test generating, importing and exporting keys for AES-KW. Test that they can't be used with another algorithm.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-kw-wrap-unwrap-aes-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-kw-wrap-unwrap-aes-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-kw-wrap-unwrap-aes-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 21: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test wrapping and unwrapping keys with AES-KW.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/aes-postMessage-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/aes-postMessage-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/aes-postMessage-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 26: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test sending crypto keys via postMessage.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/argument-conversion-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/argument-conversion-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/argument-conversion-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test crypto.webkitSubtle argument conversion
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/array-buffer-view-offset-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/array-buffer-view-offset-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/array-buffer-view-offset-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test that an ArrayBufferView with offset is processed correctly.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/gc-2-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/gc-2-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/gc-2-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 19: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test that window.crypto.webkitSubtle wrapper preserves custom properties.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/gc-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/gc-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/gc-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 15: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test that window.crypto.webkitSubtle wrapper preserves custom properties.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-check-algorithm-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-check-algorithm-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-check-algorithm-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 20: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test that HMAC operations only work when hash functions match between invocation and key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-export-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-export-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-export-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 27: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test exporting an AES key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-generate-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-generate-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-generate-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 616: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test generating a HMAC key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-import-jwk-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-import-jwk-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-import-jwk-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 29: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test importing a JWK key for HMAC.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-postMessage-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-postMessage-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-postMessage-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 26: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test sending crypto keys via postMessage.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-sign-verify-empty-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-sign-verify-empty-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-sign-verify-empty-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 20: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test HMAC sign and verify functions with an empty key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/hmac-sign-verify-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/hmac-sign-verify-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/hmac-sign-verify-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 20: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test HMAC sign and verify functions.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/import-jwk-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/import-jwk-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/import-jwk-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 616: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test error handling for JWK import.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/jwk-export-use-values-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/jwk-export-use-values-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/jwk-export-use-values-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 48: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test exporting keys with various usages to JWK.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/jwk-import-use-values-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/jwk-import-use-values-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/jwk-import-use-values-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test importing keys with various uses from JWK.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-export-generated-keys-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-export-generated-keys-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-export-generated-keys-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 26: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test exporting a generated RSA keypair with hash.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-export-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-export-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-export-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 29: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test exporting an RSA key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-export-private-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-export-private-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-export-private-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 36: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test exporting a private RSA key.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 18: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test storing a private RSA key in IndexedDB, and retrieving it.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-non-exportable-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-non-exportable-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-non-exportable-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 18: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test storing a private RSA key in IndexedDB, and retrieving it.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-non-exportable-private-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-non-exportable-private-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-non-exportable-private-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 18: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test storing a private RSA key in IndexedDB, and retrieving it.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-private-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-private-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-indexeddb-private-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 18: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test storing a private RSA key in IndexedDB, and retrieving it.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 25: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test that even when non-extractability is requested, the public key is still extractable.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-key-manipulation-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-key-manipulation-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-key-manipulation-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 25: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test generating, importing and exporting RSA keys for RSA-OAEP. Test that they can't be used with another algorithm.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-plaintext-length-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-plaintext-length-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-plaintext-length-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 40: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test what happens when trying to encrypt a too large plain text with RSA-OAEP.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 40: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test wrapping and unwrapping AES keys with RSA-OAEP.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsa-postMessage-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsa-postMessage-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsa-postMessage-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 60: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test sending crypto keys via postMessage.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 33: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test decrypting a known message with RSAES-PKCS1-v1_5.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 40: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test wrapping and unwrapping an AES key with RSAES-PKCS1-v1_5.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 25: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test generating an RSA key pair for RSASSA-PKCS1-v1_5.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 25: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test generating an RSA key pair for RSASSA-PKCS1-v1_5 when exponent has leading zeroes.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 39: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test importing an RSA key for RSASSA-PKCS1-v1_5.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 616: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 A key of size 2048 bits or larger MUST be used with RS256, RS384, RS512 JWK algorithms.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 41: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test importing an RSA key for RSASSA-PKCS1-v1_5.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/sha-1-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/sha-1-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/sha-1-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test crypto.webkitSubtle.digest.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/sha-224-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/sha-224-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/sha-224-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test crypto.webkitSubtle.digest.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/sha-256-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/sha-256-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/sha-256-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test crypto.webkitSubtle.digest.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/sha-384-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/sha-384-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/sha-384-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test crypto.webkitSubtle.digest.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/sha-512-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/sha-512-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/sha-512-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 1: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Test crypto.webkitSubtle.digest.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/unimplemented-unwrap-crash-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/unimplemented-unwrap-crash-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/unimplemented-unwrap-crash-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 17: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Make sure that unwrap does not cause a crash.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Modified: trunk/LayoutTests/crypto/webkitSubtle/unwrapKey-check-usage-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/unwrapKey-check-usage-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/unwrapKey-check-usage-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 40: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 CONSOLE MESSAGE: line 1: Key usages do not include 'unwrapKey'
 Verify that usage is respected in unwrapKey operation.
 

Modified: trunk/LayoutTests/crypto/webkitSubtle/wrapKey-check-usage-expected.txt (212260 => 212261)


--- trunk/LayoutTests/crypto/webkitSubtle/wrapKey-check-usage-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/crypto/webkitSubtle/wrapKey-check-usage-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 28: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 CONSOLE MESSAGE: line 1: Key usages do not include 'wrapKey'
 Verify that usage is respected in wrapKey operation.
 

Modified: trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (212260 => 212261)


--- trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1 +1,2 @@
+CONSOLE MESSAGE: line 107: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.
 Pass. WebKit didn't crash.

Modified: trunk/Source/WebCore/ChangeLog (212260 => 212261)


--- trunk/Source/WebCore/ChangeLog	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/Source/WebCore/ChangeLog	2017-02-14 01:07:03 UTC (rev 212261)
@@ -1,3 +1,16 @@
+2017-02-13  Jiewen Tan  <jiewen_...@apple.com>
+
+        [WebCrypto] WebInspector should indicate webkitSubtle is deprecated
+        https://bugs.webkit.org/show_bug.cgi?id=165913
+        <rdar://problem/30477222>
+
+        Reviewed by Joseph Pecoraro.
+
+        Covered by existing tests.
+
+        * page/Crypto.cpp:
+        (WebCore::Crypto::webkitSubtle):
+
 2017-02-13  Simon Fraser  <simon.fra...@apple.com>
 
         Call WKDestroyRenderingResources() on iOS when tabs are backgrounded

Modified: trunk/Source/WebCore/page/Crypto.cpp (212260 => 212261)


--- trunk/Source/WebCore/page/Crypto.cpp	2017-02-14 00:47:41 UTC (rev 212260)
+++ trunk/Source/WebCore/page/Crypto.cpp	2017-02-14 01:07:03 UTC (rev 212261)
@@ -74,8 +74,10 @@
     if (!isMainThread())
         return Exception { NOT_SUPPORTED_ERR };
 
-    if (!m_webkitSubtle)
+    if (!m_webkitSubtle) {
         m_webkitSubtle = WebKitSubtleCrypto::create(*downcast<Document>(scriptExecutionContext()));
+        scriptExecutionContext()->addConsoleMessage(MessageSource::Other, MessageLevel::Warning, ASCIILiteral("WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead."));
+    }
 
     return *m_webkitSubtle;
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to