Bug 596797 - moz-do-not-send="true" in HTML signature or pasted HTML gets ignored/removed; r=bz a=NPOTB for Firefox
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 20 Sep 2010 17:31:46 -0400
changeset 54370 9fee371c01065df76c1fcaecc62406f1501ebad3
parent 54369 f0e4b8c97a9960a11d18d280d6773a1a3c1af2ba
child 54371 0fb87b689b2cad72775f35193346a177138dfa36
push idunknown
push userunknown
push dateunknown
reviewersbz, NPOTB
bugs596797
milestone2.0b7pre
Bug 596797 - moz-do-not-send="true" in HTML signature or pasted HTML gets ignored/removed; r=bz a=NPOTB for Firefox
content/base/src/nsContentSink.cpp
content/base/src/nsGkAtomList.h
--- a/content/base/src/nsContentSink.cpp
+++ b/content/base/src/nsContentSink.cpp
@@ -1868,16 +1868,19 @@ nsIAtom** const kDefaultAllowedAttribute
   &nsGkAtoms::longdesc,
 #ifdef MOZ_MEDIA
   &nsGkAtoms::loopend,
   &nsGkAtoms::loopstart,
 #endif
   &nsGkAtoms::maxlength,
   &nsGkAtoms::media,
   &nsGkAtoms::method,
+#ifdef MOZ_MAIL_NEWS
+  &nsGkAtoms::mozdonotsend,
+#endif
   &nsGkAtoms::multiple,
   &nsGkAtoms::name,
   &nsGkAtoms::nohref,
   &nsGkAtoms::noshade,
   &nsGkAtoms::nowrap,
 #ifdef MOZ_MEDIA
   &nsGkAtoms::pixelratio,
   &nsGkAtoms::playbackrate,
--- a/content/base/src/nsGkAtomList.h
+++ b/content/base/src/nsGkAtomList.h
@@ -60,16 +60,19 @@
 //---------------------------------------------------------------------------
 // Generic atoms
 //---------------------------------------------------------------------------
 
 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")
 GK_ATOM(mozgeneratedcontentimage, "_moz_generated_content_image")
 GK_ATOM(_moz_target, "_moz_target")
 GK_ATOM(_moz_type, "_moz-type")
 GK_ATOM(menuactive, "_moz-menuactive")
 GK_ATOM(_poundDefault, "#default")