Changeset 281206 in webkit
- Timestamp:
- Aug 18, 2021 12:13:37 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/randomUUID.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/randomUUID.https.any.worker-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/Crypto.cpp (modified) (2 diffs)
-
Source/WebCore/page/Crypto.h (modified) (1 diff)
-
Source/WebCore/page/Crypto.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r281189 r281206 1 2021-08-18 Chris Dumez <cdumez@apple.com> 2 3 Implement Crypto.randomUUID() 4 https://bugs.webkit.org/show_bug.cgi?id=229240 5 6 Reviewed by Geoffrey Garen. 7 8 Rebaseline WPT tests that are now passing. 9 10 * web-platform-tests/WebCryptoAPI/randomUUID.https.any-expected.txt: 11 * web-platform-tests/WebCryptoAPI/randomUUID.https.any.worker-expected.txt: 12 1 13 2021-08-18 Martin Robinson <mrobinson@webkit.org> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/randomUUID.https.any-expected.txt
r279516 r281206 1 1 2 FAIL namespace format self.crypto.randomUUID is not a function. (In 'self.crypto.randomUUID()', 'self.crypto.randomUUID' is undefined) 3 FAIL version set self.crypto.randomUUID is not a function. (In 'self.crypto.randomUUID()', 'self.crypto.randomUUID' is undefined) 4 FAIL variant set self.crypto.randomUUID is not a function. (In 'self.crypto.randomUUID()', 'self.crypto.randomUUID' is undefined) 2 PASS namespace format 3 PASS version set 4 PASS variant set 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/randomUUID.https.any.worker-expected.txt
r279516 r281206 1 1 2 FAIL namespace format self.crypto.randomUUID is not a function. (In 'self.crypto.randomUUID()', 'self.crypto.randomUUID' is undefined) 3 FAIL version set self.crypto.randomUUID is not a function. (In 'self.crypto.randomUUID()', 'self.crypto.randomUUID' is undefined) 4 FAIL variant set self.crypto.randomUUID is not a function. (In 'self.crypto.randomUUID()', 'self.crypto.randomUUID' is undefined) 2 PASS namespace format 3 PASS version set 4 PASS variant set 5 5 -
trunk/Source/WebCore/ChangeLog
r281200 r281206 1 2021-08-18 Chris Dumez <cdumez@apple.com> 2 3 Implement Crypto.randomUUID() 4 https://bugs.webkit.org/show_bug.cgi?id=229240 5 6 Reviewed by Geoffrey Garen. 7 8 Implement Crypto.randomUUID(): 9 - https://wicg.github.io/uuid/#extensions-to-the-crypto-interface 10 11 Chrome already implements this and Firefox seems to be working on it 12 (https://bugzilla.mozilla.org/show_bug.cgi?id=1705264). 13 14 No new tests, rebaselined existing tests. 15 16 * page/Crypto.cpp: 17 (WebCore::Crypto::randomUUID const): 18 * page/Crypto.h: 19 * page/Crypto.idl: 20 1 21 2021-08-18 Andres Gonzalez <andresg_22@apple.com> 2 22 -
trunk/Source/WebCore/page/Crypto.cpp
r279785 r281206 36 36 #include <JavaScriptCore/ArrayBufferView.h> 37 37 #include <wtf/CryptographicallyRandomNumber.h> 38 #include <wtf/UUID.h> 38 39 39 40 #if OS(DARWIN) … … 69 70 } 70 71 72 String Crypto::randomUUID() const 73 { 74 return createCanonicalUUIDString(); 75 } 76 71 77 #if ENABLE(WEB_CRYPTO) 72 78 -
trunk/Source/WebCore/page/Crypto.h
r238754 r281206 47 47 48 48 ExceptionOr<void> getRandomValues(JSC::ArrayBufferView&); 49 String randomUUID() const; 49 50 50 51 #if ENABLE(WEB_CRYPTO) -
trunk/Source/WebCore/page/Crypto.idl
r279642 r281206 34 34 [Conditional=WEB_CRYPTO, SecureContext] readonly attribute SubtleCrypto subtle; 35 35 ArrayBufferView getRandomValues([ReturnValue] ArrayBufferView array); 36 [SecureContext] DOMString randomUUID(); 36 37 };
Note: See TracChangeset
for help on using the changeset viewer.