We’re upgrading our headless environment to revision 1095492 (version 111.0.5555.0) and we noticed that WebGL doesn’t seem to be working in headless mode on ARM Mac anymore. We wonder if there is a launch flag we're missing or if we should file a bug or something else.
chromium/chrome-mac/Chromium.app/Contents/MacOS/Chromium --headless --disable-gpu --screenshot --window-size=1280,1696

objc[58489]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x242c85518) /chromium/chrome-mac/Chromium.app/Contents/Frameworks/Chromium Framework.framework/Versions/111.0.5555.0/Libraries/libGLESv2.dylib (0x106a1fdb0). One of the two will be used. Which one is undefined.
[0321/120806.319954:ERROR:gles2_command_buffer_stub.cc(344)] ContextResult::kFatalFailure: Failed to create context.
[0321/120806.320850:ERROR:gles2_command_buffer_stub.cc(344)] ContextResult::kFatalFailure: Failed to create context.
94887 bytes written to file screenshot.png
We also get the same result in the newer versions.
I checked that the same command worked fine in 1083080 (version 110.0.5478.0).
Note that this appears to be an issue with headless mode. In headful mode, WebGL seems to be working fine.
We also checked the same command on Intel-based Mac, Windows, and Linux and the command works fine in these environments. This appears only to have issues for ARM-based Mac.
We wonder if there is a launch flag we're missing or if we should file a bug or something else.