You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.