Closed Bug 1799415 Opened 2 years ago Closed 2 years ago

Support jsm to sys.mjs redirect in content process with sandbox enabled

Categories

(Core :: XPConnect, defect)

defect

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It looks like, redirect from the import for jsm to sys.mjs does not work on content process due to sandbox blocks the load for non-existent jsm file,
and fallback path isn't taken.

we should either:

  1. modify sandbox definition or something to allow .jsm if .sys.jsm exists
  2. support blocked case in fallback path

2 would be cleaner

Blocks: 1799314
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/128ae8aa1863 Try fallback from jsm to sys.mjs when access is denied by sandbox. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: