Changeset 147382 in webkit


Ignore:
Timestamp:
Apr 1, 2013 10:31:12 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] IndexedDB: Exceptions not thrown for non-cloneable values
https://bugs.webkit.org/show_bug.cgi?id=113689

Patch by Michael Pruett <michael@68k.org> on 2013-04-01
Reviewed by Kentaro Hara.

Source/WebCore:

ScriptValue::serialize() should not clear exceptions thrown during
serialization. This change is needed to match behavior in V8.

Tests: storage/indexeddb/clone-exception.html

storage/indexeddb/exceptions.html
storage/indexeddb/structured-clone.html

  • bindings/js/ScriptValue.cpp:

(WebCore::ScriptValue::serialize):

LayoutTests:

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r147380 r147382  
     12013-04-01  Michael Pruett  <michael@68k.org>
     2
     3        [JSC] IndexedDB: Exceptions not thrown for non-cloneable values
     4        https://bugs.webkit.org/show_bug.cgi?id=113689
     5
     6        Reviewed by Kentaro Hara.
     7
     8        * platform/gtk/TestExpectations:
     9
    1102013-04-01  Shinya Kawanaka  <shinyak@chromium.org>
    211
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r147374 r147382  
    13841384webkit.org/b/113127 media/track/track-prefer-captions.html [ Timeout ]
    13851385
    1386 webkit.org/b/113689 storage/indexeddb/clone-exception.html [ Failure ]
    1387 webkit.org/b/113689 storage/indexeddb/exceptions.html [ Failure ]
    1388 webkit.org/b/113689 storage/indexeddb/structured-clone.html [ Failure ]
    1389 
    13901386#////////////////////////////////////////////////////////////////////////////////////////
    13911387# End of Tests failing
  • trunk/Source/WebCore/ChangeLog

    r147381 r147382  
     12013-04-01  Michael Pruett  <michael@68k.org>
     2
     3        [JSC] IndexedDB: Exceptions not thrown for non-cloneable values
     4        https://bugs.webkit.org/show_bug.cgi?id=113689
     5
     6        Reviewed by Kentaro Hara.
     7
     8        ScriptValue::serialize() should not clear exceptions thrown during
     9        serialization. This change is needed to match behavior in V8.
     10
     11        Tests: storage/indexeddb/clone-exception.html
     12               storage/indexeddb/exceptions.html
     13               storage/indexeddb/structured-clone.html
     14
     15        * bindings/js/ScriptValue.cpp:
     16        (WebCore::ScriptValue::serialize):
     17
    1182013-04-01  Joshua Bell  <jsbell@chromium.org>
    219
  • trunk/Source/WebCore/bindings/js/ScriptValue.cpp

    r129574 r147382  
    106106PassRefPtr<SerializedScriptValue> ScriptValue::serialize(ScriptState* scriptState, MessagePortArray* messagePorts, ArrayBufferArray* arrayBuffers, bool& didThrow)
    107107{
    108     JSValueRef exception = 0;
    109     RefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(toRef(scriptState), toRef(scriptState, jsValue()), messagePorts, arrayBuffers, &exception);
    110     didThrow = exception ? true : false;
     108    RefPtr<SerializedScriptValue> serializedValue = SerializedScriptValue::create(scriptState, jsValue(), messagePorts, arrayBuffers);
     109    didThrow = scriptState->hadException();
    111110    return serializedValue.release();
    112111}
Note: See TracChangeset for help on using the changeset viewer.