Open lutien opened 8 months ago
So this is basically saving a roundtrip / race vs (pseudocode):
fn call_function_with_window(function) {
window_handle = script.evaluate("window", context)
assert window_handle.context == context
script.call_function(function, [window_handle.handle], context)
}
Right now, we can only deserialize
WindowProxy
usinghandle
but when we serialize it we get back context id which we could use for deserialization. In the other words, this issue is about making it possible to send as a script argument a value{context: "foo", type: "window"}
and have it resolve to the currentWindowProxy
in that navigable.