Skip to content

moz-extension:// is unsupported. #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RokeJulianLockhart opened this issue Aug 13, 2022 · 4 comments
Closed

moz-extension:// is unsupported. #457

RokeJulianLockhart opened this issue Aug 13, 2022 · 4 comments

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Aug 13, 2022

I am unable to translate the pages served by "moz-extension://" URIs, such as what this and this depict: "moz-extension://fd4e202e-e17f-411f-b087-54303670dcbd/data/reader/index.html?id=47&url=https%3A%2F%2Fwww.ukrinform.ua%2Frubric-polytics%2F3550277-es-ta-42-kraini-zaklikali-rosiu-negajno-vivesti-vijska-iz-zaporizkoi-aes.html".

@FilipePS
Copy link
Owner

An extension only has access to moz-extension:// if this URI belongs to the extension itself. There is no way to access pages with this URI from other extensions.

@RokeJulianLockhart
Copy link
Author

@FilipePS, do you know whether a relevant issue exists at bugzilla?

@FilipePS
Copy link
Owner

I don't know of any relevant issues in bugzilla.
This behavior of Firefox is deliberate and the same with all other browsers.
This is probably for security reasons.

But you can still translate the selected text via a button in the context menu.

An extension only has access to moz-extension:// if this URI belongs to the extension itself. There is no way to access pages with this URI from other extensions.

I think this information is not accurate.
An extension's content script is not injected into any moz-extension:// URL, not even if it belongs to the extension itself.

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Aug 14, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants