Open Bug 1821401 Opened 1 year ago Updated 1 year ago

[messagehandler] Pass BrowsingContext instances and not just their id's between processes

Categories

(Remote Protocol :: Agent, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

(Blocks 1 open bug)

Details

As of now most of the BiDi modules pass a browsing context id through the message handler network. As advised by platform folks it should be avoided given that the other process would have to run BrowsingContext.get() to actually retrieve the context.

Instead we should pass the BrowsingContext instance directly. Via structured cloning it will automatically be converted back to a BrowsingContext in the other process.

Not sure if this would work out of the box or if the message handler framework would need to be refactored first.

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