Call for testing: native messaging support in the Firefox snap

(cross-posted on the Ubuntu Discourse)

Tangential question: could/will this be added to the Chromium snap if it works well for Firefox?

Yes, once it’s been proved to work well in Firefox (both as a snap and as a flatpak), the obvious next target is to implement support for the native messaging portal in chromium.

1 Like

Has anyone tried the GNOME Shell Integration plugin for Firefox to add GOME Shell extensions? I’m not sure what the requirements are for that beyond the native messaging… I think there needs to be something running on the host too? Is that daemon (is it a daemon?) still installed by default in 22.04, or otherwise is it still in the repo if not installed by default?

Edit: Well I really should learn to read… I see now that this was mentioned in @oSoMoN’s original post and I completely missed it :woman_facepalming:

I tested the 1Password extension with Ubuntu 22.10 and Firefox Snap beta and edge. Both don’t work.

➜ snap run firefox                
Gtk-Message: 20:31:46.089: Failed to load module "xapp-gtk3-module"
Gtk-Message: 20:31:46.089: Failed to load module "appmenu-gtk-module"
Gtk-Message: 20:31:46.089: Failed to load module "appmenu-gtk-module"
Gtk-Message: 20:31:46.159: Failed to load module "canberra-gtk-module"
Gtk-Message: 20:31:46.165: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Gtk-Message: 20:31:50.565: Failed to load module "xapp-gtk3-module"
Gtk-Message: 20:31:50.565: Failed to load module "appmenu-gtk-module"
Gtk-Message: 20:31:50.565: Failed to load module "appmenu-gtk-module"
Gtk-Message: 20:31:50.602: Failed to load module "canberra-gtk-module"
Gtk-Message: 20:31:50.603: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[Parent 97295, Main Thread] WARNING: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_789/firefox_com_1password_1password_2489659785”: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167

** (firefox-beta:97295): WARNING **: 20:32:12.943: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_789/firefox_com_1password_1password_2489659785”
[Parent 97295, Main Thread] WARNING: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_789/firefox_com_1password_1password_1412382229”: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167

** (firefox-beta:97295): WARNING **: 20:33:41.047: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_789/firefox_com_1password_1password_1412382229”
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[2022-07-27T23:34:45Z ERROR viaduct::backend::ffi] Missing HTTP status
[2022-07-27T23:34:45Z ERROR viaduct::backend::ffi] Missing HTTP status
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff9a6a27100 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff9a6a27100 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff98da8d500 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff98da8d500 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff983a8ff00 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff983a8ff00 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff97f2b9400 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff97f2b9400 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff9a6a27100 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff9a6a27100 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff98da8d500 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff98da8d500 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff983a8ff00 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff983a8ff00 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff97f2b9400 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 97295, Main Thread] WARNING: ContentParent: id=7ff97f2b9400 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697

Works for me using the KeepassXC browser addon.

  1. I reinstalled the snap firefox --beta (having previously removed it - I’ve been running it from the tar.gz installation as detailed on Mozilla’s webpage). Upon startup, I created a fresh profile, accepting the permissions dialog option for native messaging. Then I closed FF.
  2. Then I copied the contents of my existing profile folder from .mozilla/firefox/profile.name into this new snap profile folder at snap/firefox/common/.mozilla/firefox/profile.name after first deleting the existing contents.
  3. It all starts up (quite fast) and works immediately with all existing configs, addons and bookmarks. KeepassXC addon is fine and works normally.
5 Likes

I tested here the 1Password extension, in a fully up-to-date 22.04 VM, with firefox from the beta channel, and the test was successful. I installed 1password from the deb provided on their website. I didn’t test with 1password installed as a snap though. EDIT: I also successfully tested with the 1password snap (after uninstalling the deb).

Can you run firefox like this:

MOZ_LOG=NativeMessagingPortal:5 snap run firefox

and share the log output here?

I’m using Ubuntu Kinetic to do the test. However, I don’t think this would affect the result. My main test is to check if I can use the application running on Linux to unlock the extension, similar I do in the the DEB Firefox.

