Skip to content

desktop_webview_window-v0.4.1

Choose a tag to compare

0.4.1

  • Add addJavaScriptMessageHandler, whose JavaScriptMessage carries the page's data, origin and url. url is the sending page's current URL, including history.pushState changes, so handlers no longer need navigationState.url, which may lag behind. It is null unless it belongs to origin.
  • Add targetOrigin to postMessage. As with window.postMessage, the receiving page drops the message before any listener runs unless its own origin matches, so a reply never reaches a page the window navigated to in the meantime. Page scripts cannot read a targeted message before the check on any platform.