Changeset 226778 in webkit
- Timestamp:
- Jan 11, 2018 7:28:38 AM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 3 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r226775 r226778 1 2018-01-11 Michael Saboff <msaboff@apple.com> 2 3 Add a DOM gadget for Spectre testing 4 https://bugs.webkit.org/show_bug.cgi?id=181351 5 6 Reviewed by Ryosuke Niwa. 7 8 * runtime/Options.h: 9 1 10 2018-01-11 Yusuke Suzuki <utatane.tea@gmail.com> 2 11 -
trunk/Source/JavaScriptCore/runtime/Options.h
r226658 r226778 461 461 v(bool, enableSpectreMitigations, true, Restricted, "Enable Spectre mitigations.") \ 462 462 \ 463 v(bool, enableSpectreGadgets, false, Restricted, "enable gadgets to test Spectre mitigations.") \ 464 \ 463 465 v(bool, useAsyncIterator, enableAsyncIteration, Normal, "Allow to use Async Iterator in JS.") \ 464 466 \ -
trunk/Source/WebCore/CMakeLists.txt
r226510 r226778 597 597 dom/ShadowRootMode.idl 598 598 dom/Slotable.idl 599 dom/SpectreGadget.idl 599 600 dom/StaticRange.idl 600 601 dom/StringCallback.idl -
trunk/Source/WebCore/ChangeLog
r226769 r226778 1 2018-01-11 Michael Saboff <msaboff@apple.com> 2 3 Add a DOM gadget for Spectre testing 4 https://bugs.webkit.org/show_bug.cgi?id=181351 5 6 Reviewed by Ryosuke Niwa. 7 8 This change is used to test Spectre mitigations. 9 10 Added a new DOM class to test for Spectre issues in the DOM layer. 11 This additional functionality is disabled by default and must be enabled 12 through the JSC option "enableSpectreGadgets". 13 14 * CMakeLists.txt: 15 * DerivedSources.make: 16 * Sources.txt: 17 * WebCore.xcodeproj/project.pbxproj: 18 * bindings/js/WebCoreBuiltinNames.h: 19 * dom/SpectreGadget.cpp: Added. 20 (WebCore::SpectreGadget::SpectreGadget): 21 (WebCore::SpectreGadget::create): 22 (WebCore::SpectreGadget::setReadLength): 23 (WebCore::SpectreGadget::charCodeAt): 24 (WebCore::SpectreGadget::clflushReadLength): 25 * dom/SpectreGadget.h: Added. 26 * dom/SpectreGadget.idl: Added. 27 * page/RuntimeEnabledFeatures.cpp: 28 (WebCore::RuntimeEnabledFeatures::spectreGadgetsEnabled const): 29 * page/RuntimeEnabledFeatures.h: 30 1 31 2018-01-11 Philippe Normand <pnormand@igalia.com> 2 32 -
trunk/Source/WebCore/DerivedSources.make
r226766 r226778 514 514 $(WebCore)/dom/ShadowRootMode.idl \ 515 515 $(WebCore)/dom/Slotable.idl \ 516 $(WebCore)/dom/SpectreGadget.idl \ 516 517 $(WebCore)/dom/StaticRange.idl \ 517 518 $(WebCore)/dom/StringCallback.idl \ -
trunk/Source/WebCore/Sources.txt
r226654 r226778 788 788 dom/SlotAssignment.cpp 789 789 dom/SpaceSplitString.cpp 790 dom/SpectreGadget.cpp 790 791 dom/StaticNodeList.cpp 791 792 dom/StaticRange.cpp … … 2954 2955 JSSourceBuffer.cpp 2955 2956 JSSourceBufferList.cpp 2957 JSSpectreGadget.cpp 2956 2958 JSSpeechSynthesis.cpp 2957 2959 JSSpeechSynthesisEvent.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r226766 r226778 1793 1793 656D37430ADBA5DE00A4554D /* NetscapePlugInStreamLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 656D372B0ADBA5DE00A4554D /* NetscapePlugInStreamLoader.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1794 1794 656D37480ADBA5DE00A4554D /* SubresourceLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 656D37300ADBA5DE00A4554D /* SubresourceLoader.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1795 657AFAFC20047A2900509464 /* SpectreGadget.h in Headers */ = {isa = PBXBuildFile; fileRef = 657AFAF82004789900509464 /* SpectreGadget.h */; }; 1795 1796 658436860AE01B7400E53753 /* FrameLoadRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 658436850AE01B7400E53753 /* FrameLoadRequest.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1796 1797 6593923809AE4346002C531F /* URL.h in Headers */ = {isa = PBXBuildFile; fileRef = 6593923609AE4346002C531F /* URL.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 8507 8508 656D372B0ADBA5DE00A4554D /* NetscapePlugInStreamLoader.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = NetscapePlugInStreamLoader.h; sourceTree = "<group>"; }; 8508 8509 656D37300ADBA5DE00A4554D /* SubresourceLoader.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SubresourceLoader.h; sourceTree = "<group>"; }; 8510 657AFAF82004789900509464 /* SpectreGadget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpectreGadget.h; sourceTree = "<group>"; }; 8511 657AFAFA2004789A00509464 /* SpectreGadget.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SpectreGadget.idl; sourceTree = "<group>"; }; 8512 657AFAFB2004789A00509464 /* SpectreGadget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpectreGadget.cpp; sourceTree = "<group>"; }; 8509 8513 658436850AE01B7400E53753 /* FrameLoadRequest.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FrameLoadRequest.h; sourceTree = "<group>"; }; 8510 8514 6593923509AE4346002C531F /* URL.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = URL.cpp; sourceTree = "<group>"; }; … … 25701 25705 D01A27AB10C9BFD800026A42 /* SpaceSplitString.cpp */, 25702 25706 D01A27AC10C9BFD800026A42 /* SpaceSplitString.h */, 25707 657AFAFB2004789A00509464 /* SpectreGadget.cpp */, 25708 657AFAF82004789900509464 /* SpectreGadget.h */, 25709 657AFAFA2004789A00509464 /* SpectreGadget.idl */, 25703 25710 BC7FA62C0D1F0EFF00DB22A9 /* StaticNodeList.cpp */, 25704 25711 BC7FA62B0D1F0EFF00DB22A9 /* StaticNodeList.h */, … … 29350 29357 D01A27AE10C9BFD800026A42 /* SpaceSplitString.h in Headers */, 29351 29358 626CDE0F1140424C001E5A68 /* SpatialNavigation.h in Headers */, 29359 657AFAFC20047A2900509464 /* SpectreGadget.h in Headers */, 29352 29360 AA2A5AD416A4861100975A25 /* SpeechSynthesis.h in Headers */, 29353 29361 AA2A5AD216A4860A00975A25 /* SpeechSynthesisEvent.h in Headers */, -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r226332 r226778 140 140 macro(ServiceWorkerRegistration) \ 141 141 macro(ShadowRoot) \ 142 macro(SpectreGadget) \ 142 143 macro(StaticRange) \ 143 144 macro(VRDisplay) \ -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.cpp
r226658 r226778 34 34 35 35 #include "MediaPlayer.h" 36 #include <JavaScriptCore/Options.h> 36 37 #include <wtf/NeverDestroyed.h> 37 38 … … 52 53 } 53 54 55 bool RuntimeEnabledFeatures::spectreGadgetsEnabled() const 56 { 57 return JSC::Options::enableSpectreGadgets(); 58 } 59 54 60 #if ENABLE(VIDEO) 55 61 bool RuntimeEnabledFeatures::audioEnabled() const -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.h
r226658 r226778 221 221 #endif 222 222 223 bool spectreGadgetsEnabled() const; 224 223 225 #if ENABLE(VIDEO) 224 226 bool audioEnabled() const;
Note: See TracChangeset
for help on using the changeset viewer.