2011-01-26 Tony Chang <tony@chromium.org>
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Jan 2011 22:52:28 +0000 (22:52 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Jan 2011 22:52:28 +0000 (22:52 +0000)
commitc790a8c66fd1b84d2c5cb5652389354b619eca4d
tree085c3b4c59715f85dffccabb792abf5e01603e9a
parente0c183b1d5d327ea7011335a4638de919a87a016
2011-01-26  Tony Chang  <tony@chromium.org>

        Reviewed by Ryosuke Niwa.

        [gtk] strip NUL characters when copying text/html on GTK+
        https://bugs.webkit.org/show_bug.cgi?id=52508

        * editing/pasteboard/copy-null-characters.html: Make sure we didn't
            change innerHTML (it should still contain the null)
        * platform/gtk/Skipped: Re-enable the test
2011-01-26  Tony Chang  <tony@chromium.org>

        Reviewed by Ryosuke Niwa.

        [gtk] strip NUL characters when copying text/html on GTK+
        https://bugs.webkit.org/show_bug.cgi?id=52508

        Putting NUL characters in the text/html clipboard doesn't work in
        WebKit GTK+ (the pasted value is truncated at the NUL).  Since we're
        already stripping this character for plain text (for Windows), strip
        it in text/html too.

        * editing/MarkupAccumulator.h: mark function as virtual
        * editing/markup.cpp:
        (WebCore::StyledMarkupAccumulator::appendString):
        (WebCore::StyledMarkupAccumulator::takeResults): strip nulls

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@76723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/copy-null-characters.html
LayoutTests/platform/gtk/Skipped
Source/WebCore/ChangeLog
Source/WebCore/editing/MarkupAccumulator.h
Source/WebCore/editing/markup.cpp