Changeset 69470 in webkit


Ignore:
Timestamp:
Oct 10, 2010 12:48:58 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-10 Daniel Cheng <dcheng@chromium.org>

Reviewed by Adam Barth.

[chromium] Clipboard no longer accepts 'text' as a synonym for 'text/plain'
https://bugs.webkit.org/show_bug.cgi?id=47419

This was a regression introduced in r68807. Updated the layout test to
check for this case.

  • editing/pasteboard/dataTransfer-setData-getData-expected.txt:
  • editing/pasteboard/script-tests/dataTransfer-setData-getData.js: (runTest):

2010-10-10 Daniel Cheng <dcheng@chromium.org>

Reviewed by Adam Barth.

[chromium] Clipboard no longer accepts 'text' as a synonym for 'text/plain'
https://bugs.webkit.org/show_bug.cgi?id=47419

This was a regression introduced in r68807. mimeTypeText had the incorrect
value.

Test: editing/pasteboard/dataTransfer-setData-getData.html

  • platform/chromium/ClipboardMimeTypes.cpp:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r69469 r69470  
     12010-10-10  Daniel Cheng  <dcheng@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        [chromium] Clipboard no longer accepts 'text' as a synonym for 'text/plain'
     6        https://bugs.webkit.org/show_bug.cgi?id=47419
     7
     8        This was a regression introduced in r68807. Updated the layout test to
     9        check for this case.
     10
     11        * editing/pasteboard/dataTransfer-setData-getData-expected.txt:
     12        * editing/pasteboard/script-tests/dataTransfer-setData-getData.js:
     13        (runTest):
     14
    1152010-10-10  Mihai Parparita  <mihaip@chromium.org>
    216
  • trunk/LayoutTests/editing/pasteboard/dataTransfer-setData-getData-expected.txt

    r69138 r69470  
    3737PASS getDataResultType is "string"
    3838PASS getDataResult is "Lorem ipsum dolor sit amet."
     39--- Test set 'text/plain', get 'text':
     40PASS getDataResultType is "string"
     41PASS getDataResult is "Lorem ipsum dolor sit amet."
     42--- Test set 'text', get 'text/plain':
     43PASS getDataResultType is "string"
     44PASS getDataResult is "Lorem ipsum dolor sit amet."
     45--- Test set/get 'text':
     46PASS getDataResultType is "string"
     47PASS getDataResult is "Lorem ipsum dolor sit amet."
    3948PASS successfullyParsed is true
    4049
  • trunk/LayoutTests/editing/pasteboard/script-tests/dataTransfer-setData-getData.js

    r69138 r69470  
    118118    test("text/plain", "Lorem ipsum dolor sit amet.",
    119119         "text/plain", "Lorem ipsum dolor sit amet.");
     120
     121    debug("--- Test set 'text/plain', get 'text':");
     122    test("text/plain", "Lorem ipsum dolor sit amet.",
     123         "text", "Lorem ipsum dolor sit amet.");
     124
     125    debug("--- Test set 'text', get 'text/plain':");
     126    test("text", "Lorem ipsum dolor sit amet.",
     127         "text/plain", "Lorem ipsum dolor sit amet.");
     128
     129    debug("--- Test set/get 'text':");
     130    test("text", "Lorem ipsum dolor sit amet.",
     131         "text", "Lorem ipsum dolor sit amet.");
    120132}
    121133
  • trunk/WebCore/ChangeLog

    r69463 r69470  
     12010-10-10  Daniel Cheng  <dcheng@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        [chromium] Clipboard no longer accepts 'text' as a synonym for 'text/plain'
     6        https://bugs.webkit.org/show_bug.cgi?id=47419
     7
     8        This was a regression introduced in r68807. mimeTypeText had the incorrect
     9        value.
     10
     11        Test: editing/pasteboard/dataTransfer-setData-getData.html
     12
     13        * platform/chromium/ClipboardMimeTypes.cpp:
     14
    1152010-10-09  Eric Uhrhane  <ericu@chromium.org>
    216
  • trunk/WebCore/platform/chromium/ClipboardMimeTypes.cpp

    r68807 r69470  
    3434namespace WebCore {
    3535
    36 const char mimeTypeText[] = "text/plain";
     36const char mimeTypeText[] = "text";
    3737const char mimeTypeTextPlain[] = "text/plain";
    3838const char mimeTypeTextPlainEtc[] = "text/plain;";
Note: See TracChangeset for help on using the changeset viewer.