From 56f64d0688b99c99debce46d4f230d8108cd006a Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 20 Sep 2010 17:31:46 -0400 Subject: [PATCH] Bug 596797 - moz-do-not-send="true" in HTML signature or pasted HTML gets ignored/removed; r=bz a=NPOTB for Firefox --HG-- extra : rebase_source : 97118e0c654577f44a8ca0143349f4b510ec9641 --- content/base/src/nsContentSink.cpp | 3 +++ content/base/src/nsGkAtomList.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/content/base/src/nsContentSink.cpp b/content/base/src/nsContentSink.cpp index 0c364dac3407..4cab1edba5f9 100644 --- a/content/base/src/nsContentSink.cpp +++ b/content/base/src/nsContentSink.cpp @@ -1873,6 +1873,9 @@ nsIAtom** const kDefaultAllowedAttributes [] = { &nsGkAtoms::maxlength, &nsGkAtoms::media, &nsGkAtoms::method, +#ifdef MOZ_MAIL_NEWS + &nsGkAtoms::mozdonotsend, +#endif &nsGkAtoms::multiple, &nsGkAtoms::name, &nsGkAtoms::nohref, diff --git a/content/base/src/nsGkAtomList.h b/content/base/src/nsGkAtomList.h index 5f900c14ffcc..9026981344d6 100644 --- a/content/base/src/nsGkAtomList.h +++ b/content/base/src/nsGkAtomList.h @@ -65,6 +65,9 @@ GK_ATOM(_empty, "") GK_ATOM(moz, "_moz") GK_ATOM(moztype, "_moz-type") GK_ATOM(mozdirty, "_moz_dirty") +#ifdef MOZ_MAIL_NEWS +GK_ATOM(mozdonotsend, "_moz_do_not_send") +#endif GK_ATOM(mozeditorbogusnode, "_moz_editor_bogus_node") GK_ATOM(mozgeneratedcontentbefore, "_moz_generated_content_before") GK_ATOM(mozgeneratedcontentafter, "_moz_generated_content_after")