Skip to content

Commit

Permalink
chore(bidi): disable thottling of background tabs in Firefox (#34381)
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo authored Jan 17, 2025
1 parent 3c160df commit d082805
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ function defaultProfilePreferences(
'dom.max_chrome_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
// AddonManager.SCOPE_PROFILE + AddonManager.SCOPE_APPLICATION
'extensions.autoDisableScopes': 0,
Expand Down Expand Up @@ -175,6 +181,9 @@ function defaultProfilePreferences(
// Show chrome errors and warnings in the error console
'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
'media.gmp-manager.updateEnabled': false,

Expand Down
1 change: 0 additions & 1 deletion tests/bidi/expectations/bidi-firefox-nightly-library.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 tick after 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 use viewport size from window features [timeout]
library/trace-viewer.spec.ts › should serve css without content-type [timeout]
Expand Down

0 comments on commit d082805

Please sign in to comment.