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•2 years ago
|
Assignee | ||
Comment 1•2 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•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/ca668bf5c75e Test using `structuredClone` in xpcshell. r=smaug
Comment 4•2 years ago
|
||
bugherder |
Description
•