UXP Webview - Firebase "Login with Google" does not work

Hi There,

We are building a POC for a GEOlayers UXP plugin. The setup is very simple atm:

Our webapp on editor.geolayers.app uses firebase auth. It works fine across all browsers. However inside a UXP webview the google sign in breaks:



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?

I have attached a screedcast and the UXP manifest.
Screencast&Manifest.zip (1.4 MB)

Thanks for any advice on this!

Best regards,

Markus

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. :man_shrugging: