Bug 159189 - [GTK] Crash on https://diafygi.github.io/webcrypto-examples with ENABLE_SUBTLE_CRYPTO
Summary: [GTK] Crash on https://diafygi.github.io/webcrypto-examples with ENABLE_SUBTL...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks: 133122 159260
  Show dependency treegraph
 
Reported: 2016-06-27 18:41 PDT by Carlos Alberto Lopez Perez
Modified: 2016-07-10 01:04 PDT (History)
11 users (show)

See Also:


Attachments
Patch (73.25 KB, patch)
2016-07-05 08:04 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (70.83 KB, patch)
2016-07-05 08:06 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (70.89 KB, patch)
2016-07-07 02:53 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (71.02 KB, patch)
2016-07-07 08:28 PDT, Yusuke Suzuki
mcatanzaro: review+
Details | Formatted Diff | Diff
Patch for landing (74.99 KB, patch)
2016-07-09 23:29 PDT, Yusuke Suzuki
buildbot: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (75.01 KB, patch)
2016-07-10 00:19 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-yosemite (1.11 MB, application/zip)
2016-07-10 00:47 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.05 MB, application/zip)
2016-07-10 00:49 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews115 for mac-yosemite (1.60 MB, application/zip)
2016-07-10 00:50 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews125 for ios-simulator-wk2 (817.64 KB, application/zip)
2016-07-10 00:56 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2016-06-27 18:41:29 PDT
When building with -DENABLE_SUBTLE_CRYPTO=ON (default for developer builds), the webprocess crashes when trying to load the following test page for WebCrypto API with the minibrowser:


https://diafygi.github.io/webcrypto-examples/


The backtrace (on r202483): http://sprunge.us/SdGc
Comment 1 Michael Catanzaro 2016-06-27 19:45:42 PDT
Um, I'm gonna try to land my patch in bug #155073 to turn off subtle crypto, which I had forgotten about. That will make this less serious. We shouldn't have experimental features enabled unless someone is actually working on them.
Comment 2 Chris Dumez 2016-06-27 20:10:13 PDT
FYI, I could not reproduce the crash on Mac.
Comment 3 Carlos Garcia Campos 2016-06-27 22:45:09 PDT
I'm more and more concerned about this trend of disabling features when something  fails instead of fixing the bug. Why is this so risky when subtle crypto is only enable on developer builds?
Comment 4 Yusuke Suzuki 2016-06-28 07:54:20 PDT
I think the existing code is incorrect since encryptFailureCallback() is called in exportSuccessCallback even after this encryptFailureCallback is WTFMove()-ed.

I think there are double free bug; encryptFailureCallback may be called twice if platformEncrypt is not implemented.
Comment 5 Yusuke Suzuki 2016-07-05 08:04:50 PDT
Created attachment 282788 [details]
Patch
Comment 6 Yusuke Suzuki 2016-07-05 08:06:19 PDT
Created attachment 282790 [details]
Patch
Comment 7 WebKit Commit Bot 2016-07-05 08:09:24 PDT
Attachment 282790 [details] did not pass style-queue:


ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:50:  CryptoAlgorithmRSA_OAEP::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:49:  CryptoAlgorithmAES_CBC::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp:48:  CryptoAlgorithmAES_KW::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:50:  CryptoAlgorithmRSASSA_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:49:  CryptoAlgorithmRSAES_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/CryptoAlgorithmRegistry.h:53:  'create' is incorrectly named. It should be named 'protector' or 'protectedCryptoAlgorithmIdentifier'.  [readability/naming/protected] [4]
Total errors found: 6 in 44 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Carlos Garcia Campos 2016-07-05 23:13:47 PDT
Comment on attachment 282790 [details]
Patch

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

Thanks! Patch looks to me in general, but I'm not familiar with the promises callback part, so I can't really review that part.

> Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp:149
>      return WTFMove(result);

I think move is not really needed in return, right? Maybe we could take advantage of this patch to also remove all the return WTFMove() here.
Comment 9 Yusuke Suzuki 2016-07-07 02:41:53 PDT
Comment on attachment 282790 [details]
Patch

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

Thanks :D

>> Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp:149
>>      return WTFMove(result);
> 
> I think move is not really needed in return, right? Maybe we could take advantage of this patch to also remove all the return WTFMove() here.

Right! I'll fix this.
Comment 10 Yusuke Suzuki 2016-07-07 02:53:20 PDT
Created attachment 283003 [details]
Patch
Comment 11 WebKit Commit Bot 2016-07-07 02:55:38 PDT
Attachment 283003 [details] did not pass style-queue:


ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:50:  CryptoAlgorithmRSA_OAEP::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:49:  CryptoAlgorithmAES_CBC::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp:48:  CryptoAlgorithmAES_KW::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:50:  CryptoAlgorithmRSASSA_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:49:  CryptoAlgorithmRSAES_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/CryptoAlgorithmRegistry.h:53:  'create' is incorrectly named. It should be named 'protector' or 'protectedCryptoAlgorithmIdentifier'.  [readability/naming/protected] [4]
Total errors found: 6 in 44 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 12 Yusuke Suzuki 2016-07-07 02:55:40 PDT
Comment on attachment 283003 [details]
Patch

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

Added comment.

> Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp:149
>      return WTFMove(result);

`return WTFMove(...)` is still efficient if the type of the `result` is not the same to the type of the function's result_type. (implicit type conversion).
In the above code, the result is `RefPtr<CryptoAlgorithmParameters>` (since it may return the nullptr), while the type of `result` is `Ref<CryptoAlgorithmParameters>`.
In such case, still WTFMove is necessary to invoke the move constructor.
Comment 13 Yusuke Suzuki 2016-07-07 08:28:32 PDT
Created attachment 283011 [details]
Patch
Comment 14 WebKit Commit Bot 2016-07-07 08:29:43 PDT
Attachment 283011 [details] did not pass style-queue:


ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:50:  CryptoAlgorithmRSA_OAEP::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:49:  CryptoAlgorithmAES_CBC::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp:48:  CryptoAlgorithmAES_KW::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:50:  CryptoAlgorithmRSASSA_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:49:  CryptoAlgorithmRSAES_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/CryptoAlgorithmRegistry.h:53:  'create' is incorrectly named. It should be named 'protector' or 'protectedCryptoAlgorithmIdentifier'.  [readability/naming/protected] [4]
Total errors found: 6 in 44 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 15 Michael Catanzaro 2016-07-09 16:46:40 PDT
Comment on attachment 283011 [details]
Patch

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

Nice patch!

> Source/WebCore/ChangeLog:11
> +        In SubtleCrypto code, we have the rule that we must not call failureCallback when the error code is filled in synchronous execution.

Is this documented somewhere in the code? It seems quite tricky.

> Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.h:56
> +    bool reconcileAlgorithm(RefPtr<CryptoAlgorithm>&, RefPtr<CryptoAlgorithmParameters>&) const override;

This doesn't look right. Surely the original code should have been passing a CryptoAlgorithm*, since there is no ownership transfer. I can't think of a reason to pass a std::unique_ptr or a RefPtr<CryptoAlgorithm> by reference. It'd be good to take this opportunity to fix it to take a CryptoAlogrithm*.

> Source/WebCore/crypto/CryptoKeySerialization.h:50
> +    virtual bool reconcileAlgorithm(RefPtr<CryptoAlgorithm>&, RefPtr<CryptoAlgorithmParameters>&) const = 0;

Should take a CryptoAlgorithm*.

> Source/WebCore/crypto/keys/CryptoKeySerializationRaw.h:54
> +    bool reconcileAlgorithm(RefPtr<CryptoAlgorithm>&, RefPtr<CryptoAlgorithmParameters>&) const override;

Ditto.
Comment 16 Yusuke Suzuki 2016-07-09 22:57:12 PDT
Comment on attachment 283011 [details]
Patch

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

Thanks!

>> Source/WebCore/ChangeLog:11
>> +        In SubtleCrypto code, we have the rule that we must not call failureCallback when the error code is filled in synchronous execution.
> 
> Is this documented somewhere in the code? It seems quite tricky.

No, this is the observation based on the mac code.
If we call the failureCallback even if we set the exception code, it causes the double free in the ToT code.
And mac port implementation avoids this situation by following the above principle in subtle crypto: "In SubtleCrypto code, we have the rule that we must not call failureCallback when the error code is filled in synchronous execution.".

This patch also offers robustness. Even if we don't follow the above principle, after this patch, it does not cause the crash.

>> Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.h:56
>> +    bool reconcileAlgorithm(RefPtr<CryptoAlgorithm>&, RefPtr<CryptoAlgorithmParameters>&) const override;
> 
> This doesn't look right. Surely the original code should have been passing a CryptoAlgorithm*, since there is no ownership transfer. I can't think of a reason to pass a std::unique_ptr or a RefPtr<CryptoAlgorithm> by reference. It'd be good to take this opportunity to fix it to take a CryptoAlogrithm*.

