Test using structuredClone in xpcshell tests
Categories
(Core :: XPConnect, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox99 | --- | fixed |
People
(Reporter: mathew.hodson, Assigned: mathew.hodson)
References
Details
Attachments
(1 file)
I wanted to use structuredClone in browser/components/sessionstore/test/unit/test_shutdown_cleanup.js but I get an error.
ERROR Unexpected exception ReferenceError: structuredClone is not defined at C:/Users/Mathew/source/repos/mozilla-central/obj-x86_64-pc-mingw32/_tests/xpcshell/browser/components/sessionstore/test/unit/test_shutdown_cleanup.js:46
writeAndParse@C:/Users/Mathew/source/repos/mozilla-central/obj-x86_64-pc-mingw32/_tests/xpcshell/browser/components/sessionstore/test/unit/test_shutdown_cleanup.js:46:14
test_shistory_cap_none@C:/Users/Mathew/source/repos/mozilla-central/obj-x86_64-pc-mingw32/_tests/xpcshell/browser/components/sessionstore/test/unit/test_shutdown_cleanup.js:58:25
_do_main@c:\users\mathew\source\repos\mozilla-central\testing\xpcshell\head.js:240:6
_execute_test@c:\users\mathew\source\repos\mozilla-central\testing\xpcshell\head.js:604:5
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
I figured out that it can be used by first calling Cu.importGlobalProperties(["structuredClone"]), but there aren't any uses in the tree currently, so I think we should add a test for this.
| Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
| bugherder | ||
Description
•