fetch: don't do cors check on system principal

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
4 years ago
3 years ago

People

(Reporter: marcosc, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
On IRC, :nsm wrote: 
you want something like:

```
nsRefPtr<nsIStreamListener> listener = this; 
if (!nsContentUtils::IsSystemPrincipal(mPrincipal)) { 
  //setup the corslistnerer as before 
}
```

And then you want to pass the correct listener to `asyncopen` in the channel below and that IsSystemPrincipal() check should also gate the NS_StartCORS...() call to fix both ends of the problem.
(Reporter)

Updated

4 years ago
Blocks: 1130924
(Reporter)

Updated

4 years ago
OS: Mac OS X → All
Hardware: x86 → All
(Reporter)

Comment 1

3 years ago
see bug 1130924.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.