I have a bookmark on my Safari bookmark bar with the javascript in the bug report's URL in the URL of the bookmark. When I click this bookmark button it gets the page title and the URL and creates a new mail message with the page's title in the Subject: header, and the title and page's URL in the body of the mail message. For example, if I click the bookmark button on this bug report page in the latest production version of Safari, it results in the following email in Mail.app: Mail Header: Subject: Enter Bug: WebKit Body: Enter Bug: WebKit <http://bugs.webkit.org/enter_bug.cgi> In recent (last 3 weeks at least) Nightly Builds of the Webkit.app, however, the new line is being stripped out of the resulting text string, so that the body looks like this: Enter Bug: WebKit<http://bugs.webkit.org/enter_bug.cgi>
Confirmed with a local debug build of WebKit r20361 using Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).
<rdar://problem/5083647>
FWIW, I'm seeing the same behavior with Firefox.
I'm not sure if this is a new bug or if it is related, but as of the latest nightly build (r21448), the javascript included in this has stopped working entirely. The Subject line and Contents of the email generated contains nothing but the first letter in the title of the web page from which the script was engaged.
The problem exists in Safari 3.0.x also.
ap says this occurs in firefox as well, this is a p2
I'm not sure if this is a bug, but in any case, here is a workaround: javascript:location.href='mailto:?SUBJECT='+document.title+%20'&BODY='+document.title+'%250A%3C'+escape(location.href)+'%3E'