Closed Bug 1572513 Opened 5 years ago Closed 4 years ago

Abort and BFCache handling for COEP headers

Categories

(Core :: DOM: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: CuveeHsu, Assigned: valentin)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

https://phabricator.services.mozilla.com/D40143#1241568

Hmm. I think I'd prefer it if we didn't set the COEP here. Theoretically at this point the document could have the load aborted, in which case the previous document would now have the COEP of the document it was trying to load imposed on it, or we could navigate through the BFCache and end up at the wrong document.

Should this also block bug 1477743? It only blocking a closed bug doesn't really make it visible.

It's in 3.1.4: https://mikewest.github.io/corpp/#integration-html
Theinitialize the Document object algorithm sets the embedder policy for Documents to which a browsing context is navigated by adding a new step directly after Referrer Policy is initialized in step 6:

    Let document’s embedder policy be the result of obtaining an embedder policy from response.

Not sure if it makes sense to set the policy in Document::StartDocumentLoad like we set the Referrer-Policy
https://searchfox.org/mozilla-central/rev/15cff10fa2d10fcc763b22e909412dcd6e9c4e88/dom/base/Document.cpp#2989

Assignee: nobody → valentin.gosu
Depends on: WindowContext
Blocks: 1613061
Attachment #9094817 - Attachment description: Bug 1572513 - Set the embdder policy when intializing the Document object r=nika → Bug 1572513 - Set the embedder policy when intializing the Document object r=nika
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3020047e7580
Set the embedder policy when intializing the Document object r=nika
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: