flathub / org.chromium.Chromium

https://flathub.org/apps/details/org.chromium.Chromium
43 stars 25 forks source link

Unable to install new extensions. #348

Open ForeverNooob opened 8 months ago

ForeverNooob commented 8 months ago

Hello,

I was recommended to create a new issue here after making a Reddit thread and asking in #flatpak:matrix.org

I'll go ahead and paste my thread here:

I can't seem to install new extensions for org.chromium.Chromium. When trying to install an extension I get the error saying "Your organization blocked this file because it didn't meet a security policy."

I've tried flatpak permission-reset org.chromium.Chromium but that doesn't seem to do much.

Other stuff I tried after talking in the #flatpak:matrix.org room:

My distro:

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

These are my permissions for the Chromium Flatpak app:

$ flatpak info --show-permissions org.chromium.Chromium
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;session-bus;cups;
devices=dri;
filesystems=!home;/run/.heim_org.h5l.kcm-socket;~/.config/chromium;~/Downloads/webdl;~/Downloads/tmp;

[Session Bus Policy]
org.freedesktop.Notifications=talk
org.kde.kwalletd5=talk
org.freedesktop.FileManager1=talk
org.mpris.MediaPlayer2.chromium.*=own
org.freedesktop.secrets=talk
org.freedesktop.ScreenSaver=talk
com.canonical.AppMenu.Registrar=talk
org.gnome.SessionManager=talk

[System Bus Policy]
org.freedesktop.Avahi=talk
org.freedesktop.UPower=talk

[Environment]
GTK_THEME=Adwaita:dark
LD_LIBRARY_PATH=/app/chromium/nonfree-codecs/lib
GTK_PATH=/app/lib/gtkmodules

What do you see in chrome://policy ?

{
   "chromeMetadata": {
      "OS": "Linux",
      "application": "Chromium",
      "revision": "204016af461e03117aa3858b51ba4534c7cfda81-refs/branch-heads/6099_110@{#3}",
      "version": "120.0.6099.129 (Official Build) (64-bit)"
   },
   "policyValues": {
      "chrome": {
         "name": "Chrome Policies",
         "policies": {
         }
      },
      "extensions": {
         "cjpalhdlnbpafiamejdnhcphjbkeiagm": {
            "forSigninScreen": false,
            "id": "cjpalhdlnbpafiamejdnhcphjbkeiagm",
            "name": "uBlock Origin",
            "policies": {
            }
         }
      },
      "precedence": {
         "name": "Policy Precedence",
         "policies": {
         },
         "precedenceOrder": [ "Platform machine", "Cloud machine", "Platform user", "Cloud user" ]
      }
   },
   "status": {
      "user": {
      }
   }
}

Which apparently equates to this: https://0x0.st/HlqN.png

Maybe these policy logs are relevant?

# Version Information
Chromium    120.0.6099.129
Revision    204016af461e03117aa3858b51ba4534c7cfda81-refs/branch-heads/6099_110@{#3}
OS  Linux 5.15.0-87-lowlatency

# Logs
[VERBOSE] Retrieving map of policy values
[VERBOSE] Client has user policies; getting precedence-related policies for Chrome
[VERBOSE] Retrieving map of policy values
[VERBOSE] user status: { }
[VERBOSE] Retrieving map of policy values
[VERBOSE] Client has user policies; getting precedence-related policies for Chrome
[VERBOSE] Retrieving map of policy values
[VERBOSE] user status: { }

Not sure how to interpret this, but none of my extensions seem to be visible here:

$ flatpak info --show-extensions org.chromium.Chromium

Chromium Web Browser - The web browser from Chromium project

          ID: org.chromium.Chromium
         Ref: app/org.chromium.Chromium/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 120.0.6099.199
     License: BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0)
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 367.5 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 49aed06ccb8dccc8d90e9e6e7144e48ba505c70eac8651e0734b6694dfcc9508
      Parent: 84c673a851e013ee8dca3ea09fbae4ea30785a02ddb02b0e7f93f23019888798
     Subject: Update chromium-120.0.6099.129.tar.xz to 120.0.6099.199 (fcc818fd)
        Date: 2024-01-06 08:12:39 +0000

   Extension: runtime/org.chromium.Chromium.Codecs/x86_64/stable
          ID: org.chromium.Chromium.Codecs
      Origin: flathub
      Commit: 324d5f1d3205f4e2a6c48220e02a99ae4e450a233151b8974cf5fcf77f6b27de
   Installed: 2.6 MB
ToS0 commented 3 weeks ago

Same with io.github.ungoogled_software.ungoogled_chromium Flatpak: no new extension can be installed, also when latest release of WebStore is installed (https://github.com/NeverDecaf/chromium-web-store/releases/tag/v1.5.4.3)

ToS0 commented 3 weeks ago

however, manual installation, even automatic install via the bookmarklet trick works just fine: https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq#downloading-the-crx-file