Changeset 279642 in webkit
- Timestamp:
- Jul 7, 2021 8:37:24 AM (13 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/wpt/crypto/historical-expected.txt (added)
-
LayoutTests/http/wpt/crypto/historical.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/crypto/CryptoKey.idl (modified) (1 diff)
-
Source/WebCore/crypto/SubtleCrypto.idl (modified) (1 diff)
-
Source/WebCore/page/Crypto.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r279640 r279642 1 2021-07-07 Chris Dumez <cdumez@apple.com> 2 3 SubtleCrypto should only be exposed to secure contexts 4 https://bugs.webkit.org/show_bug.cgi?id=227725 5 6 Reviewed by Darin Adler. 7 8 Add layout test coverage. 9 10 * http/wpt/crypto/historical-expected.txt: Added. 11 * http/wpt/crypto/historical.html: Added. 12 1 13 2021-07-07 Chris Lord <clord@igalia.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r279640 r279642 1 2021-07-07 Chris Dumez <cdumez@apple.com> 2 3 SubtleCrypto should only be exposed to secure contexts 4 https://bugs.webkit.org/show_bug.cgi?id=227725 5 6 Reviewed by Darin Adler. 7 8 SubtleCrypto should only be exposed to secure contexts: 9 - https://www.w3.org/TR/WebCryptoAPI/#dfn-Crypto 10 11 Gecko and Blink match the specification. 12 13 This was causing WebKit to fail the WebCryptoAPI/historical.any.html WPT test. 14 15 Test: http/wpt/crypto/historical.html 16 17 * crypto/CryptoKey.idl: 18 * crypto/SubtleCrypto.idl: 19 * page/Crypto.idl: 20 1 21 2021-07-07 Chris Lord <clord@igalia.com> 2 22 -
trunk/Source/WebCore/crypto/CryptoKey.idl
r279639 r279642 36 36 Exposed=(Window,Worker), 37 37 GenerateIsReachable=Impl, 38 SecureContext, 38 39 SkipVTableValidation 39 40 ] interface CryptoKey { -
trunk/Source/WebCore/crypto/SubtleCrypto.idl
r279639 r279642 32 32 Exposed=(Window,Worker), 33 33 GenerateIsReachable=ImplScriptExecutionContext, 34 SecureContext, 34 35 ] interface SubtleCrypto { 35 36 [CallWith=GlobalObject] Promise<any> encrypt(AlgorithmIdentifier algorithm, CryptoKey key, BufferSource data); -
trunk/Source/WebCore/page/Crypto.idl
r279639 r279642 32 32 GenerateIsReachable=ImplScriptExecutionContext 33 33 ] interface Crypto { 34 [Conditional=WEB_CRYPTO ] readonly attribute SubtleCrypto subtle;34 [Conditional=WEB_CRYPTO, SecureContext] readonly attribute SubtleCrypto subtle; 35 35 ArrayBufferView getRandomValues([ReturnValue] ArrayBufferView array); 36 36 };
Note: See TracChangeset
for help on using the changeset viewer.