➜ MOZ_LOG=NativeMessagingPortal:5 snap run firefox
Gtk-Message: 08:28:09.539: Failed to load module "xapp-gtk3-module"
Gtk-Message: 08:28:09.539: Failed to load module "appmenu-gtk-module"
Gtk-Message: 08:28:09.608: Failed to load module "canberra-gtk-module"
Gtk-Message: 08:28:09.611: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[Parent 412753: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::NativeMessagingPortal()
[Parent 412753: Main Thread]: D/NativeMessagingPortal will be used
[Parent 412753: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::DelayedCall()
[Parent 412753: Main Thread]: D/NativeMessagingPortal D-Bus proxy ready for name org.freedesktop.portal.Desktop, path /org/freedesktop/portal/desktop, interface org.freedesktop.portal.WebExtensions
[Parent 412753: Main Thread]: D/NativeMessagingPortal is available
[Parent 412753: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::~DelayedCall()
[Parent 412753: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_1929731108
[Parent 412753: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108
[Parent 412753: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108, pending response for /org/freedesktop/portal/desktop/request/1_322/firefox/717784379
[Parent 412753: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_322/firefox/717784379 in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108
[Parent 412753: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108 was closed by the portal
[Parent 412753: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1929731108, unknown handle
[Parent 412753: Main Thread]: D/NativeMessagingPortal will be used
[Parent 412753: Main Thread]: D/NativeMessagingPortal is available
[Parent 412753: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_2619135934
[Parent 412753: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934
[Parent 412753: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934, pending response for /org/freedesktop/portal/desktop/request/1_322/firefox/981561359
[Parent 412753: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_322/firefox/981561359 in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934
[Parent 412753: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934 was closed by the portal
[Parent 412753: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_2619135934, unknown handle
[Parent 412753: Main Thread]: D/NativeMessagingPortal will be used
[Parent 412753: Main Thread]: D/NativeMessagingPortal is available
[Parent 412753: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_1580759426
[Parent 412753: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426
[Parent 412753: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426, pending response for /org/freedesktop/portal/desktop/request/1_322/firefox/41321180
[Parent 412753: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_322/firefox/41321180 in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426
[Parent 412753: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426 was closed by the portal
[Parent 412753: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1580759426, unknown handle
[Parent 412753: Main Thread]: D/NativeMessagingPortal will be used
[Parent 412753: Main Thread]: D/NativeMessagingPortal is available
[Parent 412753: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_1741548394
[Parent 412753: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394
[Parent 412753: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394, pending response for /org/freedesktop/portal/desktop/request/1_322/firefox/2123236976
[Parent 412753: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_322/firefox/2123236976 in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394
[Parent 412753: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394
[Parent 412753: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394 was closed by the portal
[Parent 412753: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_322/firefox_com_1password_1password_1741548394, unknown handle
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[2022-08-01T11:28:23Z ERROR viaduct::backend::ffi] Missing HTTP status
[2022-08-01T11:28:23Z ERROR viaduct::backend::ffi] Missing HTTP status
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f79739c6400 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f79739c6400 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183000 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183000 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183a00 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183a00 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964184900 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964184900 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f79739c6400 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f79739c6400 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964184900 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964184900 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183000 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183000 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183a00 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 412753, Main Thread] WARNING: ContentParent: id=7f7964183a00 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697

This message suggests that the prompt to allow the extension to talk to the portal was initially refused. Can you remove the permissions file (rm -f ~/.local/share/flatpak/db/webextensions), restart the portal (systemctl --user restart xdg-desktop-portal) and test again?

1 Like

Problem still happening.

➜ MOZ_LOG=NativeMessagingPortal:5 snap run firefox
Gtk-Message: 09:29:51.776: Failed to load module "xapp-gtk3-module"
Gtk-Message: 09:29:51.776: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:29:51.841: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:29:51.843: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[Parent 460669: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::NativeMessagingPortal()
[Parent 460669: Main Thread]: D/NativeMessagingPortal will be used
[Parent 460669: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::DelayedCall()
[Parent 460669: Main Thread]: D/NativeMessagingPortal D-Bus proxy ready for name org.freedesktop.portal.Desktop, path /org/freedesktop/portal/desktop, interface org.freedesktop.portal.WebExtensions
[Parent 460669: Main Thread]: D/NativeMessagingPortal is available
[Parent 460669: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::~DelayedCall()
[Parent 460669: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_932258656
[Parent 460669: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656
[Parent 460669: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656, pending response for /org/freedesktop/portal/desktop/request/1_862/firefox/1961993431
[Parent 460669: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_862/firefox/1961993431 in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656
[Parent 460669: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656 was closed by the portal
[Parent 460669: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_932258656, unknown handle
[Parent 460669: Main Thread]: D/NativeMessagingPortal will be used
[Parent 460669: Main Thread]: D/NativeMessagingPortal is available
[Parent 460669: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_2858322804
[Parent 460669: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804
[Parent 460669: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804, pending response for /org/freedesktop/portal/desktop/request/1_862/firefox/137506891
[Parent 460669: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_862/firefox/137506891 in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804
[Parent 460669: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804 was closed by the portal
[Parent 460669: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2858322804, unknown handle
[Parent 460669: Main Thread]: D/NativeMessagingPortal will be used
[Parent 460669: Main Thread]: D/NativeMessagingPortal is available
[Parent 460669: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_1068887217
[Parent 460669: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217
[Parent 460669: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217, pending response for /org/freedesktop/portal/desktop/request/1_862/firefox/1736685474
[Parent 460669: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_862/firefox/1736685474 in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217
[Parent 460669: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217 was closed by the portal
[Parent 460669: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_1068887217, unknown handle
[Parent 460669: Main Thread]: D/NativeMessagingPortal will be used
[Parent 460669: Main Thread]: D/NativeMessagingPortal is available
[Parent 460669: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_3983115394
[Parent 460669: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394
[Parent 460669: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394, pending response for /org/freedesktop/portal/desktop/request/1_862/firefox/869411418
[Parent 460669: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_862/firefox/869411418 in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394
[Parent 460669: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394 was closed by the portal
[Parent 460669: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3983115394, unknown handle
[Parent 460669: Main Thread]: D/NativeMessagingPortal will be used
[Parent 460669: Main Thread]: D/NativeMessagingPortal is available
[Parent 460669: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_3881262267
[Parent 460669: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267
[Parent 460669: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267, pending response for /org/freedesktop/portal/desktop/request/1_862/firefox/820432487
[Parent 460669: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_862/firefox/820432487 in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267
[Parent 460669: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267 was closed by the portal
[Parent 460669: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_3881262267, unknown handle
[Parent 460669: Main Thread]: D/NativeMessagingPortal will be used
[Parent 460669: Main Thread]: D/NativeMessagingPortal is available
[Parent 460669: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_2345991992
[Parent 460669: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992
[Parent 460669: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992, pending response for /org/freedesktop/portal/desktop/request/1_862/firefox/1260201474
[Parent 460669: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_862/firefox/1260201474 in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992
[Parent 460669: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992
[Parent 460669: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992 was closed by the portal
[Parent 460669: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_862/firefox_com_1password_1password_2345991992, unknown handle
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[2022-08-01T12:30:06Z ERROR viaduct::backend::ffi] Missing HTTP status
[2022-08-01T12:30:06Z ERROR viaduct::backend::ffi] Missing HTTP status
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72cd662b00 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72cd662b00 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221c700 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221c700 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221cc00 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221cc00 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221a400 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221a400 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72cd662b00 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72cd662b00 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221cc00 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221cc00 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221c700 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221c700 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221a400 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 460669, Main Thread] WARNING: ContentParent: id=7f72c221a400 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697

Can you share the output of flatpak permissions webextensions ?

Interesting… How could I change that?

➜ flatpak permissions webextensions
Table         Object                       App          Permissions Data
webextensions com.1password.1password      snap.firefox no          0x00
webextensions org.gnome.chrome_gnome_shell snap.firefox yes         0x00

Try:

flatpak permission-set webextensions com.1password.1password snap.firefox yes

Executed and now I have the permissions set. Also deleted that file and restared xdg-desktop-portal, but the extension doesn’t call the application to open up and login.

➜ MOZ_LOG=NativeMessagingPortal:5 snap run firefox
Gtk-Message: 11:15:47.472: Failed to load module "xapp-gtk3-module"
Gtk-Message: 11:15:47.473: Failed to load module "appmenu-gtk-module"
Gtk-Message: 11:15:47.535: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:15:47.537: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[Parent 539541: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::NativeMessagingPortal()
[Parent 539541: Main Thread]: D/NativeMessagingPortal will be used
[Parent 539541: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::DelayedCall()
[Parent 539541: Main Thread]: D/NativeMessagingPortal D-Bus proxy ready for name org.freedesktop.portal.Desktop, path /org/freedesktop/portal/desktop, interface org.freedesktop.portal.WebExtensions
[Parent 539541: Main Thread]: D/NativeMessagingPortal is available
[Parent 539541: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::~DelayedCall()
[Parent 539541: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_3906771310
[Parent 539541: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310
[Parent 539541: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310, pending response for /org/freedesktop/portal/desktop/request/1_1587/firefox/296853557
[Parent 539541: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1587/firefox/296853557 in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310, requesting file descriptors
[Parent 539541: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310: (153, 154, 155)
[Parent 539541: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310 was closed by the portal
[Parent 539541: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_3906771310, unknown handle
[Parent 539541: Main Thread]: D/NativeMessagingPortal will be used
[Parent 539541: Main Thread]: D/NativeMessagingPortal is available
[Parent 539541: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_4259922288
[Parent 539541: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288
[Parent 539541: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288, pending response for /org/freedesktop/portal/desktop/request/1_1587/firefox/789736886
[Parent 539541: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1587/firefox/789736886 in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288, requesting file descriptors
[Parent 539541: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288: (154, 155, 156)
[Parent 539541: Main Thread]: D/NativeMessagingPortal closing session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288
[Parent 539541: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288 was closed by the portal
[Parent 539541: Main Thread]: D/NativeMessagingPortal failed to close session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288”
[Parent 539541, Main Thread] WARNING: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288”: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167

** (firefox-beta:539541): WARNING **: 11:15:49.146: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4259922288”
[Parent 539541: Main Thread]: D/NativeMessagingPortal will be used
[Parent 539541: Main Thread]: D/NativeMessagingPortal is available
[Parent 539541: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_201789389
[Parent 539541: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389
[Parent 539541: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389, pending response for /org/freedesktop/portal/desktop/request/1_1587/firefox/1466828155
[Parent 539541: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1587/firefox/1466828155 in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389, requesting file descriptors
[Parent 539541: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389: (162, 165, 166)
[Parent 539541: Main Thread]: D/NativeMessagingPortal closing session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389
[Parent 539541: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389 was closed by the portal
[Parent 539541: Main Thread]: D/NativeMessagingPortal will be used
[Parent 539541: Main Thread]: D/NativeMessagingPortal is available
[Parent 539541: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_1134821201
[Parent 539541: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201
[Parent 539541: Main Thread]: D/NativeMessagingPortal failed to close session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389”
[Parent 539541, Main Thread] WARNING: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389”: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167

** (firefox-beta:539541): WARNING **: 11:15:50.934: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_201789389”
[Parent 539541: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201, pending response for /org/freedesktop/portal/desktop/request/1_1587/firefox/166061945
[Parent 539541: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1587/firefox/166061945 in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201, requesting file descriptors
[Parent 539541: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201: (165, 166, 167)
[Parent 539541: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201 was closed by the portal
[Parent 539541: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_1134821201, unknown handle
[Parent 539541: Main Thread]: D/NativeMessagingPortal will be used
[Parent 539541: Main Thread]: D/NativeMessagingPortal is available
[Parent 539541: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_467374124
[Parent 539541: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124
[Parent 539541: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124, pending response for /org/freedesktop/portal/desktop/request/1_1587/firefox/1778746409
[Parent 539541: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1587/firefox/1778746409 in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124, requesting file descriptors
[Parent 539541: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124: (165, 166, 167)
[Parent 539541: Main Thread]: D/NativeMessagingPortal closing session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124
[Parent 539541: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124 was closed by the portal
[Parent 539541: Main Thread]: D/NativeMessagingPortal will be used
[Parent 539541: Main Thread]: D/NativeMessagingPortal is available
[Parent 539541: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_com_1password_1password_4222509250
[Parent 539541: Main Thread]: D/NativeMessagingPortal failed to close session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124”
[Parent 539541, Main Thread] WARNING: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124”: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167

** (firefox-beta:539541): WARNING **: 11:15:52.155: OnCloseSessionDone error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_467374124”
[Parent 539541: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250
[Parent 539541: Main Thread]: D/NativeMessagingPortal starting com.1password.1password, requested by {d634138d-c276-4fc8-924b-40a0ea21d284} in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250, pending response for /org/freedesktop/portal/desktop/request/1_1587/firefox/1154806734
[Parent 539541: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1587/firefox/1154806734 in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250
[Parent 539541: Main Thread]: D/NativeMessagingPortal native application start successful in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250, requesting file descriptors
[Parent 539541: Main Thread]: D/NativeMessagingPortal got file descriptors for native application in session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250: (166, 167, 168)
[Parent 539541: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250 was closed by the portal
[Parent 539541: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_1587/firefox_com_1password_1password_4222509250, unknown handle
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
[2022-08-01T14:15:55Z ERROR viaduct::backend::ffi] Missing HTTP status
[2022-08-01T14:15:55Z ERROR viaduct::backend::ffi] Missing HTTP status
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7975bb3f00 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7975bb3f00 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965af7400 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965af7400 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afab00 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afab00 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afa100 - BlockShutdown: CanSend.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3595
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afa100 - ShutDownProcess: Sent shutdown message.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1799
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7975bb3f00 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7975bb3f00 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965af7400 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965af7400 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afa100 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afa100 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afab00 - ShutDownProcess: Closing channel.: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:1834
[Parent 539541, Main Thread] WARNING: ContentParent: id=7f7965afab00 - RemoveShutdownBlockers: file /build/firefox/parts/firefox/build/dom/ipc/ContentParent.cpp:3697

What exactly do you mean by “the extension doesn’t call the application to open up and login”? In my tests, setting up the extension doesn’t require launching the application, one can log in to their 1Password account directly from the extension’s pages.

The extension is self-sufficient for simple use, but the integration is useful, AFAIK, for two things: unlock the extension using the application, so you could unlock using fingerprint reader, for instance, and edit entries in the Linux app instead of website. There is an option on extension settings to enable this features: Here is the setting on extension:

Here is the extension in the Linux app: Using the deb Firefox and the Linux app works perfectly. Using the Snap Firefox doesn’t work and I get the logs I showed you.

I see. That setting in the application was greyed out for me, because I had installed 1password as a snap. After I re-installed it as a deb, the setting is available and enabled, but indeed unlocking the extension doesn’t offer the option to use e.g. biometric authentication from the app. I wonder how this is implemented, maybe these advanced features don’t use native messaging, but rather another communication layer? Can you maybe ask about it on their support forum and link to the discussion here?

Here it is the discussion about this matter. Let’s try to get traction and get this solved.

1 Like

Confirmation: with the beta version (105.0b6) of Firefox (snap on Ubuntu 22.04.01 LTS), I the Video DownloadHelper is running again. Note: I could not install the beta version in parallel with the stable version (geckodriver problem)

It doesn’t seem to work by default with FirefoxPWA

However, it works after running flatpak permission-set webextensions firefoxpwa snap.firefox yes. I’m certain I have not seen any permissions request dialog. Is this a bug that it automatically denies access?

$ snap version
snap    2.57.1
snapd   2.57.1
series  16
ubuntu  22.04
kernel  5.15.0-47-generic
$ snap info firefox
...
installed:          105.0b9-1               (1836) 187MB -
MOZ_LOG=NativeMessagingPortal:5 snap run firefox

[Parent 99494: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_firefoxpwa_80670177
[Parent 99494: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177
[Parent 99494: Main Thread]: D/NativeMessagingPortal starting firefoxpwa, requested by firefoxpwa@filips.si in session /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177
[Parent 99494: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177, pending response for /org/freedesktop/portal/desktop/request/1_1212/firefox/630856936
[Parent 99494: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_1212/firefox/630856936 in session /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177
[Parent 99494: Main Thread]: D/NativeMessagingPortal native application start canceled by user in session /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177
[Parent 99494: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177 was closed by the portal
[Parent 99494: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_1212/firefox_firefoxpwa_80670177, unknown handle
[Parent 99494: Main Thread]: D/NativeMessagingPortal will be used
[Parent 99494: Main Thread]: D/NativeMessagingPortal is available

EDIT: I just got the permissions request dialog for KeepassXC, and now I’m 200% sure I did not get this dialog for firefoxpwa.

1 Like