Closed
Bug 596797
Opened 14 years ago
Closed 14 years ago
moz-do-not-send="true" in HTML signature or pasted HTML gets ignored/removed
Categories
(Core :: DOM: Editor, defect)
Tracking
()
VERIFIED
FIXED
mozilla2.0b7
People
(Reporter: davidson.mj, Assigned: ehsan.akhgari)
References
()
Details
(Keywords: regression, verified1.9.1, verified1.9.2, Whiteboard: [tb31needed])
Attachments
(2 files, 1 obsolete file)
1.75 KB,
patch
|
bzbarsky
:
review+
dveditz
:
approval1.9.2.11+
dveditz
:
approval1.9.1.14+
|
Details | Diff | Splinter Review |
1.78 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
approval2.0+
dveditz
:
approval1.9.2.11+
dveditz
:
approval1.9.1.14+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3
I've created an html signature with the following code:
<img src="http://www.yoursole.com/media/images/logo-for-email-signatures.gif" alt="SOLE" style="display:block; margin: 0 0;" width="140" height="27" border="0" moz-do-not-send="true">
When I compose an email using this signature, the moz-do-not-send attribute is getting removed / ignored. Double-clicking on the image confirms this, since the "Attach this image to the message" checkbox is checked.
When the message is sent, the remote image gets attached automatically (without user intervention), resulting in an unwanted attachment.
The workaround involves, double-clicking the image in the signature and unchecking "Attach this image to the message". Not a huge deal, but less usable than 3.1.2 and earlier.
3.1.2 and before did not behave in this fashion and honoured the moz-do-not-send="true" attribute.
Reproducible: Always
Steps to Reproduce:
1. Use an html signature with a remote image <img src="http://www.yoursole.com/media/images/logo-for-email-signatures.gif" moz-do-not-send="true" />
2. Compose email
3. Send email
Actual Results:
The image gets added to the message as an attachment automatically. Recipients of the email see an attachment even when there are no user-added attachments.
Expected Results:
The moz-do-not-send attribute gets honored (and not ignored). Recipient sees an email with an html signature and working remote image (if their permissions allow that).
Updated•14 years ago
|
Blocks: CVE-2010-2769
blocking-thunderbird3.1: --- → ?
Component: Message Compose Window → Composition
Keywords: regression
Product: Thunderbird → MailNews Core
QA Contact: message-compose → composition
Summary: moz-do-not-send="true" in HTML signature gets ignored when composing emails → moz-do-not-send="true" in HTML signature or pasted HTML gets ignored/removed
Assignee | ||
Comment 2•14 years ago
|
||
What's the purpose behind this attribute?
Reporter | ||
Comment 3•14 years ago
|
||
@Ehsan to either download and attach a remote image (moz-do-not-send="false") or to just leave it as a link (moz-do-not-send="true"
Comment 5•14 years ago
|
||
the workaround does work, but unfortunately this is out of the question when sending lots of emails every day.
hope this gets fixed soon, because i also feel very attached to the quickfilter bar. so i dont want to switch to previous versions..
Confirming Mozilla/5.0 (Windows NT 5.1; rv:2.0b7pre) Gecko/20100915 SeaMonkey/2.1b1pre and moving to Editor. Maybe it's possible to restrict that attribute to MailNews use if it's not wanted elsewhere?On the other hand, it won't do any harm outside that context.This is somewhat different than bug 572637 in that no security violation is reported in the error console.
Status: UNCONFIRMED → NEW
Component: Composition → Editor
Ever confirmed: true
OS: Mac OS X → All
Product: MailNews Core → Core
QA Contact: composition → editor
Hardware: x86 → All
Version: unspecified → 1.9.2 Branch
Comment 7•14 years ago
|
||
(In reply to comment #6)
> Confirming Mozilla/5.0 (Windows NT 5.1; rv:2.0b7pre) Gecko/20100915
> SeaMonkey/2.1b1pre and moving to Editor. Maybe it's possible to restrict that
> attribute to MailNews use if it's not wanted elsewhere?On the other hand, it
> won't do any harm outside that context.This is somewhat different than bug
> 572637 in that no security violation is reported in the error console.
i do not know exactly what you mean, but i do know that moz-do-not-send is an official tag, and because it 'suddenly' doesn't work anymore makes it a bug?
what exactly do you mean with "restrict to mailnews", and "won't do any harm"?
That was directed to Ehsan's comment #2, it's a Mozilla-proprietary attribute only having a meaning within the context of mail and news composition, hence my suggestion - if possible - to allow it there but to disallow it in any other context where HTML code is inserted.
Comment 9•14 years ago
|
||
(In reply to comment #8)
> That was directed to Ehsan's comment #2, it's a Mozilla-proprietary attribute
> only having a meaning within the context of mail and news composition, hence my
> suggestion - if possible - to allow it there but to disallow it in any other
> context where HTML code is inserted.
oh i understand now :)
how come the "mailnews.display.html_sanitizer.allowed_tags" cannot override this bug neither?
i tried the following:
img(alt,title,longdesc,src,moz-do-not-send,style)
Comment 10•14 years ago
|
||
(In reply to comment #9)
> how come the "mailnews.display.html_sanitizer.allowed_tags" cannot override
> this bug neither?
That's the wrong end; this preference only affects the /display/ of HTML messages, the problem occurs during composition already.
Comment 11•14 years ago
|
||
ohh interesting(In reply to comment #10)
> (In reply to comment #9)
> > how come the "mailnews.display.html_sanitizer.allowed_tags" cannot override
> > this bug neither?
>
> That's the wrong end; this preference only affects the /display/ of HTML
> messages, the problem occurs during composition already.
thanks that explains.
when i reply to my own messages containing a correct external image in signature, and send it to myself again, then it leaves the original good image intact, but the new second image gets messed up.
so basicly by replying on email containing external images, it works perfectly fine, just not when creating a new one.
hope this is of any help.
Updated•14 years ago
|
blocking1.9.2: --- → ?
blocking2.0: --- → ?
Comment 12•14 years ago
|
||
Presumably Thunderbird 3.0.x also has the same bug since we landed bug 520189 there as well.
blocking1.9.1: --- → needed
blocking1.9.2: ? → needed
status1.9.1:
--- → wanted
status1.9.2:
--- → wanted
Comment 13•14 years ago
|
||
(In reply to comment #12)
> Presumably Thunderbird 3.0.x also has the same bug since we landed bug 520189
> there as well.
sorry i am not authorized to acces that bug... now my eyes are bugged by the red stuff...
Comment 14•14 years ago
|
||
Gabe: you don't need to follow everything if you don't understand it. Most of these comments are directed at developers.
Assignee | ||
Comment 15•14 years ago
|
||
Please note that this will be NPOTB for Firefox, and it can land on mozilla-central without approval.
Comment 16•14 years ago
|
||
Comment on attachment 476857 [details] [diff] [review]
Patch (v1)
Hmm. OK, but why not just do that unconditionally? I'd rather do that than add ifdefs here.... r=me either way, I guess.
Attachment #476857 -
Flags: review?(bzbarsky) → review+
Updated•14 years ago
|
Whiteboard: [tb31needs]
Assignee | ||
Comment 17•14 years ago
|
||
Status: ASSIGNED → RESOLVED
blocking2.0: ? → ---
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b7
Assignee | ||
Updated•14 years ago
|
Attachment #476857 -
Flags: approval1.9.2.11?
Attachment #476857 -
Flags: approval1.9.1.14?
Comment 18•14 years ago
|
||
This doesn't fix it for me in SeaMonkey tinderbox build #1285032058, Mozilla/5.0 (Windows NT 5.1; rv:2.0b7pre) Gecko/20100920 SeaMonkey/2.1b1pre {BuildID: 20100920182058} which should have the respective fix per http://hg.mozilla.org/mozilla-central/graph/54381
Using the HTML code in the original description as the signature or pasting it directly into Insert > HTML still strips the moz-do-no-send="true" attribute.
Either this needs to be reopened or there is some configuration option missing on TB/SM's side to make the #ifdef effective.
Comment 19•14 years ago
|
||
The build log shows that -D_HAS_EXCEPTIONS=0 -DMOZILLA_INTERNAL_API
-DMOZ_SUITE=1 -DOSTYPE=\"WINNT5.2\" -DOSARCH=WINNT -D_IMPL_NS_LAYOUT
-DNDEBUG -DTRIMMED -UDEBUG -DNDEBUG -DMOZILLA_CLIENT were provided but not -DMOZ_MAIL_NEWS when compiling mozilla/content/base/src/nsContentSink.cpp
Updated•14 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 20•14 years ago
|
||
So I've just realised that MOZ_MAIL_NEWS either needs to be defined in Makefile.in for the compilation, or we remove that ifdef as per comment 16. Not having an ifdef may be slightly better for if we end up with pure libxul configuration and haven't migrated yet.
Comment 21•14 years ago
|
||
As another observation on the patch, just to clarify:
> +GK_ATOM(mozdonotsend, "_moz_do_not_send")
This does match "moz-do-not-send" as well, or just "-moz-do-not-send"?
Note that this attribute doesn't have a leading hyphen.
Comment 22•14 years ago
|
||
Yeah, I think we should just remove the ifdefs (and fix the attr name there, of course!)
Assignee | ||
Comment 23•14 years ago
|
||
Yes! This is what happens when you have ADD and do not read comment 0 carefully, and then submit a patch for a product which you do not build locally. I _think_ I got it right this time, but so did I last time, so it would be great if someone who builds comm-central can test this as well.
That said, with bug 597784, this should no longer be necessary, provided that mailnews is using InsertHTML to inject the signature...
Attachment #477165 -
Flags: review?(bzbarsky)
Attachment #477165 -
Flags: approval2.0?
Comment 24•14 years ago
|
||
Comment on attachment 477165 [details] [diff] [review]
Followup
This is still wrong (underscores vs dashes), no?
Attachment #477165 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 25•14 years ago
|
||
Aren't dashes replaces by underscores in atoms? If not, then yes, this is wrong...
Comment 26•14 years ago
|
||
> Aren't dashes replaces by underscores in atoms?
Not that I know of. Atoms are just strings. The atom _name_ would replace dashes with underscores if needed, since you can't have dashes in an identifier. But the atom value should have dashes.
Assignee | ||
Comment 27•14 years ago
|
||
Attachment #477165 -
Attachment is obsolete: true
Attachment #477208 -
Flags: review?(bzbarsky)
Attachment #477208 -
Flags: approval2.0?
Attachment #477165 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #477208 -
Flags: review?(bzbarsky)
Attachment #477208 -
Flags: review+
Attachment #477208 -
Flags: approval2.0?
Attachment #477208 -
Flags: approval2.0+
Assignee | ||
Comment 28•14 years ago
|
||
Beltzner, what's the landing strategy for bugs which are branch blockers but not b7 blockers. According to the new rules, they can't land on m-c, which may cause them to miss the branch code freeze date...
Assignee | ||
Comment 29•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Attachment #477208 -
Flags: approval1.9.2.11?
Attachment #477208 -
Flags: approval1.9.1.14?
Updated•14 years ago
|
Attachment #476857 -
Flags: approval1.9.2.11?
Attachment #476857 -
Flags: approval1.9.2.11+
Attachment #476857 -
Flags: approval1.9.1.14?
Attachment #476857 -
Flags: approval1.9.1.14+
Comment 30•14 years ago
|
||
Comment on attachment 477208 [details] [diff] [review]
Followup
Approved for 1.9.2.11 and 1.9.1.14, a=dveditz for release-drivers
Attachment #477208 -
Flags: approval1.9.2.11?
Attachment #477208 -
Flags: approval1.9.2.11+
Attachment #477208 -
Flags: approval1.9.1.14?
Attachment #477208 -
Flags: approval1.9.1.14+
Assignee | ||
Comment 31•14 years ago
|
||
Comment 32•14 years ago
|
||
Verified fixed on trunk for Mozilla/5.0 (Windows NT 5.1; rv:2.0b7pre) Gecko/20100923 SeaMonkey/2.1b1pre, both pasting into Insert > HTML and for signature HTML code with the example provided by the bug opener.
Status: RESOLVED → VERIFIED
Comment 33•14 years ago
|
||
Verified fix for 1.9.2 with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11pre) Gecko/20100922 Lanikai/3.1.5pre.
Keywords: verified1.9.2
Comment 34•14 years ago
|
||
Verified for 1.9.1 with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.12) Gecko/20100923 Shredder/3.0.9pre.
Keywords: verified1.9.1
Comment 35•14 years ago
|
||
Hi all,
I checked on my Linux Box -> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11pre) Gecko/20100922 Shredder/3.1.5pre <- but the argument moz-do-not-send "true" is still ignored after opening a fresh "compose e-mail message" window where the .html signature gets attached automatically.
I also tried with a completely fresh profile generated by this release of TB - but still the argument gets ignored when set to true.
Any known workaround besides of editing the image manually in every e-mail?
Thank you and good day to all!
TJ
Comment 36•14 years ago
|
||
> (comment #35) Linux Box -> Mozilla/5.0 (X11; U; Linux i686; en-US;
> rv:1.9.2.11pre) Gecko/20100922 Shredder/3.1.5pre <- but the argument
Since the patch was pushed Wed Sep 22 13:27:12 2010 -0700, it wouldn't be available in the September 22 nightly builds yet. Did you try a later build?
Comment 37•14 years ago
|
||
Hi rsx,
thank you for your reply.
I tried with the TB release from http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-1.9.2/ which was build last night. I thought this is the newest version.
I also recognized that the argument for the "Alternate Text" field of an image is not imported correctly from a html signature, or better said TB lost the value set and saved in the html signature.
Only workaround yet is to compose a new message, double click the image (in the signature) and edit the "Alt Text" and to unmark the checkbox for "Attach this image to the message" (moz-do-not-send).
Can somebody else reproduce this at the moment?
Regards, Tim
Comment 38•14 years ago
|
||
Since this bug is closed, can you open a new report on any other necessary attribute which can no longer be included due to bug 520189?
Comment 39•14 years ago
|
||
working with following version -> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11pre) Gecko/20100926 Lanikai/3.1.5pre
Tested a few minutes ago. Now TB gets all attributes correctly and the signature gets delivered as defined within template.
Thank you rsx. Tim
Updated•14 years ago
|
Whiteboard: [tb31needs] → [tb31needed]
You need to log in
before you can comment on or make changes to this bug.
Description
•