Closed Bug 1793647 Opened 3 years ago Closed 3 years ago

Send requests with new fetch destination

Categories

(Core :: DOM: Credential Management, defect)

defect

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: bvandersloot, Assigned: bvandersloot)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

After much deliberation, the standard seems to be settling on using a new Sec-Fetch-Dest value, rather than a custom protected header.

Deliberation: https://github.com/fedidcg/FedCM/issues/320

Merge into Fetch: https://github.com/whatwg/fetch/pull/1495

This is to keep up with WHATWG Fetch https://github.com/whatwg/fetch/pull/1495 .

I added an element to nsIContentPolicy::nsContentPolicyType as my starting point and
proceeded from there, following the instructions at the end of the enum.

Assignee: nobody → bvandersloot
Status: NEW → ASSIGNED

InternalRequest::OverrideContentPolicyType was literally built for this.
I just had to call it while building requests and start checking for it in all of the relevant tests.
I know, code duplication is bad, but I think it is easier to see what a test is doing without helpers and they aren't hard to update entirely by hand yet.

Depends on D158657

Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6a74cdaf71bb part 1 - Create new Sec-Fetch-Dest value for WebIdentity (FedCM), r=freddyb,webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/9a6fed87ccdb part 2 - Use new Sec-Fetch-Dest value for FedCM, r=timhuang
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Regressions: 1871581
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: