RESOLVED FIXED 63620
View source mode has extra space at EOL
https://bugs.webkit.org/show_bug.cgi?id=63620
Summary View source mode has extra space at EOL
Keishi Hattori
Reported 2011-06-29 05:07:57 PDT
View source mode has extra space at EOL. If you select the source and copy+paste, the result is different from the original. Also the last line is empty when there is a "\n" right before EOF. It should show a line, just as an text editor would.
Attachments
patch (8.22 KB, patch)
2011-06-29 05:19 PDT, Keishi Hattori
no flags
Archive of layout-test-results from ec2-cr-linux-02 (1.42 MB, application/zip)
2011-06-29 05:36 PDT, WebKit Review Bot
no flags
fixed patch (8.27 KB, patch)
2011-06-29 18:32 PDT, Keishi Hattori
no flags
used String() (8.28 KB, patch)
2011-06-29 19:28 PDT, Keishi Hattori
no flags
Keishi Hattori
Comment 1 2011-06-29 05:19:57 PDT
Keishi Hattori
Comment 2 2011-06-29 05:21:38 PDT
WebKit Review Bot
Comment 3 2011-06-29 05:36:36 PDT
Comment on attachment 99075 [details] patch Attachment 99075 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/8959189 New failing tests: fast/frames/viewsource-linebreak.html
WebKit Review Bot
Comment 4 2011-06-29 05:36:41 PDT
Created attachment 99078 [details] Archive of layout-test-results from ec2-cr-linux-02 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: ec2-cr-linux-02 Port: Chromium Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Adam Barth
Comment 5 2011-06-29 08:31:00 PDT
Comment on attachment 99075 [details] patch Thank you fix this bug. It's really annoying. If you upload a new patch that passes the tests, I'll be happy to review.
Keishi Hattori
Comment 6 2011-06-29 18:32:01 PDT
Created attachment 99200 [details] fixed patch
Keishi Hattori
Comment 7 2011-06-29 18:40:50 PDT
(In reply to comment #6) > Created an attachment (id=99200) [details] > fixed patch In the previous patch, I must have changed my test after generating the expected results.
Adam Barth
Comment 8 2011-06-29 19:14:02 PDT
Comment on attachment 99200 [details] fixed patch View in context: https://bugs.webkit.org/attachment.cgi?id=99200&action=review > Source/WebCore/html/HTMLViewSourceDocument.cpp:115 > + addLine(""); Maybe String() to avoid an allocation?
Keishi Hattori
Comment 9 2011-06-29 19:28:49 PDT
Created attachment 99214 [details] used String()
WebKit Review Bot
Comment 10 2011-06-29 20:03:31 PDT
The commit-queue encountered the following flaky tests while processing attachment 99214 [details]: fast/flexbox/box-orient-button.html bug 63682 (author: hamaji@chromium.org) The commit-queue is continuing to process your patch.
WebKit Review Bot
Comment 11 2011-06-29 20:05:17 PDT
Comment on attachment 99214 [details] used String() Clearing flags on attachment: 99214 Committed r90082: <http://trac.webkit.org/changeset/90082>
WebKit Review Bot
Comment 12 2011-06-29 20:05:25 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.