Bug 751452 - Prevent DNT modification in unprivileged mode + test case. r=khuey

This commit is contained in:
Alexandre D'Eschambeault 2012-08-13 22:47:19 -04:00
parent a941bdf2bd
commit 7d7c542db1
2 changed files with 3 additions and 2 deletions

View File

@ -3224,8 +3224,8 @@ nsXMLHttpRequest::SetRequestHeader(const nsACString& header,
const char *kInvalidHeaders[] = {
"accept-charset", "accept-encoding", "access-control-request-headers",
"access-control-request-method", "connection", "content-length",
"cookie", "cookie2", "content-transfer-encoding", "date", "expect",
"host", "keep-alive", "origin", "referer", "te", "trailer",
"cookie", "cookie2", "content-transfer-encoding", "date", "dnt",
"expect", "host", "keep-alive", "origin", "referer", "te", "trailer",
"transfer-encoding", "upgrade", "user-agent", "via"
};
PRUint32 i;

View File

@ -30,6 +30,7 @@ var headers = [
"cOOkiE2",
"cOntEnt-tRAnsFer-enCoDiNg",
"DATE",
"dNT",
"exPeCt",
"hOSt",
"keep-alive",