remote.getCurrentWindow returns incomplete window object
Nantris opened this issue · 3 comments
Thanks for your reply, but that's what we're already doing, and it does not work as remote
used to work. Almost every property is missing. Where's alwaysOnTop
? Where's everything else besides these five properties?
devToolsWebContents
name
setBounds
_events
_eventsCount
remote
works via custom getters and setters. The contextBridge
API that is exposed to users does not support getters and setters.
Ref: https://github.com/electron/electron/blob/main/shell/renderer/api/electron_api_context_bridge.cc#L482-L487
Ref: https://github.com/electron/electron/blob/main/shell/renderer/api/electron_api_context_bridge.cc#L591-L592
Very appreciative for the reply @MarshallOfSound. Bummer to not have access to all the old features of remote
for debugging though; it made life so much easier when debugging certain issues.
I can't test this currently, but I don't suppose that we could transmit the entire BrowserWindow
across contextBridge
either, right?