Open Bug 1779026 Opened 2 years ago Updated 2 years ago

Support other protocols to deserialize errors in MessageHandlerFrameParent

Categories

(Remote Protocol :: WebDriver BiDi, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

Details

In Bug 1770492 we are extending MessageHandler to serialize not only MessageHandlerErrors but also WebDriverErrors. Those errors will be sent from the Child to the Parent actor after being serialized using toJSON, available on both MessageHandler and WebDriver error base classes.

In the parent actor, when deserializing the error we explicitly call WebDriverError.fromJSON unless the error was a MessageHandler error. We should not hardcode the protocol here. Either the error should contain the information about which base class it is from, so that RemoteError.jsm can deserialize it properly. Or we need to handle that at protocol level, similarly to what we plan to do for the ModuleCache (Bug 1722464).

See Also: → 1722464
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.