Open Bug 1616279 Opened 6 years ago Updated 3 years ago

Make JSWindowActor structured cloning fails error message more clear

Categories

(Core :: DOM: Content Processes, task, P3)

task

Tracking

()

People

(Reporter: jdai, Unassigned)

Details

+++ This bug was initially created as a clone of Bug 1613932 comment 12 +++

The error is suppressed inside GetParamsForMessage at https://searchfox.org/mozilla-central/rev/0439db3a39faddb90197a87cc184c57dcbf0a770/dom/base/nsFrameMessageManager.cpp#395 and the resulting warning misses useful information. Though even the original exception doesn't seem to have e.g. a path into the object it was passed indicating which property was unserializable. (so if I pass {foo: { bar: {docShell}}} as the data param to sendAsyncMessage, I'd like to be told something like data.foo.bar is of type nsIDocShell and is not serializable).

Edit: and, ideally, on infra that should just throw, not paper over it by using JSON serialization instead.

The bug assignee didn't login in Bugzilla in the last 7 months.
:jld, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: jdai → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(jld)
Component: IPC → DOM: Content Processes
Flags: needinfo?(jld)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.