Open Bug 1383100 Opened 7 years ago Updated 4 years ago

Replace cloneInto with StructuredCloneHolder in devtools/server/actors/webconsole/content-process-forward.js

Categories

(DevTools :: General, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: julienw, Unassigned)

References

Details

Attachments

(1 file)

As discussed in bug 1380449 we should try to use StructuredCloneHolder instead of cloneInto so that we don't get the clone penalty in the calling thread.
This patch seems to trigger crashes for console usages in Workers.
See Also: → 1380449
Does this need a review, eg from :kmag?
Assignee: nobody → felash
Flags: needinfo?(felash)
Priority: -- → P2
My previous try run [1] showed crashes on Windows and I didn't have the time to investigate this as I've been away for a week.

Also the patch in bug 1380449 fixes the bigger issue so this one is now IMO a nice to have, that's why I didn't want to invest much more time in it.

I just rebased, resolved conflicts, push to mozreview and push a new try [2]. If the crashes have vanished we could move forward with a review request. Otherwise I'll leave the bug for someone else.

[1] https://treeherder.mozilla.org/#/jobs?repo=try&revision=15e850234416bf7d0867bc38d1c8d2314e184cff
[2] https://treeherder.mozilla.org/#/jobs?repo=try&revision=be96f6395025d327e905be42288d84c0038f8d7e
Flags: needinfo?(felash)
There is still a crash and I don't think I have the necessary knowledge to find the reason :( Unassigning.
Assignee: felash → nobody
Priority: P2 → P3
Product: Toolkit → WebExtensions

This bug is about this line: https://searchfox.org/mozilla-central/rev/919607a3610222099fbfb0113c98b77888ebcbfb/devtools/server/actors/webconsole/content-process-forward.js#96

This doesn't look like an extensions bug, moving over to the correct product/component.

Severity: normal → --
Priority: P3 → --
Product: WebExtensions → DevTools
Summary: Replace cloneInto by StructuredCloneHolder in ContentProcessSingleton.js → Replace cloneInto with StructuredCloneHolder in devtools/server/actors/webconsole/content-process-forward.js
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: