Closed Bug 1722775 Opened 3 years ago Closed 3 years ago

If Firefox translations is enabled, allow JS loads from moz-extensions in the Parent Process

Categories

(Firefox :: Translations, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Bug 1582512 is about disallowing javascript to be executed in the parent unless it comes from a trusted source. Part of this includes blocklisting moz-extension URIs if the extension process is enabled. Because we're in warning-only mode, the new translation extensions that load javascript in the parent from a moz-extension URI started (silently) triggering it.

There seem to be multiple translation extensions (moz-extension://[firefox-infobar-ui-bergamot-browser-extension@browser.mt: Firef..., moz-extension://[firefox-translations@mozilla.org: Firefox Translations]/experim... , moz-extension://[bergamot-browser-extension@mozilla.org: Bergamot Translate]/exp...) so for now I'm just going to do a blanket exemption, but will file a follow-up bug to turn it into a more strict allow-list.

Are these all mozilla-signed? If so, can they not use the dynamic manifest stuff (addBootstrappedManifestLocation on Components.manager) so they get chrome URIs for the scripts in question? This is what e.g. the autofill system add-on does.

No longer blocks: 1582512

We don't use addBootstrappedManifestLocation anywhere in our code, so tom's patch should be used by now.

Pushed by tritter@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/401ac4496964
Exempt Firefox Translation users from having their script security checked r=andrenatal
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: