mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 70df598b894bfa4a7122720608a3110cb25ceb42
This commit is contained in:
parent
7f495fdd61
commit
4334a9c855
111 changed files with 3428 additions and 315 deletions
|
@ -55,7 +55,7 @@ function _getNELResourceURL(subdomain, suffix) {
|
|||
*/
|
||||
|
||||
function getURLForResourceWithBasicPolicy(subdomain) {
|
||||
return _getNELResourceURL(subdomain, "pass.png?id="+reportID);
|
||||
return _getNELResourceURL(subdomain, "pass.png?id="+reportID+"&success_fraction=1.0");
|
||||
}
|
||||
|
||||
function fetchResourceWithBasicPolicy(subdomain) {
|
||||
|
@ -63,6 +63,11 @@ function fetchResourceWithBasicPolicy(subdomain) {
|
|||
return fetch(url, {mode: "no-cors"});
|
||||
}
|
||||
|
||||
function fetchResourceWithZeroSuccessFractionPolicy(subdomain) {
|
||||
const url = _getNELResourceURL(subdomain, "pass.png?id="+reportID+"&success_fraction=0.0");
|
||||
return fetch(url, {mode: "no-cors"});
|
||||
}
|
||||
|
||||
/*
|
||||
* Fetches a resource whose headers define an include_subdomains NEL policy.
|
||||
*/
|
||||
|
|
|
@ -3,4 +3,4 @@ Cache-Control: no-store, no-cache, must-revalidate
|
|||
Cache-Control: post-check=0, pre-check=0, false
|
||||
Pragma: no-cache
|
||||
Report-To: { "group": "nel-group", "max_age": 10886400, "endpoints": [{ "url": "https://{{hosts[][www]}}:{{ports[https][0]}}/network-error-logging/support/report.py?op=put&reportID={{GET[id]}}" }] }
|
||||
NEL: {"report_to": "nel-group", "max_age": 10886400, "success_fraction": 1.0}
|
||||
NEL: {"report_to": "nel-group", "max_age": 10886400, "success_fraction": {{GET[success_fraction]}}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue