chore(bidi): disable thottling of background tabs in Firefox (#34381)

This commit is contained in:
Henrik Skupin 2025-01-17 23:29:26 +01:00 committed by GitHub
parent 3c160df06a
commit d082805ea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -133,6 +133,12 @@ function defaultProfilePreferences(
'dom.max_chrome_script_run_time': 0, 'dom.max_chrome_script_run_time': 0,
'dom.max_script_run_time': 0, 'dom.max_script_run_time': 0,
// Disable background timer throttling to allow tests to run in parallel
// without a decrease in performance.
'dom.min_background_timeout_value': 0,
'dom.min_background_timeout_value_without_budget_throttling': 0,
'dom.timeout.enable_budget_timer_throttling': false,
// Only load extensions from the application and user profile // Only load extensions from the application and user profile
// AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION // AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
'extensions.autoDisableScopes': 0, 'extensions.autoDisableScopes': 0,
@ -175,6 +181,9 @@ function defaultProfilePreferences(
// Show chrome errors and warnings in the error console // Show chrome errors and warnings in the error console
'javascript.options.showInConsole': true, 'javascript.options.showInConsole': true,
// Do not throttle rendering (requestAnimationFrame) in background tabs
'layout.testing.top-level-always-active': true,
// Disable download and usage of OpenH264: and Widevine plugins // Disable download and usage of OpenH264: and Widevine plugins
'media.gmp-manager.updateEnabled': false, 'media.gmp-manager.updateEnabled': false,

View File

@ -101,7 +101,6 @@ library/inspector/cli-codegen-3.spec.ts cli codegen should generate fram
library/page-clock.spec.ts popup should run time before popup [timeout] library/page-clock.spec.ts popup should run time before popup [timeout]
library/page-clock.spec.ts popup should tick after popup [timeout] library/page-clock.spec.ts popup should tick after popup [timeout]
library/page-clock.spec.ts popup should tick before popup [timeout] library/page-clock.spec.ts popup should tick before popup [timeout]
library/popup.spec.ts should not throttle rAF in the opener page [timeout]
library/popup.spec.ts should not throw when click closes popup [timeout] library/popup.spec.ts should not throw when click closes popup [timeout]
library/popup.spec.ts should use viewport size from window features [timeout] library/popup.spec.ts should use viewport size from window features [timeout]
library/trace-viewer.spec.ts should serve css without content-type [timeout] library/trace-viewer.spec.ts should serve css without content-type [timeout]