Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 21862acf2c3fe3f948e78e94272d039337d61bfe
      
https://github.com/WebKit/WebKit/commit/21862acf2c3fe3f948e78e94272d039337d61bfe
  Author: Helmut Januschka <[email protected]>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structuredclone_0-expected.txt
    M Source/JavaScriptCore/runtime/StructuredCloneTags.h
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp
    M Source/WebCore/dom/QuotaExceededError.h

  Log Message:
  -----------
  Preserve QuotaExceededError when structured cloning
https://bugs.webkit.org/show_bug.cgi?id=324176

Reviewed by Keith Miller.

Preserve QuotaExceededError quota and requested attributes through structured
cloning.

Use a dedicated additive serialization tag instead of changing the existing
DOMException payload, so the structured-clone major version remains 16 and
previously persisted DOMException values remain readable. A DOMException whose
name string happens to be QuotaExceededError continues to clone as an ordinary
DOMException.

Encode absent quota and requested values as NaN and store the corresponding
runtime fields as Markable<double>. Pass the serialization tag directly to the
DOMException deserializer.

Tests: 
imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structuredclone_0.html
       fast/storage/serialized-script-value.html

* 
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/structuredclone_0-expected.txt:
* Source/JavaScriptCore/runtime/StructuredCloneTags.h:
(JSC::name):
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::isTypeExposedToGlobalObject):
(WebCore::CloneSerializer::dumpDOMException):
(WebCore::CloneDeserializer::readDOMException):
(WebCore::CloneDeserializer::readDerivedTerminal):
* Source/WebCore/dom/QuotaExceededError.h:

Co-authored-by: Yoav Weiss <[email protected]>
Canonical link: https://commits.webkit.org/322631@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to