Closed mumaguma closed 8 months ago
(however, AllowSyncXHRInPageDismissalpolicy was supposed to work on edge versions 79 to 99)
Certain Enterprise Browser Policies may impact Playwright's ability to launch and control Google Chrome and Microsoft Edge. Running in an environment with browser policies is outside of the Playwright project's scope.
See https://playwright.dev/docs/browsers#google-chrome--microsoft-edge
We either recommend using Chromium instead or disabling policy after policy to find out which Policy causes it.
Version
1.41.2
Steps to reproduce
Dotnet: In Hooks.cs in [AfterScenario] binding I close page, contexts, browser and playwright. When using Edge or Chrome in headless=false, closing browser takes 30000-38000 ms. Closing Chromium takes 2000-3000 ms. In ticket #27679 @yury-s suggested, that this may be due to corporate policies imposed on browser and requested for logs. This happends in headed mode (headless=false)
Expected behavior
Closing Edge / Chrome in 2-3 seconds or not much longer than that.
Actual behavior
Closing Edge / Chrome in 30-38 seconds, when using headed mode
Additional context
Nothing logged after test finish with DEBUG=pw:api. With DEBUG=pw:browser:
edge://policy doesn't ahve somehting apparent, perhaps "AllowSyncXHRInPageDismissal"?
Environment