Has anyone an idea what’s wrong here? I’d love to know what the underlying chromium is doing different that leads to the error. And is there a workaround?
After brief check I couldn’t spot any obvious or known flaw.
I think you will need to trace a code in debugger and see where and why it fails in webview. Ideally if you could get unminified code with sourcemaps.
Maybe you could also check the network tab.
One think I can think of is this… but I think this is not your case?:
Limitations
For security reasons, WebView does not support JS localStorage APIs if local contents are loaded onto WebView. When the local contents access the properties (length) or methods (setItem, getItem and so on) of JS localStorage property, it would return nothing (zero or null according to the return type) or throw an error.
Hey Jarda, thanks for having a look. Can’t really debug the code, as it lives on https://accounts.google.com/ and is part of their oAuth flow… I also can confirm that the localStorageAPI works fine as it is not loaded locally.
I think the issue will occur for every UXP plugin trying to use google oAuth.