mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Issue #1102 - Disable <meta http-equiv=set-cookie>
Create a new pref 'dom.meta-set-cookie.enabled' which is set to 'false', disabling http-equiv meta cookies.
This commit is contained in:
parent
8ca43343c9
commit
4ab1401ee6
30 changed files with 32 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue