Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit 7956230

Browse files
authored
Add extra flags to disable throttling behavior. (#55)
* Add extra flags to disabling throttling behavior. These flags [were added in our internal SDK test infrastructure][1] and they helped reduce flaky timeout behavior in the past. It's very likely that these and the `--disable-background-timer-throttling` flag that's already here have some overlap, though. I have not been able to find much documentation about whether they do overlap, so I was inclined to try to add these by default and assess the effect in our CI. [1]: https://dart-review.googlesource.com/c/sdk/+/325780/2/pkg/test_runner/lib/src/browser_controller.dart * ... add CHANGELOG
1 parent 74a0efe commit 7956230

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Require Dart 3.0
44
- Log errors from chrome
55
- Allow tests to detect headless-only environment (for CI).
6+
- Add extra flags that may help disable additional throttling in background tabs
67

78
## 1.1.1
89

lib/src/chrome.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class Chrome {
102102
'--remote-debugging-port=$port',
103103
// When the DevTools has focus we don't want to slow down the application.
104104
'--disable-background-timer-throttling',
105+
'--disable-blink-features=TimerThrottlingForBackgroundTabs',
106+
'--disable-features=IntensiveWakeUpThrottling',
105107
// Since we are using a temp profile, disable features that slow the
106108
// Chrome launch.
107109
if (!signIn) '--disable-extensions',

0 commit comments

Comments
 (0)