Changeset 157430 in webkit
- Timestamp:
- Oct 14, 2013 4:36:32 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r157425 r157430 1 2013-10-14 Alexey Proskuryakov <ap@apple.com> 2 3 Add an empty window.crypto.webkitSubtle 4 https://bugs.webkit.org/show_bug.cgi?id=122778 5 6 Reviewed by Mark Hahnenberg. 7 8 * TestExpectations: The feature isn't enabled anywhere yet, so skipping the new tests. 9 10 * security/crypto-subtle-gc-2-expected.txt: Added. 11 * security/crypto-subtle-gc-2.html: Added. 12 * security/crypto-subtle-gc-3-expected.txt: Added. 13 * security/crypto-subtle-gc-3.html: Added. 14 * security/crypto-subtle-gc-expected.txt: Added. 15 * security/crypto-subtle-gc.html: Added. 16 1 17 2013-10-14 Alexandru Chiculita <achicu@adobe.com> 2 18 -
trunk/LayoutTests/TestExpectations
r157299 r157430 66 66 fast/mediastream/MediaStream-onended.html [ Skip ] 67 67 68 # crypto.subtle is not yet enabled on any ports 69 webkit.org/b/122679 security/crypto-subtle-gc.html [ Skip ] 70 webkit.org/b/122679 security/crypto-subtle-gc-2.html [ Skip ] 71 webkit.org/b/122679 security/crypto-subtle-gc-3.html [ Skip ] -
trunk/Source/WebCore/CMakeLists.txt
r157418 r157430 23 23 "${WEBCORE_DIR}/bridge" 24 24 "${WEBCORE_DIR}/bridge/c" 25 "${WEBCORE_DIR}/crypto" 25 26 "${WEBCORE_DIR}/css" 26 27 "${WEBCORE_DIR}/dom" … … 282 283 Modules/websockets/CloseEvent.idl 283 284 Modules/websockets/WebSocket.idl 285 286 crypto/SubtleCrypto.idl 284 287 285 288 css/CSSCharsetRule.idl -
trunk/Source/WebCore/ChangeLog
r157428 r157430 1 2013-10-14 Alexey Proskuryakov <ap@apple.com> 2 3 Add an empty window.crypto.webkitSubtle 4 https://bugs.webkit.org/show_bug.cgi?id=122778 5 6 Reviewed by Mark Hahnenberg. 7 8 Tests: security/crypto-subtle-gc-2.html 9 security/crypto-subtle-gc-3.html 10 security/crypto-subtle-gc.html 11 12 * DerivedSources.make: Process SubtleCrypto.idl. 13 14 * crypto: Added. 15 * WebCore.xcodeproj/project.pbxproj: 16 * CMakeLists.txt: 17 * DerivedSources.make: 18 * GNUmakefile.am: 19 * GNUmakefile.list.am: 20 * WebCore.vcxproj/WebCore.vcxproj.filters: 21 22 * bindings/js/JSSubtleCryptoCustom.cpp: Added. Empty for now, but we'll certainly 23 need custom bindings code here. 24 25 * crypto/SubtleCrypto.cpp: Added. 26 (WebCore::SubtleCrypto::SubtleCrypto): 27 (WebCore::SubtleCrypto::document): 28 * crypto/SubtleCrypto.h: Added. 29 * crypto/SubtleCrypto.idl: Added. 30 * page/Crypto.cpp: 31 (WebCore::Crypto::subtle): 32 * page/Crypto.h: 33 * page/Crypto.idl: 34 1 35 2013-10-14 Nick Diego Yamane <nick.yamane@openbossa.org> 2 36 -
trunk/Source/WebCore/DerivedSources.make
r157363 r157430 45 45 $(WebCore)/bindings/js \ 46 46 $(WebCore)/bindings/objc \ 47 $(WebCore)/crypto \ 47 48 $(WebCore)/css \ 48 49 $(WebCore)/dom \ … … 198 199 $(WebCore)/Modules/websockets/CloseEvent.idl \ 199 200 $(WebCore)/Modules/websockets/WebSocket.idl \ 201 $(WebCore)/crypto/SubtleCrypto.idl \ 200 202 $(WebCore)/css/CSSCharsetRule.idl \ 201 203 $(WebCore)/css/CSSFontFaceLoadEvent.idl \ -
trunk/Source/WebCore/GNUmakefile.am
r156768 r157430 32 32 -I$(srcdir)/Source/WebCore/bridge/c \ 33 33 -I$(srcdir)/Source/WebCore/bridge/jsc \ 34 -I$(srcdir)/Source/WebCore/crypto \ 34 35 -I$(srcdir)/Source/WebCore/css \ 35 36 -I$(srcdir)/Source/WebCore/dom \ -
trunk/Source/WebCore/GNUmakefile.list.am
r157393 r157430 1296 1296 $(WebCore)/Modules/websockets/CloseEvent.idl \ 1297 1297 $(WebCore)/Modules/websockets/WebSocket.idl \ 1298 $(WebCore)/crypto/SubtleCrypto.idl \ 1298 1299 $(WebCore)/css/CSSCharsetRule.idl \ 1299 1300 $(WebCore)/css/CSSFontFaceLoadEvent.idl \ … … 2477 2478 Source/WebCore/bridge/runtime_root.h \ 2478 2479 Source/WebCore/config.h \ 2480 Source/WebCore/crypto/SubtleCrypto.h \ 2479 2481 Source/WebCore/css/BasicShapeFunctions.cpp \ 2480 2482 Source/WebCore/css/BasicShapeFunctions.h \ -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r157419 r157430 173 173 <UniqueIdentifier>{35a67667-1c77-4199-bdd3-a0627946846a}</UniqueIdentifier> 174 174 </Filter> 175 <Filter Include="crypto"> 176 <UniqueIdentifier>{02334427-19d6-44c8-a5d1-e1a67a9c4997}</UniqueIdentifier> 177 </Filter> 175 178 <Filter Include="css"> 176 179 <UniqueIdentifier>{353b76ca-c49a-41da-88da-33dc422325ef}</UniqueIdentifier> … … 8806 8809 <Filter>platform\mock</Filter> 8807 8810 </ClInclude> 8811 <ClInclude Include="..\crypto\SubtleCrypto.h"> 8812 <Filter>crypto</Filter> 8813 </ClInclude> 8808 8814 <ClInclude Include="..\css\BasicShapeFunctions.h"> 8809 8815 <Filter>css</Filter> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r157419 r157430 5594 5594 E1FF57A30F01255B00891EBB /* ThreadGlobalData.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FF57A20F01255B00891EBB /* ThreadGlobalData.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5595 5595 E1FF57A60F01256B00891EBB /* ThreadGlobalData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF57A50F01256B00891EBB /* ThreadGlobalData.cpp */; }; 5596 E1FF8F5F1807442100132674 /* SubtleCrypto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF8F5D1807442100132674 /* SubtleCrypto.cpp */; }; 5597 E1FF8F601807442100132674 /* SubtleCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FF8F5E1807442100132674 /* SubtleCrypto.h */; }; 5598 E1FF8F64180745D800132674 /* JSSubtleCrypto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF8F62180745D800132674 /* JSSubtleCrypto.cpp */; }; 5599 E1FF8F65180745D800132674 /* JSSubtleCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FF8F63180745D800132674 /* JSSubtleCrypto.h */; }; 5600 E1FF8F681807460800132674 /* JSSubtleCryptoCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF8F661807460800132674 /* JSSubtleCryptoCustom.cpp */; }; 5596 5601 E401C27517CE53EC00C41A35 /* ElementIteratorAssertions.h in Headers */ = {isa = PBXBuildFile; fileRef = E401C27417CE53EC00C41A35 /* ElementIteratorAssertions.h */; }; 5597 5602 E4295FA412B0614E00D1ACE0 /* ResourceLoadPriority.h in Headers */ = {isa = PBXBuildFile; fileRef = E4295FA312B0614E00D1ACE0 /* ResourceLoadPriority.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 12558 12563 E1FF57A20F01255B00891EBB /* ThreadGlobalData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThreadGlobalData.h; sourceTree = "<group>"; }; 12559 12564 E1FF57A50F01256B00891EBB /* ThreadGlobalData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ThreadGlobalData.cpp; sourceTree = "<group>"; }; 12565 E1FF8F5C1807364B00132674 /* SubtleCrypto.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = SubtleCrypto.idl; sourceTree = "<group>"; }; 12566 E1FF8F5D1807442100132674 /* SubtleCrypto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SubtleCrypto.cpp; sourceTree = "<group>"; }; 12567 E1FF8F5E1807442100132674 /* SubtleCrypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SubtleCrypto.h; sourceTree = "<group>"; }; 12568 E1FF8F62180745D800132674 /* JSSubtleCrypto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSubtleCrypto.cpp; sourceTree = "<group>"; }; 12569 E1FF8F63180745D800132674 /* JSSubtleCrypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSubtleCrypto.h; sourceTree = "<group>"; }; 12570 E1FF8F661807460800132674 /* JSSubtleCryptoCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSubtleCryptoCustom.cpp; sourceTree = "<group>"; }; 12560 12571 E401C27417CE53EC00C41A35 /* ElementIteratorAssertions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ElementIteratorAssertions.h; sourceTree = "<group>"; }; 12561 12572 E406F3FB1198307D009D59D6 /* ColorData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ColorData.cpp; sourceTree = "<group>"; }; … … 13560 13571 BC1A3790097C6F970019F3D8 /* bindings */, 13561 13572 1A569CC40D7E2B60007C3983 /* bridge */, 13573 E1FF8F5B1807362B00132674 /* crypto */, 13562 13574 F523D18402DE42E8018635CA /* css */, 13563 13575 F523D32402DE4478018635CA /* dom */, … … 13779 13791 children = ( 13780 13792 A83B79100CCB001B000B0825 /* Core */, 13793 E1FF8F61180745C600132674 /* Crypto */, 13781 13794 A83B790E0CCAFF97000B0825 /* CSS */, 13782 13795 CDA98DCD1601515C00FEA3B1 /* EncryptedMedia */, … … 19371 19384 08E4FE450E2BD41400F4CAE0 /* JSSVGLengthCustom.cpp */, 19372 19385 B2C96D8C0B3AF2B7005E80EC /* JSSVGPathSegCustom.cpp */, 19386 E1FF8F661807460800132674 /* JSSubtleCryptoCustom.cpp */, 19373 19387 1A2C40AA0DEB55AA005AF19E /* JSTextCustom.cpp */, 19374 19388 07E117061489EBEB00EC5ACE /* JSTextTrackCueCustom.cpp */, … … 20101 20115 tabWidth = 4; 20102 20116 usesTabs = 0; 20117 }; 20118 E1FF8F5B1807362B00132674 /* crypto */ = { 20119 isa = PBXGroup; 20120 children = ( 20121 E1FF8F5C1807364B00132674 /* SubtleCrypto.idl */, 20122 E1FF8F5D1807442100132674 /* SubtleCrypto.cpp */, 20123 E1FF8F5E1807442100132674 /* SubtleCrypto.h */, 20124 ); 20125 path = crypto; 20126 sourceTree = "<group>"; 20127 }; 20128 E1FF8F61180745C600132674 /* Crypto */ = { 20129 isa = PBXGroup; 20130 children = ( 20131 E1FF8F62180745D800132674 /* JSSubtleCrypto.cpp */, 20132 E1FF8F63180745D800132674 /* JSSubtleCrypto.h */, 20133 ); 20134 name = Crypto; 20135 sourceTree = "<group>"; 20103 20136 }; 20104 20137 E46E97860DAAD61B0071E894 /* animation */ = { … … 21500 21533 7C5343FD17B74B63004232F0 /* JSMediaQueryListListener.h in Headers */, 21501 21534 37C61F0112095C87007A3C67 /* AtomicStringKeyedMRUCache.h in Headers */, 21535 E1FF8F601807442100132674 /* SubtleCrypto.h in Headers */, 21502 21536 A8C4A80D09D563270003AC8D /* Attr.h in Headers */, 21503 21537 A8C4A80B09D563270003AC8D /* Attribute.h in Headers */, … … 22470 22504 A12A1050166444FD008FA311 /* GridTrackSize.h in Headers */, 22471 22505 C50B561712119D23008B46E0 /* GroupSettings.h in Headers */, 22506 E1FF8F65180745D800132674 /* JSSubtleCrypto.h in Headers */, 22472 22507 078E094017D16E1C00420AA1 /* RTCIceCandidateDescriptor.h in Headers */, 22473 22508 8482B7461198C35400BFB005 /* HashChangeEvent.h in Headers */, … … 25077 25112 FB91392716AE4C34001FE682 /* CanvasPathMethods.cpp in Sources */, 25078 25113 49484FC4102CF23C00187DD3 /* CanvasPattern.cpp in Sources */, 25114 E1FF8F681807460800132674 /* JSSubtleCryptoCustom.cpp in Sources */, 25079 25115 49C7B9DC1042D32F0009D447 /* CanvasRenderingContext.cpp in Sources */, 25080 25116 49484FCA102CF23C00187DD3 /* CanvasRenderingContext2D.cpp in Sources */, … … 25899 25935 7C522D4B15B477E8009B7C95 /* InspectorOverlay.cpp in Sources */, 25900 25936 4F6FDD641341DEDD001F8EE3 /* InspectorPageAgent.cpp in Sources */, 25937 E1FF8F5F1807442100132674 /* SubtleCrypto.cpp in Sources */, 25901 25938 9F0D6B2E121BFEBA006C0288 /* InspectorProfilerAgent.cpp in Sources */, 25902 25939 82AB1775125C826700C5069D /* InspectorResourceAgent.cpp in Sources */, … … 27413 27450 51DF6D800B92A18E00C2DC85 /* ThreadCheck.mm in Sources */, 27414 27451 E1FF57A60F01256B00891EBB /* ThreadGlobalData.cpp in Sources */, 27452 E1FF8F64180745D800132674 /* JSSubtleCrypto.cpp in Sources */, 27415 27453 185BCF280F3279CE000EA262 /* ThreadTimers.cpp in Sources */, 27416 27454 1AA7160A149BC4DB0016EC19 /* TileController.mm in Sources */, -
trunk/Source/WebCore/page/Crypto.cpp
r157417 r157430 1 1 /* 2 2 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 33 34 #include "Document.h" 34 35 #include "ExceptionCode.h" 36 #include "SubtleCrypto.h" 35 37 #include <runtime/ArrayBufferView.h> 36 38 #include <wtf/CryptographicallyRandomNumber.h> … … 74 76 } 75 77 78 #if ENABLE(SUBTLE_CRYPTO) 79 SubtleCrypto* Crypto::subtle() 80 { 81 ASSERT(isMainThread()); 82 if (!m_subtle) 83 m_subtle = SubtleCrypto::create(*document()); 84 85 return m_subtle.get(); 76 86 } 87 #endif 88 89 } -
trunk/Source/WebCore/page/Crypto.h
r157417 r157430 1 1 /* 2 2 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 34 35 #include <wtf/PassRefPtr.h> 35 36 #include <wtf/RefCounted.h> 37 #include <wtf/RefPtr.h> 36 38 37 39 namespace JSC { … … 44 46 45 47 class Document; 48 class SubtleCrypto; 46 49 47 50 class Crypto : public ContextDestructionObserver, public RefCounted<Crypto> { … … 54 57 void getRandomValues(JSC::ArrayBufferView*, ExceptionCode&); 55 58 59 #if ENABLE(SUBTLE_CRYPTO) 60 SubtleCrypto* subtle(); 61 #endif 62 56 63 private: 57 64 Crypto(Document&); 65 66 #if ENABLE(SUBTLE_CRYPTO) 67 RefPtr<SubtleCrypto> m_subtle; 68 #endif 58 69 }; 59 70 -
trunk/Source/WebCore/page/Crypto.idl
r157417 r157430 1 1 /* 2 2 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 33 34 ] interface Crypto { 34 35 [Custom, RaisesException] ArrayBufferView getRandomValues(ArrayBufferView array); 36 37 [Conditional=SUBTLE_CRYPTO, ImplementedAs=subtle] readonly attribute SubtleCrypto webkitSubtle; 35 38 }; 36
Note: See TracChangeset
for help on using the changeset viewer.