Update on Oct 28, 2021: the bug mentioned in the update of Sep 22 has been fixed.
Update on Sep 22, 2021: there’s a bug affecting using Wayland Chrome/Chromium/Electron in the latest Sway/wlroots (i.e., the latest git commit). See https://github.com/swaywm/wlroots/issues/3168 and https://bugs.chromium.org/p/chromium/issues/detail?id=1246834. Before the bug is resolved, either use the released versions of Sway/wlroots, or just wait.
In the past, we may need to use XWayland when using Google Chrome or Chromium under the Wayland environment. But now (as of 01/04/2021), it’s possible to use native Wayland with Google Chrome/Chromium and even electron-based apps if they are installed through the official repository or AUR.
Just launch Google Chrome/Chromium with two additional flags:
It’s the same for electron-based apps: