Closed
Bug 1189945
Opened 10 years ago
Closed 1 year ago
Remove nsIChannel CorsMode flag and set Request.mode based on nsILoadInfo securityFlags instead
Categories
(Core :: DOM: Service Workers, defect, P3)
Core
DOM: Service Workers
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bkelly, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: dom-lws-bugdash-triage)
Once bug 1182535 updates enough of the network callsites we should switch the ServiceWorkerManager code to using nsILoadInfo::GetSecurityFlags() to set the Request.mode value. Once this is done we can remove the nsIChannel CorsMode flag. The new nsILoadInfo securityFlags is more robust and being integrated with the rest of the tree.
For example, the securityFlags will actually reflect same-origin policies which are currently not reflected in actual values on CorsMode.
Note, we will still need to exempt the mode for document nsIContentPolicy values since navigations need to be same-origin, but the security flags won't reflect that.
Reporter | ||
Comment 1•10 years ago
|
||
I have a patch in bug 1184967 that adds the conversion from securityFlags.
Comment 2•10 years ago
|
||
Ben said elsewhere that this is nice but not entirely necessary for the initial shipping of SW. He noted some changes that he's made and others still needed but I didn't catch them quickly enough to type them here.
Reporter | ||
Comment 3•9 years ago
|
||
This is a compat issue because the legacy code paths don't reliably provide the correct FetchEvent.request values.
Updated•8 years ago
|
Severity: normal → minor
Priority: -- → P3
Updated•3 years ago
|
Severity: minor → S4
Comment 4•1 year ago
|
||
Bug 1776414 changed nsIHttpChannelInternal's corsMode to requestMode addressing the channel change desired, plus the patch in comment 1 I believe performed the conversion of the use already.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
Whiteboard: dom-lws-bugdash-triage
You need to log in
before you can comment on or make changes to this bug.
Description
•