browser
object doesn't work on privileged pages
#6
Unanswered
bovine3dom
asked this question in
Issue triage
Replies: 1 comment 5 replies
-
I don't have time to investigate further right now but the internal wrapper extension we use does have
so I think we'll have to patch somewhere else in the firefox extensions permissions system. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Steps to reproduce:
k
on a new tab pageExpected behaviour:
document gets logged to web console
Actual behaviour:
permissions error
Extensions with the
mozillaAddons
permission are allowed to run everywhere, which you ask for hereglide/src/browser/extensions/glide/manifest.json
Line 14 in 74c7718
But Firefox has extra checks built-in to make sure random extensions (like your wrapper and Tridactyl) do not ask for this permission, e.g. https://searchfox.org/firefox-main/rev/21d3e8ab8b61715ddd39ac04c62a846fa79deddd/toolkit/components/extensions/Extension.sys.mjs#1184
Years ago I started work on a patch set for Firefox so that Tridactyl could use these permissions but I never got them working: https://github.com/tridactyl/godmode/blob/3e0fe7df81fff00715074a31255870a7114ae2ea/patches/privilegeForAll.patch#L15
It would be cool if we could solve this together :)
Beta Was this translation helpful? Give feedback.
All reactions