deafult site permissions

Board for discussions around the Basilisk web browser.

Moderator: Basilisk-Dev

User avatar
jayDoBasil
New to the forum
New to the forum
Posts: 2
Joined: 2025-10-17, 12:49
Location: EU

deafult site permissions

Post by jayDoBasil » 2025-10-17, 12:57

Where can I change the default site permissions?
Especially;
Use the Camera/Microphone I'd like to be by default Block.
All the options that have 'Ask ...' I'd like to have as default 'Block"
Basically block everything but images. Safety first No?
You do not have the required permissions to view the files attached to this post.

jarsealer
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2025-08-03, 23:56

Re: deafult site permissions

Post by jarsealer » 2025-10-17, 15:36

Pretty sure anything other than 'Load Images' is blocked by default even if it asks for permission, you have to manually click 'Allow' on the popup when a site tries to access something. If you also ignore the popup and/ or click anywhere else it gets blocked.
Pale Moon and Basilisk aarch64 user, on Raspberry Pi 5 (8 GB RAM)

gabrgv
Moon lover
Moon lover
Posts: 82
Joined: 2023-10-28, 18:59

Re: deafult site permissions

Post by gabrgv » 2025-10-17, 17:28

Here are the ones I know:
  • Access your location, cf. Issue #123 (Basilisk)
    geo.enabled (about:config pref)
    bool
    default=true
  • Load images, cf. Issue #123 (Basilisk)
    permissions.default.image (about:config pref)
    int
    1=all images should be loaded (default)
    2=no images should be loaded
    3=load only images from the site on which the current page resides
  • Open pop-up windows, cf. Issue #123 (Basilisk)
    preferences -> content -> pop-ups -> block pop-up windows
  • Set cookies
    preferences -> privacy -> history -> allow sites to store cookies and site data
    or
    network.cookie.cookieBehavior (about:config pref)
    int
    0=allow cookies
    1=block third party cookies
    2=block all cookies
    3=allow third party cookies from visited sites
About the other ones,
  • Install add-ons I don't know, but it's blocked by "deafult" anyway.
  • Receive notifications may be related to dom.push.* or dom.webnotifications.*.
  • Share the screen, Use the camera and Use the microphone may be related to media.getusermedia.*.
But I don't know if there actually is a preference for switching those, as I think they are managed by (or at least stored in) a file called permissions.sqlite.

P.S. bug #1379560

User avatar
jayDoBasil
New to the forum
New to the forum
Posts: 2
Joined: 2025-10-17, 12:49
Location: EU

Re: deafult site permissions

Post by jayDoBasil » 2025-10-17, 19:33

Thanks for the suggestions.

Cookies --> Success default is now 'block' Hooray!

Add-ons:
Either:
'Always ask' with exceptions for allowed sites
OR
Allow All.
No other options found.

Notifications:
'default' doesn't change.
"notification.feature.enabled" set to 'false'. Same for other notification options, all on 'false' except "network.notify.IPv6"
In the permissions window remains 'Always ask' as default.

Screensharing:
"media.getusermedia.screensharing.enabled" = 'false'.
"media.getusermedia.screensharing.allow_on_old_platforms" = 'false'
In permission window 'Share the screen' default still is "Always ask"

Mic/Camera:
media.getusermedia.audiocapture.enabled= 'false'
media.getusermedia.browser.enabled= 'false'
media.getusermedia.noise_enabled= 'false'
media.getusermedia.aec + media.getusermedia.agc = 2 (I assume it means 'block')
However in the permission window 'Use the cam/mic" the default still is "Always ask"

So I modified the permissions.sqlite. in both tables permission(INT) set default = 2.
opened pages in Basilisk for the first time, still default permissions 'Always ask'.
Also the entry for mozilla testpilot (what is this?) now has permission=2.

Conclusion, about:config options are ignored even though the prefs.js has been changed accordingly.
:(

I wish the "PermissionsPlus" extension from palemoon would work here, but alas, the basilisk version lacks the ability to set the defaults for all sites.
I guess I'll have to ask moonbat to update the basilisk version.
Thanks for the info anyway