Closed Bug 1960638 Opened 11 days ago Closed 2 days ago

Load PiP video-wrappers from jar:/file: instead of moz-extension:

Categories

(Toolkit :: Picture-in-Picture, task, P1)

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: tschuster, Assigned: tschuster)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We only want Services.scriptloader.loadSubScript to load trusted schemes, but PiP seems to currently use this function to load video wrappers that are part of the pictureinpicture@mozilla.org WebExtension. As a bit of a hack, we can just resolve these wrapper scripts using the underlying jar: or file: URLs of the extension. This seems to be the only use of loadSubScript with the moz-extension: protocol, otherwise I would have probably looked into a different solution.

Summary: Don't load video wrappers from moz-extension → Load PiP video-wrappers from jar:/file: instead of moz-extension:
Assignee: nobody → tschuster
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P1
Pushed by tschuster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/37354cbce77a Load PiP video-wrappers from jar:/file: instead of moz-extension:. r=pip-reviewers,mconley
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: