Bug 207258

Summary: [GTK] imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window.html fails since r255315
Product: WebKit Reporter: Diego Pino <dpino>
Component: CanvasAssignee: Diego Pino <dpino>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[fast-cq] Patch none

Description Diego Pino 2020-02-05 04:25:04 PST
* imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/transfer-errors.window.html [ Failure ]

Diff:

-PASS Cannot transfer the same OffscreenCanvas twice 
-FAIL Serialize should make the OffscreenCanvas detached, so it cannot be transferred again promise_test: Unhandled rejection with value: object "DataCloneError: The object can not be cloned."
-FAIL Serialize should throw before a detached OffscreenCanvas is found promise_test: Unhandled rejection with value: object "DataCloneError: The object can not be cloned."
-FAIL Cannot transfer OffscreenCanvas detached while the message was serialized assert_true: expected true got false
+FAIL Cannot transfer the same OffscreenCanvas twice assert_throws: function "() => self.postMessage({ get whatever() { throw new Error("You should not have gotten to this point") } }, "*", transferList)" threw 
+FAIL Serialize should make the OffscreenCanvas detached, so it cannot be transferred again assert_throws: function "() => self.postMessage(null, "*", [transferable])" threw object "InvalidStateError: The object
+FAIL Serialize should throw before a detached OffscreenCanvas is found assert_throws: function "() => self.postMessage({ get whatever() { throw customError } }, "*", [transferable])" threw object "InvalidStateE
+FAIL Cannot transfer OffscreenCanvas detached while the message was serialized assert_throws: function "() => self.postMessage(message, "*", [transferable])" did not throw
Comment 1 Diego Pino 2022-01-02 22:25:39 PST
Created attachment 448206 [details]
[fast-cq] Patch
Comment 2 EWS 2022-01-02 22:31:32 PST
Committed r287530 (245665@main): <https://commits.webkit.org/245665@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448206 [details].
Comment 3 Radar WebKit Bug Importer 2022-01-02 22:32:22 PST
<rdar://problem/87059099>