In recent chromium versions, when detaching playwright-crx, the corresponding tab crashes with Error code: STATUS_BREAKPOINT:
I was able to track down the issue to Emulation.setEmulatedMedia when setting forced-colors feature to either none or active. Even though the instruction executes successfully, it crashes the attached tab when we try to detach it using chrome.debugger.detach.
Minimal code for a chrome extension that reproduces the bug on Chromium 119.0.6045.9, Windows 11:
In recent chromium versions, when detaching playwright-crx, the corresponding tab crashes with
Error code: STATUS_BREAKPOINT
:I was able to track down the issue to
Emulation.setEmulatedMedia
when settingforced-colors
feature to eithernone
oractive
. Even though the instruction executes successfully, it crashes the attached tab when we try to detach it usingchrome.debugger.detach
.Minimal code for a chrome extension that reproduces the bug on Chromium 119.0.6045.9, Windows 11:
In Chromium 117.0.5938.62, the issue doesn't occurr.