Sitelet https://github.com/flutter/flutter/pull/190841
Skip to content

[web] Disable background networking and GCM in all Chrome launchers - #190841

Merged
auto-submit[bot] merged 9 commits into
flutter:masterfrom
mdebbar:fix-chrome-gcm-errors
Aug 13, 2026
Merged

auto-submit[bot] merged 9 commits into
flutter:masterfrom
mdebbar:fix-chrome-gcm-errors

Conversation

@mdebbar

@mdebbar mdebbar commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Passes --disable-background-networking, --disable-sync, --disable-client-side-phishing-detection, --disable-notifications, and --disable-features=GCM consistently across all Chrome launchers:

  • packages/flutter_tools/lib/src/web/chrome.dart
  • packages/flutter_tools/lib/src/drive/web_driver_service.dart
  • dev/devicelab/lib/framework/browser.dart
  • engine/src/flutter/lib/web_ui/dev/chrome.dart

This prevents Chrome background networking services from initiating registration calls to deprecated GCM endpoints (google_apis/gcm/engine/registration_request.cc) during CI test runs, eliminating stderr log noise:

[+2778 ms] [CHROME]: [8090:8103:0809/122419.625416:ERROR:google_apis/gcm/engine/registration_request.cc:290] Registration response error message: DEPRECATED_ENDPOINT
[  +13 ms] [CHROME]: [8090:8103:0809/122419.638547:ERROR:google_apis/gcm/engine/registration_request.cc:290] Registration response error message: PHONE_REGISTRATION_ERROR

Tests

  • Updated chrome_test.dart and web_driver_service_test.dart.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 10, 2026
@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team labels Aug 10, 2026
@mdebbar mdebbar changed the title Disable background networking and GCM in all Chrome launchers [web] Disable background networking and GCM in all Chrome launchers Aug 10, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request standardizes Chrome launcher arguments across various tools and packages (including devicelab, engine web_ui, and flutter_tools) by disabling background networking, sync, client-side phishing detection, notifications, and GCM features. The corresponding tests have been updated to reflect these changes. Feedback suggests also adding '--disable-background-timer-throttling' and '--disable-renderer-backgrounding' to the engine's Chrome launcher to ensure consistency and prevent performance throttling during test execution.

Comment thread engine/src/flutter/lib/web_ui/dev/chrome.dart Outdated
@mdebbar
mdebbar marked this pull request as draft August 10, 2026 15:35
@mdebbar
mdebbar force-pushed the fix-chrome-gcm-errors branch from 79bbd2a to c5ebab9 Compare August 10, 2026 15:38
@mdebbar
mdebbar force-pushed the fix-chrome-gcm-errors branch from 6ea22b6 to 3593644 Compare August 10, 2026 16:31
@mdebbar
mdebbar marked this pull request as ready for review August 11, 2026 18:00
@mdebbar
mdebbar requested a review from harryterkelsen August 11, 2026 18:01

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces flags to disable GCM, MCS, and other background features in Chrome across multiple test frameworks and launchers. The feedback recommends extracting the kGcmDisabledFlags constant into a separate, lightweight constants file to prevent importing heavy transitive dependencies into WebDriverService, which currently necessitates adding verbose mock overrides in its unit tests.

Comment thread packages/flutter_tools/lib/src/drive/web_driver_service.dart Outdated
Comment thread packages/flutter_tools/test/general.shard/drive/web_driver_service_test.dart Outdated
harryterkelsen
harryterkelsen previously approved these changes Aug 11, 2026

@harryterkelsen harryterkelsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mdebbar
mdebbar requested a review from harryterkelsen August 12, 2026 01:15
@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 12, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 12, 2026
@auto-submit

auto-submit Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/190841, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@harryterkelsen harryterkelsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants