Changeset 256484 in webkit
- Timestamp:
- Feb 12, 2020 3:03:35 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r256478 r256484 1 2020-02-12 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r256463. 4 5 Caused major flakiness on Mac wk2 6 7 Reverted changeset: 8 9 "REGRESSION (r255158): http/tests/frame-throttling/raf- 10 throttle-in-cross-origin-subframe.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=206839 12 https://trac.webkit.org/changeset/256463 13 1 14 2020-02-12 Jason Lawrence <lawrence.j@apple.com> 2 15 -
trunk/LayoutTests/fast/animation/css-animation-throttling-lowPowerMode.html
r256463 r256484 26 26 jsTestIsAsync = true; 27 27 28 if (window.internals) 29 internals.settings.setRenderingUpdateThrottlingEnabled(true); 30 28 31 const element = document.getElementById("testElement"); 29 32 element.onanimationstart = function() { -
trunk/LayoutTests/fast/animation/request-animation-frame-throttle-subframe.html
r256463 r256484 6 6 description("Tests that requestAnimationFrame is throttled in subframes that are outside the viewport"); 7 7 window.jsTestIsAsync = true; 8 9 if (window.internals) 10 internals.settings.setRenderingUpdateThrottlingEnabled(true); 8 11 9 12 function checkSubframesThrottled() -
trunk/LayoutTests/fast/animation/request-animation-frame-throttling-detached-iframe.html
r256463 r256484 6 6 description("Test that requestAnimationFrame gets the right throttling in an iframe when inserted into a document."); 7 7 jsTestIsAsync = true; 8 9 if (window.internals) 10 internals.settings.setRenderingUpdateThrottlingEnabled(true); 8 11 9 12 let i = 0; -
trunk/LayoutTests/fast/animation/request-animation-frame-throttling-lowPowerMode.html
r256463 r256484 7 7 window.jsTestIsAsync = true; 8 8 9 if (window.internals) 9 if (window.internals) { 10 internals.settings.setRenderingUpdateThrottlingEnabled(true); 10 11 internals.setLowPowerModeEnabled(true); 12 } 11 13 12 14 var start = null; -
trunk/LayoutTests/fast/animation/request-animation-frame-throttling-outside-viewport.html
r256463 r256484 7 7 description("Test that requestAnimationFrame gets the right throttling in an iframe when when it's outside the viewport."); 8 8 jsTestIsAsync = true; 9 10 if (window.internals) 11 internals.settings.setRenderingUpdateThrottlingEnabled(true); 9 12 10 13 var framesPerSecond = 0; -
trunk/LayoutTests/http/tests/frame-throttling/raf-throttle-in-cross-origin-subframe.html
r256463 r256484 14 14 description("Tests that requestAnimationFrame is throttled in subframes that are cross-origin, and not in same-origin frames"); 15 15 window.jsTestIsAsync = true; 16 17 if (window.internals) 18 internals.settings.setRenderingUpdateThrottlingEnabled(true); 16 19 17 20 var crossOriginFrame; -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r256463 r256484 941 941 webkit.org/b/206961 [ Mojave ] media/media-fragments/TC0035.html [ Pass Failure ] 942 942 943 webkit.org/b/206839 http/tests/frame-throttling/raf-throttle-in-cross-origin-subframe.html [ Pass Failure ] 944 943 945 webkit.org/b/207003 tiled-drawing/scrolling/scroll-snap/scroll-snap-mandatory-overflow.html [ Pass Failure ] 944 946 -
trunk/Source/WebCore/ChangeLog
r256482 r256484 1 2020-02-12 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r256463. 4 5 Caused major flakiness on Mac wk2 6 7 Reverted changeset: 8 9 "REGRESSION (r255158): http/tests/frame-throttling/raf- 10 throttle-in-cross-origin-subframe.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=206839 12 https://trac.webkit.org/changeset/256463 13 1 14 2020-02-12 Yusuke Suzuki <ysuzuki@apple.com> 2 15 -
trunk/Source/WebCore/page/Page.cpp
r256463 r256484 1385 1385 bool Page::renderingUpdateThrottlingEnabled() const 1386 1386 { 1387 return !requestedLayoutMilestones().isEmpty(); 1387 return m_settings->renderingUpdateThrottlingEnabled(); 1388 } 1389 1390 void Page::renderingUpdateThrottlingEnabledChanged() 1391 { 1392 renderingUpdateScheduler().adjustRenderingUpdateFrequency(); 1388 1393 } 1389 1394 … … 2140 2145 void Page::addLayoutMilestones(OptionSet<LayoutMilestone> milestones) 2141 2146 { 2142 bool oldRenderingUpdateThrottlingEnabled = renderingUpdateThrottlingEnabled();2143 2147 // In the future, we may want a function that replaces m_layoutMilestones instead of just adding to it. 2144 2148 m_requestedLayoutMilestones.add(milestones); 2145 if (!oldRenderingUpdateThrottlingEnabled && renderingUpdateThrottlingEnabled())2146 renderingUpdateScheduler().adjustRenderingUpdateFrequency();2147 2149 } 2148 2150 -
trunk/Source/WebCore/page/Page.h
r256463 r256484 703 703 704 704 bool renderingUpdateThrottlingEnabled() const; 705 void renderingUpdateThrottlingEnabledChanged(); 705 706 bool isRenderingUpdateThrottled() const; 706 707 Seconds preferredRenderingUpdateInterval() const; -
trunk/Source/WebCore/page/Settings.yaml
r256463 r256484 770 770 onChange: hiddenPageCSSAnimationSuspensionEnabledChanged 771 771 772 renderingUpdateThrottlingEnabled: 773 initial: true 774 onChange: renderingUpdateThrottlingEnabledChanged 775 772 776 storageBlockingPolicy: 773 777 type: SecurityOrigin::StorageBlockingPolicy -
trunk/Source/WebCore/page/SettingsBase.cpp
r256463 r256484 408 408 } 409 409 410 void SettingsBase::renderingUpdateThrottlingEnabledChanged() 411 { 412 if (m_page) 413 m_page->renderingUpdateThrottlingEnabledChanged(); 414 } 415 410 416 void SettingsBase::resourceUsageOverlayVisibleChanged() 411 417 { -
trunk/Source/WebCore/page/SettingsBase.h
r256463 r256484 195 195 void hiddenPageDOMTimerThrottlingStateChanged(); 196 196 void hiddenPageCSSAnimationSuspensionEnabledChanged(); 197 void renderingUpdateThrottlingEnabledChanged(); 197 198 void resourceUsageOverlayVisibleChanged(); 198 199 void iceCandidateFilteringEnabledChanged(); -
trunk/Source/WebKit/ChangeLog
r256477 r256484 1 2020-02-12 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r256463. 4 5 Caused major flakiness on Mac wk2 6 7 Reverted changeset: 8 9 "REGRESSION (r255158): http/tests/frame-throttling/raf- 10 throttle-in-cross-origin-subframe.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=206839 12 https://trac.webkit.org/changeset/256463 13 1 14 2020-02-12 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r256463 r256484 496 496 type: bool 497 497 defaultValue: DEFAULT_HIDDEN_PAGE_CSS_ANIMATION_SUSPENSION_ENABLED 498 499 RenderingUpdateThrottlingEnabled: 500 type: bool 501 defaultValue: true 498 502 499 503 LowPowerVideoAudioBufferSizeEnabled: -
trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp
r256463 r256484 1320 1320 } 1321 1321 1322 void WKPreferencesSetRenderingUpdateThrottlingEnabled(WKPreferencesRef preferencesRef, bool enabled) 1323 { 1324 toImpl(preferencesRef)->setRenderingUpdateThrottlingEnabled(enabled); 1325 } 1326 1327 bool WKPreferencesGetRenderingUpdateThrottlingEnabled(WKPreferencesRef preferencesRef) 1328 { 1329 return toImpl(preferencesRef)->renderingUpdateThrottlingEnabled(); 1330 } 1331 1322 1332 void WKPreferencesSetIncrementalRenderingSuppressionTimeout(WKPreferencesRef preferencesRef, double timeout) 1323 1333 { -
trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h
r256463 r256484 307 307 WK_EXPORT bool WKPreferencesGetHiddenPageCSSAnimationSuspensionEnabled(WKPreferencesRef preferences); 308 308 309 // Defaults to true. 310 WK_EXPORT void WKPreferencesSetRenderingUpdateThrottlingEnabled(WKPreferencesRef preferences, bool enabled); 311 WK_EXPORT bool WKPreferencesGetRenderingUpdateThrottlingEnabled(WKPreferencesRef preferences); 312 309 313 // Defaults to false 310 314 WK_EXPORT void WKPreferencesSetSnapshotAllPlugIns(WKPreferencesRef preferencesRef, bool enabled); -
trunk/Source/WebKitLegacy/mac/ChangeLog
r256477 r256484 1 2020-02-12 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r256463. 4 5 Caused major flakiness on Mac wk2 6 7 Reverted changeset: 8 9 "REGRESSION (r255158): http/tests/frame-throttling/raf- 10 throttle-in-cross-origin-subframe.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=206839 12 https://trac.webkit.org/changeset/256463 13 1 14 2020-02-12 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h
r256463 r256484 167 167 #define WebKitHiddenPageDOMTimerThrottlingEnabledPreferenceKey @"WebKitHiddenPageDOMTimerThrottlingEnabled" 168 168 #define WebKitHiddenPageCSSAnimationSuspensionEnabledPreferenceKey @"WebKitHiddenPageCSSAnimationSuspensionEnabled" 169 #define WebKitRenderingUpdateThrottlingEnabledPreferenceKey @"WebKitRenderingUpdateThrottlingEnabled" 169 170 #define WebKitLowPowerVideoAudioBufferSizeEnabledPreferenceKey @"WebKitLowPowerVideoAudioBufferSizeEnabled" 170 171 #define WebKitUseLegacyTextAlignPositionedElementBehaviorPreferenceKey @"WebKitUseLegacyTextAlignPositionedElementBehavior" -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm
r256463 r256484 595 595 @NO, WebKitHiddenPageDOMTimerThrottlingEnabledPreferenceKey, 596 596 @YES, WebKitHiddenPageCSSAnimationSuspensionEnabledPreferenceKey, 597 @YES, WebKitRenderingUpdateThrottlingEnabledPreferenceKey, 597 598 @NO, WebKitLowPowerVideoAudioBufferSizeEnabledPreferenceKey, 598 599 … … 2797 2798 } 2798 2799 2800 - (BOOL)renderingUpdateThrottlingEnabled 2801 { 2802 return [self _boolValueForKey:WebKitRenderingUpdateThrottlingEnabledPreferenceKey]; 2803 } 2804 2805 - (void)setRenderingUpdateThrottlingEnabled:(BOOL)enabled 2806 { 2807 [self _setBoolValue:enabled forKey:WebKitRenderingUpdateThrottlingEnabledPreferenceKey]; 2808 } 2809 2799 2810 - (BOOL)lowPowerVideoAudioBufferSizeEnabled 2800 2811 { -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h
r256463 r256484 492 492 - (BOOL)hiddenPageCSSAnimationSuspensionEnabled; 493 493 - (void)setHiddenPageCSSAnimationSuspensionEnabled:(BOOL)flag; 494 495 - (BOOL)renderingUpdateThrottlingEnabled; 496 - (void)setRenderingUpdateThrottlingEnabled:(BOOL)flag; 494 497 495 498 - (BOOL)lowPowerVideoAudioBufferSizeEnabled; -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r256463 r256484 3130 3130 settings.setHiddenPageDOMTimerThrottlingEnabled([preferences hiddenPageDOMTimerThrottlingEnabled]); 3131 3131 settings.setHiddenPageCSSAnimationSuspensionEnabled([preferences hiddenPageCSSAnimationSuspensionEnabled]); 3132 settings.setRenderingUpdateThrottlingEnabled([preferences renderingUpdateThrottlingEnabled]); 3132 3133 3133 3134 WebCore::DeprecatedGlobalSettings::setResourceLoadStatisticsEnabled([preferences resourceLoadStatisticsEnabled]); -
trunk/Source/WebKitLegacy/win/ChangeLog
r256463 r256484 1 2020-02-12 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r256463. 4 5 Caused major flakiness on Mac wk2 6 7 Reverted changeset: 8 9 "REGRESSION (r255158): http/tests/frame-throttling/raf- 10 throttle-in-cross-origin-subframe.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=206839 12 https://trac.webkit.org/changeset/256463 13 1 14 2020-02-12 Said Abou-Hallawa <said@apple.com> 2 15 -
trunk/Source/WebKitLegacy/win/Interfaces/IWebPreferencesPrivate.idl
r256463 r256484 259 259 HRESULT setWebSQLEnabled([in] BOOL enabled); 260 260 HRESULT webSQLEnabled([out, retval] BOOL* enabled); 261 HRESULT setRenderingUpdateThrottlingEnabled([in] BOOL enabled); 262 HRESULT renderingUpdateThrottlingEnabled([out, retval] BOOL* enabled); 261 263 } 262 264 -
trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h
r256463 r256484 228 228 229 229 #define WebKitWebSQLEnabledPreferenceKey "WebKitWebSQLEnabled" 230 231 #define WebKitRenderingUpdateThrottlingEnabledPreferenceKey "WebKitRenderingUpdateThrottlingEnabled" 232 233 #define WebKitRenderingUpdateThrottlingEnabledPreferenceKey "WebKitRenderingUpdateThrottlingEnabled" -
trunk/Source/WebKitLegacy/win/WebPreferences.cpp
r256463 r256484 355 355 CFDictionaryAddValue(defaults, CFSTR(WebKitWebSQLEnabledPreferenceKey), kCFBooleanFalse); 356 356 357 CFDictionaryAddValue(defaults, CFSTR(WebKitRenderingUpdateThrottlingEnabledPreferenceKey), kCFBooleanTrue); 358 357 359 defaultSettings = defaults; 358 360 #endif … … 2471 2473 } 2472 2474 2475 HRESULT WebPreferences::renderingUpdateThrottlingEnabled(_Out_ BOOL* enabled) 2476 { 2477 if (!enabled) 2478 return E_POINTER; 2479 *enabled = boolValueForKey(WebKitRenderingUpdateThrottlingEnabledPreferenceKey); 2480 return S_OK; 2481 } 2482 2483 HRESULT WebPreferences::setRenderingUpdateThrottlingEnabled(BOOL enabled) 2484 { 2485 setBoolValue(WebKitRenderingUpdateThrottlingEnabledPreferenceKey, enabled); 2486 return S_OK; 2487 } 2488 2473 2489 HRESULT WebPreferences::allowTopNavigationToDataURLs(_Out_ BOOL* allowAccess) 2474 2490 { -
trunk/Source/WebKitLegacy/win/WebPreferences.h
r256463 r256484 304 304 virtual HRESULT STDMETHODCALLTYPE webSQLEnabled(_Out_ BOOL*); 305 305 virtual HRESULT STDMETHODCALLTYPE setWebSQLEnabled(BOOL); 306 virtual HRESULT STDMETHODCALLTYPE renderingUpdateThrottlingEnabled(_Out_ BOOL*); 307 virtual HRESULT STDMETHODCALLTYPE setRenderingUpdateThrottlingEnabled(BOOL); 306 308 307 309 // IWebPreferencesPrivate8 -
trunk/Source/WebKitLegacy/win/WebView.cpp
r256463 r256484 5616 5616 settings.setRequestAnimationFrameEnabled(enabled); 5617 5617 5618 hr = prefsPrivate->renderingUpdateThrottlingEnabled(&enabled); 5619 if (FAILED(hr)) 5620 return hr; 5621 settings.setRenderingUpdateThrottlingEnabled(enabled); 5622 5618 5623 hr = prefsPrivate->mockScrollbarsEnabled(&enabled); 5619 5624 if (FAILED(hr)) -
trunk/Tools/ChangeLog
r256483 r256484 1 2020-02-12 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r256463. 4 5 Caused major flakiness on Mac wk2 6 7 Reverted changeset: 8 9 "REGRESSION (r255158): http/tests/frame-throttling/raf- 10 throttle-in-cross-origin-subframe.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=206839 12 https://trac.webkit.org/changeset/256463 13 1 14 2020-02-12 Jonathan Bedard <jbedard@apple.com> 2 15 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r256463 r256484 996 996 [preferences setHiddenPageDOMTimerThrottlingEnabled:NO]; 997 997 [preferences setHiddenPageCSSAnimationSuspensionEnabled:NO]; 998 [preferences setRenderingUpdateThrottlingEnabled:NO]; 998 999 [preferences setRemotePlaybackEnabled:YES]; 999 1000 -
trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp
r256463 r256484 802 802 prefsPrivate->setServerTimingEnabled(TRUE); 803 803 prefsPrivate->setAspectRatioOfImgFromWidthAndHeightEnabled(TRUE); 804 prefsPrivate->setRenderingUpdateThrottlingEnabled(FALSE); 804 805 // FIXME: WebGL2 805 806 // FIXME: WebRTC -
trunk/Tools/WebKitTestRunner/TestController.cpp
r256463 r256484 909 909 WKPreferencesSetHiddenPageDOMTimerThrottlingEnabled(preferences, false); 910 910 WKPreferencesSetHiddenPageCSSAnimationSuspensionEnabled(preferences, false); 911 WKPreferencesSetRenderingUpdateThrottlingEnabled(preferences, false); 911 912 912 913 WKPreferencesSetAcceleratedDrawingEnabled(preferences, m_shouldUseAcceleratedDrawing || options.useAcceleratedDrawing);
Note: See TracChangeset
for help on using the changeset viewer.