Changeset 212945 in webkit
- Timestamp:
- Feb 23, 2017 10:52:02 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r212944 r212945 1 2017-02-23 Joseph Pecoraro <pecoraro@apple.com> 2 3 [Resource Timing] Add Experimental Feature Flag 4 https://bugs.webkit.org/show_bug.cgi?id=167147 5 6 Reviewed by Ryosuke Niwa. 7 8 * Shared/WebPreferencesDefinitions.h: 9 Move ResourceTiming to experimental section. 10 Disable it for El Capitan due to known issues. 11 1 12 2017-02-23 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r212812 r212945 241 241 macro(ShouldSuppressKeyboardInputDuringProvisionalNavigation, shouldSuppressKeyboardInputDuringProvisionalNavigation, Bool, bool, false, "", "") \ 242 242 macro(CSSGridLayoutEnabled, cssGridLayoutEnabled, Bool, bool, true, "CSS Grid", "CSS Grid Layout Module support") \ 243 macro(ResourceTimingEnabled, resourceTimingEnabled, Bool, bool, false, "Resource Timing", "Enable ResourceTiming API") \244 243 \ 245 244 … … 290 289 macro(VisibleDebugOverlayRegions, visibleDebugOverlayRegions, UInt32, uint32_t, 0, "", "") 291 290 292 // Our X Code build system does not currently have any concept of DEVELOPER_MODE.291 // Our Xcode build system does not currently have any concept of DEVELOPER_MODE. 293 292 // Cocoa ports must disable experimental features on release branches for now. 294 293 #if ENABLE(DEVELOPER_MODE) || PLATFORM(COCOA) … … 296 295 #else 297 296 #define DEFAULT_EXPERIMENTAL_FEATURES_ENABLED false 297 #endif 298 299 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200 300 // <https://webkit.org/b/168415> El Capitan NetworkLoadTiming values are sometimes jumbled 301 #define DEFAULT_RESOURCE_TIMING_ENABLED false 302 #else 303 #define DEFAULT_RESOURCE_TIMING_ENABLED DEFAULT_EXPERIMENTAL_FEATURES_ENABLED 298 304 #endif 299 305 … … 302 308 // - You must provide the last two parameters for all experimental features. They 303 309 // are the text exposed to the user from the WebKit client. 304 // - They should be alphabetically ordered by the human readable text .305 // - The default value may be either false (for veryunstable features) or310 // - They should be alphabetically ordered by the human readable text (the first string). 311 // - The default value may be either false (for unstable features) or 306 312 // DEFAULT_EXPERIMENTAL_FEATURE_ENABLED (for features that are ready for 307 313 // wider testing). … … 315 321 macro(SpringTimingFunctionEnabled, springTimingFunctionEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "CSS Spring Animations", "CSS Spring Animation prototype") \ 316 322 macro(GamepadsEnabled, gamepadsEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Gamepads", "Web Gamepad API support") \ 323 macro(InputEventsEnabled, inputEventsEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Input Events", "Enable InputEvents support") \ 317 324 macro(LinkPreloadEnabled, linkPreloadEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Link Preload", "Link preload support") \ 318 325 macro(ModernMediaControlsEnabled, modernMediaControlsEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Modern Media Controls", "Use modern media controls look") \ 319 macro(InputEventsEnabled, inputEventsEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "Input Events", "Enable InputEvents support") \ 320 macro(PeerConnectionEnabled, peerConnectionEnabled, Bool, bool, checkWebRTCAvailability(), "WebRTC", "Enable WebRTC API") \ 326 macro(ResourceTimingEnabled, resourceTimingEnabled, Bool, bool, DEFAULT_RESOURCE_TIMING_ENABLED, "Resource Timing", "Enable ResourceTiming API") \ 321 327 macro(SubtleCryptoEnabled, subtleCryptoEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "SubtleCrypto", "Enable SubtleCrypto support") \ 322 macro(UserTimingEnabled, userTimingEnabled, Bool, bool, false, "User Timing", "Enable UserTiming API") \328 macro(UserTimingEnabled, userTimingEnabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "User Timing", "Enable UserTiming API") \ 323 329 macro(WebAnimationsEnabled, webAnimationsEnabled, Bool, bool, false, "Web Animations", "Web Animations prototype") \ 324 330 macro(WebGL2Enabled, webGL2Enabled, Bool, bool, DEFAULT_EXPERIMENTAL_FEATURES_ENABLED, "WebGL 2.0", "WebGL 2 prototype") \ 331 macro(PeerConnectionEnabled, peerConnectionEnabled, Bool, bool, checkWebRTCAvailability(), "WebRTC", "Enable WebRTC API") \ 325 332 \ 326 333 -
trunk/Tools/ChangeLog
r212929 r212945 1 2017-02-23 Joseph Pecoraro <pecoraro@apple.com> 2 3 [Resource Timing] Add Experimental Feature Flag 4 https://bugs.webkit.org/show_bug.cgi?id=167147 5 6 Reviewed by Ryosuke Niwa. 7 8 * DumpRenderTree/mac/DumpRenderTree.mm: 9 (enableExperimentalFeatures): 10 (resetWebPreferencesToConsistentValues): 11 * DumpRenderTree/win/DumpRenderTree.cpp: 12 (enableExperimentalFeatures): 13 (resetWebPreferencesToConsistentValues): 14 Put experimental flags in the experimental section. 15 1 16 2017-02-23 Beth Dakin <bdakin@apple.com> + Dan Saunders <dasau@microsoft.com> 2 17 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r212876 r212945 843 843 [preferences setModernMediaControlsEnabled:YES]; 844 844 // FIXME: InputEvents 845 [preferences setResourceTimingEnabled:YES]; 845 846 [preferences setSubtleCryptoEnabled:YES]; 846 847 [preferences setUserTimingEnabled:YES]; 847 848 [preferences setWebAnimationsEnabled:YES]; 848 849 [preferences setWebGL2Enabled:YES]; 850 [preferences setPeerConnectionEnabled:YES]; 849 851 } 850 852 … … 952 954 953 955 [preferences setMediaStreamEnabled:YES]; 954 [preferences setPeerConnectionEnabled:YES];955 956 [preferences setResourceTimingEnabled:YES];957 956 958 957 [WebPreferences _clearNetworkLoaderSession]; -
trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp
r212173 r212945 775 775 // FIXME: SpringTimingFunction 776 776 // FIXME: Gamepads 777 prefsPrivate4->setLinkPreloadEnabled(TRUE); 777 778 // FIXME: ModernMediaControls 778 779 // FIXME: InputEvents 780 prefsPrivate4->setResourceTimingEnabled(TRUE); 779 781 // FIXME: SubtleCrypto 780 782 prefsPrivate4->setUserTimingEnabled(TRUE); 781 783 prefsPrivate4->setWebAnimationsEnabled(TRUE); 782 784 // FIXME: WebGL2 785 // FIXME: WebRTC 783 786 } 784 787 … … 879 882 prefsPrivate4->setCustomElementsEnabled(TRUE); 880 883 prefsPrivate4->setModernMediaControlsEnabled(FALSE); 881 prefsPrivate4->setResourceTimingEnabled(TRUE);882 prefsPrivate4->setLinkPreloadEnabled(TRUE);883 884 884 885 setAlwaysAcceptCookies(false); -
trunk/Websites/webkit.org/ChangeLog
r212907 r212945 1 2017-02-23 Joseph Pecoraro <pecoraro@apple.com> 2 3 [Resource Timing] Add Experimental Feature Flag 4 https://bugs.webkit.org/show_bug.cgi?id=167147 5 6 Reviewed by Ryosuke Niwa. 7 8 * experimental-features.html: 9 Test for Resource Timing. 10 1 11 2017-02-23 Alex Christensen <achristensen@webkit.org> 2 12 -
trunk/Websites/webkit.org/experimental-features.html
r212907 r212945 74 74 } 75 75 76 function testWebGL2() {77 let canvas = document.createElement("canvas");78 return canvas.getContext("webgl2");79 }80 81 76 function testLinkPreload() { 82 77 var link = document.createElement("link"); … … 86 81 function testGamepad() { 87 82 return navigator.getGamepads; 88 }89 90 function testWebRTC() {91 return window.RTCPeerConnection;92 83 } 93 84 … … 112 103 } 113 104 105 function testResourceTiming() { 106 return !!window.PerformanceResourceTiming; 107 } 108 114 109 function testSubtleCrypto() { 115 110 return window.crypto.subtle; … … 117 112 118 113 function testUserTiming() { 119 return window.performance.mark;114 return !!window.PerformanceMark; 120 115 } 121 116 122 117 function testWebAnimations() { 123 118 return !!window.Animation; 119 } 120 121 function testWebGL2() { 122 let canvas = document.createElement("canvas"); 123 return canvas.getContext("webgl2"); 124 } 125 126 function testWebRTC() { 127 return window.RTCPeerConnection; 124 128 } 125 129 … … 151 155 <div class="test" id="InputEvents"><p>HTML Input Events</p></div> 152 156 <div class="test" id="LinkPreload"><p>Link Preload</p></div> 157 <div class="test" id="ResourceTiming"><p>Resource Timing</p></div> 153 158 <div class="test" id="SubtleCrypto"><p>SubtleCrypto</p></div> 154 159 <div class="test" id="VariationFonts"><p>Variation Fonts</p></div>
Note: See TracChangeset
for help on using the changeset viewer.