WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
13146
REGRESSION: Newlines in javascript results in bookmarks are stripped out
https://bugs.webkit.org/show_bug.cgi?id=13146
Summary
REGRESSION: Newlines in javascript results in bookmarks are stripped out
Gibbons Burke
Reported
2007-03-21 12:50:36 PDT
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
>
Attachments
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2007-03-21 22:48:59 PDT
Confirmed with a local debug build of WebKit
r20361
using Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).
Mark Rowe (bdash)
Comment 2
2007-03-23 00:24:51 PDT
<
rdar://problem/5083647
>
Alexey Proskuryakov
Comment 3
2007-03-23 12:39:17 PDT
FWIW, I'm seeing the same behavior with Firefox.
Gibbons Burke
Comment 4
2007-05-14 10:42:30 PDT
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.
Gibbons Burke
Comment 5
2007-07-06 14:12:23 PDT
The problem exists in Safari 3.0.x also.
Oliver Hunt
Comment 6
2007-07-13 22:05:21 PDT
ap says this occurs in firefox as well, this is a p2
Alexey Proskuryakov
Comment 7
2007-12-30 15:58:38 PST
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'
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug