[webkit-changes] [WebKit/WebKit] 7bd6b8: Add support for structured cloning of ErrorInstanc...

Chris Dumez noreply at github.com
Thu May 25 19:42:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7bd6b875a6f7276468c9d900282028fc92f38d59
      https://github.com/WebKit/WebKit/commit/7bd6b875a6f7276468c9d900282028fc92f38d59
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt
    M LayoutTests/fast/dom/Window/window-postmessage-clone.html
    M LayoutTests/fast/events/message-port-multi-expected.txt
    M LayoutTests/fast/events/resources/message-port-multi.js
    M LayoutTests/fast/storage/serialized-script-value.html
    M LayoutTests/imported/w3c/web-platform-tests/IndexedDB/structured-clone.any.worker_81-100-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/IndexedDB/structured-clone.any_81-100-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.serviceworker-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.sharedworker-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.worker-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structuredclone_0-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/window-postmessage.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/webappapis/structured-clone/structured-clone.any-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/webappapis/structured-clone/structured-clone.any.worker-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/dedicated-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/shared-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window-expected.txt
    M LayoutTests/storage/indexeddb/resources/structured-clone.js
    M LayoutTests/storage/indexeddb/structured-clone-expected.txt
    M LayoutTests/userscripts/window-onerror-for-isolated-world-1-expected.txt
    M LayoutTests/userscripts/window-onerror-for-isolated-world-2-expected.txt
    M Source/JavaScriptCore/runtime/ErrorInstance.cpp
    M Source/JavaScriptCore/runtime/ErrorInstance.h
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp

  Log Message:
  -----------
  Add support for structured cloning of ErrorInstance objects
https://bugs.webkit.org/show_bug.cgi?id=257268

Reviewed by Yusuke Suzuki and Ryosuke Niwa.

Add support for structured cloning of ErrorInstance objects, per:
- https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal

This aligns our behavior with Blink and Gecko.

* LayoutTests/fast/dom/Window/window-postmessage-clone-expected.txt:
* LayoutTests/fast/dom/Window/window-postmessage-clone.html:
* LayoutTests/fast/events/message-port-multi-expected.txt:
* LayoutTests/fast/events/resources/message-port-multi.js:
* LayoutTests/fast/storage/serialized-script-value.html:
* LayoutTests/imported/w3c/web-platform-tests/IndexedDB/structured-clone.any.worker_81-100-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/IndexedDB/structured-clone.any_81-100-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.serviceworker-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.sharedworker-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/messagechannel.any.worker-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structured-cloning-error-stack-optional.sub.window-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structuredclone_0-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/window-postmessage.window-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/dedicated-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/workers/semantics/structured-clone/shared-expected.txt:
* LayoutTests/storage/indexeddb/resources/structured-clone.js:
* LayoutTests/storage/indexeddb/structured-clone-expected.txt:
* LayoutTests/userscripts/window-onerror-for-isolated-world-1-expected.txt:
* LayoutTests/userscripts/window-onerror-for-isolated-world-2-expected.txt:
* Source/JavaScriptCore/runtime/ErrorInstance.cpp:
(JSC::ErrorInstance::finishCreation):
* Source/JavaScriptCore/runtime/ErrorInstance.h:
(JSC::ErrorInstance::createWithoutStackTrace):
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneSerializer::dumpIfTerminal):
(WebCore::CloneDeserializer::readTerminal):

Canonical link: https://commits.webkit.org/264552@main




More information about the webkit-changes mailing list