WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
224865
DOMException should be Serializable
https://bugs.webkit.org/show_bug.cgi?id=224865
Summary
DOMException should be Serializable
Chris Lord
Reported
2021-04-21 03:49:35 PDT
According to the spec, DOMException is Serializable, but this isn't currently implemented:
https://heycam.github.io/webidl/#dfn-DOMException
This is causing some WPT Worker tests to fail.
Attachments
Patch
(2.42 KB, patch)
2021-04-21 04:53 PDT
,
Chris Lord
no flags
Details
Formatted Diff
Diff
Patch
(8.68 KB, patch)
2021-04-21 05:41 PDT
,
Chris Lord
no flags
Details
Formatted Diff
Diff
Patch
(9.60 KB, patch)
2021-04-21 06:33 PDT
,
Chris Lord
no flags
Details
Formatted Diff
Diff
Patch
(13.84 KB, patch)
2021-04-21 09:18 PDT
,
Chris Lord
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(13.75 KB, patch)
2021-04-21 09:22 PDT
,
Chris Lord
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Chris Lord
Comment 1
2021-04-21 04:53:49 PDT
Created
attachment 426671
[details]
Patch
Chris Lord
Comment 2
2021-04-21 04:56:03 PDT
Uploading the patch to determine if it's already tested (it is tested indirectly in css-font-loading WPT tests, but that relies on
bug 224178
and I'd like to check this in before that) - if it isn't, I'll write a test.
Chris Lord
Comment 3
2021-04-21 05:41:21 PDT
Created
attachment 426673
[details]
Patch
Chris Lord
Comment 4
2021-04-21 06:33:02 PDT
Created
attachment 426676
[details]
Patch
Chris Dumez
Comment 5
2021-04-21 07:36:08 PDT
Comment on
attachment 426676
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=426676&action=review
r=me with comments.
> Source/WebCore/bindings/js/SerializedScriptValue.cpp:1389 > + write(DOMExceptionTag);
I think it would be good to move this logic to a separate dumpDOMException() function, to follow the pattern used by other types.
> Source/WebCore/bindings/js/SerializedScriptValue.cpp:3595 > + CachedStringRef name;
Ditto. It would be good to move this logic to a separate readDOMException() function.
> LayoutTests/storage/indexeddb/resources/structured-clone.js:-631 > - evalAndExpectException("store.put(new DOMException, 'key')", "DOMException.DATA_CLONE_ERR");
Instead of simply drop it the check, can we switch it into a check that is supposed to succeed? It seems this test checks checks types that succeed and fail.
Chris Lord
Comment 6
2021-04-21 09:18:24 PDT
Created
attachment 426699
[details]
Patch
Chris Lord
Comment 7
2021-04-21 09:22:52 PDT
Created
attachment 426700
[details]
Patch
EWS
Comment 8
2021-04-21 10:43:57 PDT
Committed
r276372
(
236849@main
): <
https://commits.webkit.org/236849@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 426700
[details]
.
Radar WebKit Bug Importer
Comment 9
2021-04-22 18:17:38 PDT
<
rdar://problem/77049131
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug