The developer who submitted the fix thinks so:

"I need to be clear about this, Electron's "_cornerMask" override was a dirty hack that was made in an effort to fix an ancient issue with corner smoothing."

https://github.com/electron/electron/issues/48311#issuecomme...