⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 119479 in webkit


Ignore:
Timestamp:
Jun 5, 2012, 3:57:00 AM (14 years ago)
Author:
kinuko@chromium.org
Message:

Chromium tests: "Add support for the Blob constructor" [r115582] regressed blob layout tests
https://bugs.webkit.org/show_bug.cgi?id=85174

Reviewed by Kentaro Hara.

Source/WebCore:

This fixes a crash problem which could happen when the constructor is
given an array which contains String-type item(s).

There're still some Text mismatches between v8 results and
JSC results, most of them are v8 not throwing exception
when it is given an object whose toString() method throws
exception. (The issue will be addresse in a separate patch.)

Test: fast/files/blob-constructor.html

  • bindings/v8/custom/V8BlobCustom.cpp:

(WebCore::V8Blob::constructorCallback):

LayoutTests:

Changing blob-constructor.html label from CRASH to TEXT.

  • platform/chromium/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r119476 r119479  
     12012-06-04  Kinuko Yasuda  <kinuko@chromium.org>
     2
     3        Chromium tests: "Add support for the Blob constructor" [r115582] regressed blob layout tests
     4        https://bugs.webkit.org/show_bug.cgi?id=85174
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Changing blob-constructor.html label from CRASH to TEXT.
     9
     10        * platform/chromium/TestExpectations:
     11
    1122012-06-05  Kenichi Ishibashi  <bashi@chromium.org>
    213
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r119476 r119479  
    36133613BUGWK85106 SLOW : tables/mozilla/other/slashlogo.html = PASS
    36143614
    3615 BUGWK85174 : fast/files/blob-constructor.html = CRASH
     3615BUGWK85174 : fast/files/blob-constructor.html = TEXT
    36163616BUGWK85174 : fast/dom/HTMLAnchorElement/anchor-download-unset.html = TIMEOUT
    36173617BUGWK85174 : fast/filesystem/file-writer-gc-blob.html = TIMEOUT
  • trunk/Source/WebCore/ChangeLog

    r119478 r119479  
     12012-06-04  Kinuko Yasuda  <kinuko@chromium.org>
     2
     3        Chromium tests: "Add support for the Blob constructor" [r115582] regressed blob layout tests
     4        https://bugs.webkit.org/show_bug.cgi?id=85174
     5
     6        Reviewed by Kentaro Hara.
     7
     8        This fixes a crash problem which could happen when the constructor is
     9        given an array which contains String-type item(s).
     10
     11        There're still some Text mismatches between v8 results and
     12        JSC results, most of them are v8 not throwing exception
     13        when it is given an object whose toString() method throws
     14        exception.  (The issue will be addresse in a separate patch.)
     15
     16        Test: fast/files/blob-constructor.html
     17
     18        * bindings/v8/custom/V8BlobCustom.cpp:
     19        (WebCore::V8Blob::constructorCallback):
     20
    1212012-06-05  Kentaro Hara  <haraken@chromium.org>
    222
  • trunk/Source/WebCore/bindings/v8/custom/V8BlobCustom.cpp

    r119001 r119479  
    127127            blobBuilder->append(blob);
    128128        } else {
    129             EXCEPTION_BLOCK(String, stringValue, toWebCoreString(item->ToString()));
     129            EXCEPTION_BLOCK(String, stringValue, toWebCoreString(item));
    130130            blobBuilder->append(stringValue, endings, ASSERT_NO_EXCEPTION);
    131131        }
Note: See TracChangeset for help on using the changeset viewer.