Hello ui/base/clipboard/clipboard.cc owners,
I filed a
Headless Chromium bug where a crash could be triggered in the clipboard code due to headless using the auraX11 clipboard without setting up an x11 related global variable.
I believe the most straightforward solution would be to promote TestClipboard to an actual production headless clipboard used in headless mode, and check if the browser is running during headless mode during clipboard construction.
A compile time switch isn't possible in this case, because headless mode is a runtime flag.
Does this approach sound reasonable? I wanted to check before writing a change.
Thanks!