On Fri, Oct 1, 2021 at 12:45 PM Gijs Kruitbosch <
gkrui...@mozilla.com> wrote:
>
> Is there a bug on file to replace privileged code calling Cu.cloneInto()
> with a dummy scope/sandbox argument (ie using that as a cheap way to do
> a structured clone) and similar workarounds with this standards-based
> one?
Not that I am aware of yet. Mike opened a bug for replacing the
`JSON.parse(JSON.stringify(x))` pattern:
https://bugzilla.mozilla.org/show_bug.cgi?id=1733813
>And in what release cycle would it be safe to start using this in
> privileged code? (we normally wait a cycle or two, I think)
>
We are shipping this everywhere in 94, considering we have to wait for
the soft freeze, 95 should be fine.
-Tom