Closed Bug 1587062 Opened 5 years ago Closed 5 years ago

[Fission] Make sandbox attribute works for out-of-process iframes

Categories

(Core :: DOM: Core & HTML, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Fission Milestone M4
Tracking Status
firefox72 --- fixed

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(1 file)

Checking bug 1586772 I found that the sandbox attribute doesn't be synced to out-of-process iframe when fission enables.

Blocks: 1586772

It looks like that sandboxFlags should move from Docshell to BrowsingContext. There is one consumer for nsIDocShell.sandboxFlags, https://searchfox.org/mozilla-central/rev/55aa17110091deef24b913d033ccaf58f9c6d337/toolkit/components/thumbnails/content/backgroundPageThumbsContent.js#52, it looks like we need to provide an alternative way to access sandboxFlags.

Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4fc7e9873a39 Move SandboxFlags from DocShell to BrowsingContext; r=smaug
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

I hit a compile error when building Thunderbird saying GetSandboxFlags is not defined at this line. It seems that the method was moved by the patch above. Edgar, could you look into this compile error?

Flags: needinfo?(echen)
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/6797b9e2d931 Port bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext. rs=bustage-fix

Jorg's patch worked. Thanks!

Flags: needinfo?(echen)

Retroactively moving fixed bugs whose summaries mention "Fission" (or other Fission-related keywords) but are not assigned to a Fission Milestone to an appropriate Fission Milestone.

This will generate a lot of bugmail, so you can filter your bugmail for the following UUID and delete them en masse:

0ee3c76a-bc79-4eb2-8d12-05dc0b68e732

Fission Milestone: --- → M4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: