mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 03:57:30 +09:00
Remove support and tests for HSTS priming from the tree. Fixes #384
This commit is contained in:
parent
96a0af1be8
commit
d4ac94cf3e
56 changed files with 26 additions and 1812 deletions
|
|
@ -194,12 +194,6 @@ function createPolicyTest(policy, optionalEarlierPolicy) {
|
|||
}
|
||||
|
||||
function handleRequest(request, response) {
|
||||
if (request.method == 'HEAD') {
|
||||
// respond to a HEAD request with a 418 so that we can easily distinguish
|
||||
// HSTS priming responses and ignore them
|
||||
response.setStatusLine('1.1', 418, "I'm a teapot");
|
||||
return;
|
||||
}
|
||||
var sharedKey = 'bug704320.sjs';
|
||||
var params = request.queryString.split('&');
|
||||
var action = params[0].split('=')[1];
|
||||
|
|
|
|||
|
|
@ -25,9 +25,6 @@ function doXHR(url, onSuccess, onFail) {
|
|||
xhr.onload = function () {
|
||||
if (xhr.status == 200) {
|
||||
onSuccess(xhr);
|
||||
} else if (xhr.status == 418) {
|
||||
// Ignore HSTS priming responses
|
||||
return;
|
||||
} else {
|
||||
onFail(xhr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue