canvas.createContext("webgl") returns null in Electron

Yes under certain circumstances, though there are few legitimate reasons to need it and since chromium as a snap doesn’t need it, I suspect it is something else. You can read about executable stacks here: Snap and executable stacks and here: SecurityTeam/Roadmap/ExecutableStacks - Ubuntu Wiki