Because of the Safari problems with structured clone algorithm we can not send objects with methods between threads.
Error objects has some methods inside core definition.
That was causing DataCloneError: The object could not be cloned..
Paths
| Differential D8116 Authored by kamil on Jun 6 2023, 9:54 AM.
Details
Summary Because of the Safari problems with structured clone algorithm we can not send objects with methods between threads. That was causing DataCloneError: The object could not be cloned.. Test Plan Check is error are properly handled.
Diff Detail
Event Timelinekamil held this revision as a draft. Herald added a subscriber: ashoat. · View Herald TranscriptJun 6 2023, 9:54 AM2023-06-06 09:54:17 (UTC-7) kamil added a child revision: D8117: [web] initialize `localforage` on main thread.Jun 6 2023, 10:07 AM2023-06-06 10:07:06 (UTC-7) Harbormaster completed remote builds in B20053: Diff 27483.Jun 6 2023, 10:11 AM2023-06-06 10:11:24 (UTC-7) This revision is now accepted and ready to land.Jun 13 2023, 3:15 AM2023-06-13 03:15:12 (UTC-7) Closed by commit rCOMMab9fe33b4536: [web-db] change Error type to string (authored by kamil). · Explain WhyJun 14 2023, 10:14 AM2023-06-14 10:14:34 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 27758 web/database/utils/WorkerConnectionProxy.js
web/database/worker/db-worker.js
web/types/worker-types.js
|