diff options
author | Moonchild <git-repo@palemoon.org> | 2019-05-25 12:29:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 12:29:51 +0000 |
commit | 72260727093c92eaca78a3ea4d32bfafa49af8c3 (patch) | |
tree | ba5878e5f6cf7eaa6ee82d098e6757e4211a91ee /dom | |
parent | e24e6346b70d3d212e9c9b7aa14f79f1d3ea86e8 (diff) | |
parent | ca9e6a4fa9d075bc9cce68b7fb44a7f1bcf3f8c7 (diff) | |
download | UXP-72260727093c92eaca78a3ea4d32bfafa49af8c3.tar UXP-72260727093c92eaca78a3ea4d32bfafa49af8c3.tar.gz UXP-72260727093c92eaca78a3ea4d32bfafa49af8c3.tar.lz UXP-72260727093c92eaca78a3ea4d32bfafa49af8c3.tar.xz UXP-72260727093c92eaca78a3ea4d32bfafa49af8c3.zip |
Merge pull request #1114 from g4jc/disable-meta-cookie
Disable <meta http-equiv=set-cookie>
Diffstat (limited to 'dom')
-rw-r--r-- | dom/base/nsContentSink.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsContentSink.cpp b/dom/base/nsContentSink.cpp index 85b3d07bf..490f0ec17 100644 --- a/dom/base/nsContentSink.cpp +++ b/dom/base/nsContentSink.cpp @@ -304,7 +304,8 @@ nsContentSink::ProcessHeaderData(nsIAtom* aHeader, const nsAString& aValue, mDocument->SetHeaderData(aHeader, aValue); - if (aHeader == nsGkAtoms::setcookie) { + if (aHeader == nsGkAtoms::setcookie && + Preferences::GetBool("dom.meta-set-cookie.enabled", true)) { // Don't allow setting cookies in cookie-averse documents. if (mDocument->IsCookieAverse()) { return NS_OK; |