Files
brave-core/browser/global_privacy_control
Netzenbot 4f5982f522 Fix intermittent timeout in GlobalPrivacyControlBrowserTest.IncludesSecGPCHeader (#36402)
* Fix intermittent timeout in GlobalPrivacyControlBrowserTest.IncludesSecGPCHeader

The test was timing out on Windows x86 nightly (issue #55215). The timeout
occurred during the browser test startup flush, where all pending browser
startup tasks are drained via RunUntilIdle. On resource-constrained x86
machines, certificate verification overhead during HTTPS connections
contributed to the timeout.

Add ContentMockCertVerifier to bypass real SSL certificate verification
in the test. This eliminates certificate verification overhead during
both browser startup (for any HTTPS requests made by startup tasks) and
the test's HTTPS navigation. The test verifies Sec-GPC header presence,
not certificate handling, so mocking cert verification is appropriate.

Also fix GlobalPrivacyControlPolicyTest::SetUpInProcessBrowserTestFixture
to call the correct parent class method, ensuring the mock cert verifier
is properly initialized for policy tests.

Resolves brave/brave-browser#55215
2026-06-05 22:01:43 +09:00
..