There is ownership transfer because reconcileAlgorithm is somewhat a factory method. It populates CryptoAlgorithm and CryptoAlgorithmParametes pair.
But, it seems that, returning Option<struct { algorithm, parameters }> would be nice. Changed.

>> Source/WebCore/crypto/CryptoKeySerialization.h:50
>> +    virtual bool reconcileAlgorithm(RefPtr<CryptoAlgorithm>&, RefPtr<CryptoAlgorithmParameters>&) const = 0;
> 
> Should take a CryptoAlgorithm*.

Ditto.

>> Source/WebCore/crypto/keys/CryptoKeySerializationRaw.h:54
>> +    bool reconcileAlgorithm(RefPtr<CryptoAlgorithm>&, RefPtr<CryptoAlgorithmParameters>&) const override;
> 
> Ditto.

Ditto.
Comment 17 Yusuke Suzuki 2016-07-09 23:29:29 PDT
Created attachment 283280 [details]
Patch for landing
Comment 18 WebKit Commit Bot 2016-07-09 23:32:40 PDT
Attachment 283280 [details] did not pass style-queue:


ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:50:  CryptoAlgorithmRSA_OAEP::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:49:  CryptoAlgorithmAES_CBC::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp:48:  CryptoAlgorithmAES_KW::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:50:  CryptoAlgorithmRSASSA_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:49:  CryptoAlgorithmRSAES_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/CryptoAlgorithmRegistry.h:53:  'create' is incorrectly named. It should be named 'protector' or 'protectedCryptoAlgorithmIdentifier'.  [readability/naming/protected] [4]
Total errors found: 6 in 44 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 Yusuke Suzuki 2016-07-10 00:19:59 PDT
Created attachment 283281 [details]
Patch for landing
Comment 20 WebKit Commit Bot 2016-07-10 00:21:49 PDT
Attachment 283281 [details] did not pass style-queue:


ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:50:  CryptoAlgorithmRSA_OAEP::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:49:  CryptoAlgorithmAES_CBC::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp:48:  CryptoAlgorithmAES_KW::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:50:  CryptoAlgorithmRSASSA_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:49:  CryptoAlgorithmRSAES_PKCS1_v1_5::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: Source/WebCore/crypto/CryptoAlgorithmRegistry.h:53:  'create' is incorrectly named. It should be named 'protector' or 'protectedCryptoAlgorithmIdentifier'.  [readability/naming/protected] [4]
Total errors found: 6 in 44 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 21 Build Bot 2016-07-10 00:47:54 PDT
Comment on attachment 283280 [details]
Patch for landing

Attachment 283280 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1656506

New failing tests:
crypto/subtle/unwrapKey-check-usage.html
crypto/subtle/aes-kw-wrap-unwrap-aes.html
crypto/subtle/aes-cbc-wrap-rsa-non-extractable.html
crypto/subtle/postMessage-worker.html
crypto/subtle/jwk-export-use-values.html
crypto/subtle/aes-cbc-encrypt-decrypt-with-padding.html
crypto/subtle/aes-cbc-unwrap-rsa.html
crypto/subtle/aes-cbc-unwrap-failure.html
crypto/subtle/hmac-sign-verify.html
crypto/subtle/aes-cbc-wrong-key-class.html
crypto/subtle/rsa-oaep-wrap-unwrap-aes.html
crypto/subtle/aes-kw-key-manipulation.html
crypto/subtle/hmac-postMessage.html
crypto/subtle/wrapKey-check-usage.html
crypto/subtle/aes-cbc-invalid-length.html
crypto/subtle/aes-cbc-encrypt-decrypt.html
crypto/subtle/aes-cbc-192-encrypt-decrypt.html
crypto/subtle/aes-postMessage.html
crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html
crypto/subtle/hmac-sign-verify-empty-key.html
crypto/subtle/aes-cbc-wrap-rsa.html
crypto/subtle/hmac-check-algorithm.html
crypto/subtle/aes-cbc-256-encrypt-decrypt.html
Comment 22 Build Bot 2016-07-10 00:47:58 PDT
Created attachment 283282 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 23 Build Bot 2016-07-10 00:49:27 PDT
Comment on attachment 283280 [details]
Patch for landing

Attachment 283280 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1656507

New failing tests:
crypto/subtle/unwrapKey-check-usage.html
crypto/subtle/aes-kw-wrap-unwrap-aes.html
crypto/subtle/aes-cbc-wrap-rsa-non-extractable.html
crypto/subtle/postMessage-worker.html
crypto/subtle/jwk-export-use-values.html
crypto/subtle/aes-cbc-encrypt-decrypt-with-padding.html
crypto/subtle/aes-cbc-unwrap-rsa.html
crypto/subtle/aes-cbc-unwrap-failure.html
crypto/subtle/hmac-sign-verify.html
crypto/subtle/aes-cbc-wrong-key-class.html
crypto/subtle/rsa-oaep-wrap-unwrap-aes.html
crypto/subtle/aes-kw-key-manipulation.html
crypto/subtle/hmac-postMessage.html
crypto/subtle/wrapKey-check-usage.html
crypto/subtle/aes-cbc-invalid-length.html
crypto/subtle/aes-cbc-encrypt-decrypt.html
crypto/subtle/aes-cbc-192-encrypt-decrypt.html
crypto/subtle/aes-postMessage.html
crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html
crypto/subtle/hmac-sign-verify-empty-key.html
crypto/subtle/aes-cbc-wrap-rsa.html
crypto/subtle/hmac-check-algorithm.html
crypto/subtle/aes-cbc-256-encrypt-decrypt.html
Comment 24 Build Bot 2016-07-10 00:49:31 PDT
Created attachment 283283 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 25 Build Bot 2016-07-10 00:50:47 PDT
Comment on attachment 283280 [details]
Patch for landing

Attachment 283280 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1656498

New failing tests:
crypto/subtle/unwrapKey-check-usage.html
crypto/subtle/aes-kw-wrap-unwrap-aes.html
crypto/subtle/aes-cbc-wrap-rsa-non-extractable.html
crypto/subtle/postMessage-worker.html
crypto/subtle/jwk-export-use-values.html
crypto/subtle/aes-cbc-encrypt-decrypt-with-padding.html
crypto/subtle/aes-cbc-unwrap-rsa.html
crypto/subtle/aes-cbc-unwrap-failure.html
crypto/subtle/hmac-sign-verify.html
crypto/subtle/aes-cbc-wrong-key-class.html
crypto/subtle/rsa-oaep-wrap-unwrap-aes.html
crypto/subtle/aes-kw-key-manipulation.html
crypto/subtle/hmac-postMessage.html
crypto/subtle/wrapKey-check-usage.html
crypto/subtle/aes-cbc-invalid-length.html
crypto/subtle/aes-cbc-encrypt-decrypt.html
crypto/subtle/aes-cbc-192-encrypt-decrypt.html
crypto/subtle/aes-postMessage.html
crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html
crypto/subtle/hmac-sign-verify-empty-key.html
crypto/subtle/aes-cbc-wrap-rsa.html
crypto/subtle/hmac-check-algorithm.html
crypto/subtle/aes-cbc-256-encrypt-decrypt.html
Comment 26 Build Bot 2016-07-10 00:50:51 PDT
Created attachment 283284 [details]
Archive of layout-test-results from ews115 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 27 Build Bot 2016-07-10 00:56:12 PDT
Comment on attachment 283280 [details]
Patch for landing

Attachment 283280 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/1656509

New failing tests:
crypto/subtle/unwrapKey-check-usage.html
crypto/subtle/aes-kw-wrap-unwrap-aes.html
crypto/subtle/aes-cbc-wrap-rsa-non-extractable.html
crypto/subtle/postMessage-worker.html
crypto/subtle/jwk-export-use-values.html
crypto/subtle/aes-cbc-encrypt-decrypt-with-padding.html
crypto/subtle/aes-cbc-unwrap-rsa.html
crypto/subtle/aes-cbc-unwrap-failure.html
crypto/subtle/hmac-sign-verify.html
crypto/subtle/aes-cbc-wrong-key-class.html
crypto/subtle/rsa-oaep-wrap-unwrap-aes.html
crypto/subtle/aes-kw-key-manipulation.html
crypto/subtle/hmac-postMessage.html
crypto/subtle/wrapKey-check-usage.html
crypto/subtle/aes-cbc-invalid-length.html
crypto/subtle/aes-cbc-encrypt-decrypt.html
crypto/subtle/aes-cbc-192-encrypt-decrypt.html
crypto/subtle/aes-postMessage.html
crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html
crypto/subtle/hmac-sign-verify-empty-key.html
crypto/subtle/aes-cbc-wrap-rsa.html
crypto/subtle/hmac-check-algorithm.html
crypto/subtle/aes-cbc-256-encrypt-decrypt.html
Comment 28 Build Bot 2016-07-10 00:56:16 PDT
Created attachment 283285 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.5
Comment 29 Yusuke Suzuki 2016-07-10 01:04:23 PDT
Committed r203036: <http://trac.webkit.org/changeset/203036>