Open Bug 1863357 Opened 2 years ago Updated 2 years ago

Optimize resolving of browsingContext id in the parent process when serializing the window

Categories

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

enhancement

Tracking

(Not tracked)

People

(Reporter: Sasha, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: perf)

In the scope of bug1841049 to add context id to the payload when serializing the window, we had to intercept this payload in the parent process to convert the id for top context. At the moment, we always process the payload even if no window was serialized. Similar to Marionette, we could add hasSerializedWindows flag to indicate when we have to intercept (see also bug1274251 for more details).
The problem with BiDi is that we use serialize function recursively, so we might have to restructure the code or create this flag in the modules.

Priority: -- → P3

Henrik also suggested that hasSerializedWindows flag can be actually a counter of how many windows are present in the payload to quit the loop earlier when all expected windows are updated.

You need to log in before you can comment on or make changes to this bug.