mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
file: and about: are now opaque-filtered responses
This commit is contained in:
parent
f3dbe7d388
commit
41d896c201
5 changed files with 29 additions and 67 deletions
|
@ -279,14 +279,7 @@ pub fn main_fetch(
|
|||
false
|
||||
};
|
||||
|
||||
if (same_origin && !cors_flag ) ||
|
||||
current_url.scheme() == "data" ||
|
||||
current_url.scheme() == "file" || // FIXME: Fetch spec has already dropped filtering against file:
|
||||
// and about: schemes, but CSS tests will break on loading Ahem
|
||||
// since we load them through a file: URL.
|
||||
current_url.scheme() == "about" ||
|
||||
request.mode == RequestMode::Navigate
|
||||
{
|
||||
if (same_origin && !cors_flag) || current_url.scheme() == "data" {
|
||||
// Substep 1.
|
||||
request.response_tainting = ResponseTainting::Basic;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue