Make remote.getCurrentWindow() work in <webview>