<p dir="auto">I want to implement the cases that when any link is clicked in a <code class="notranslate">webview</code>, it's opened in the default browser. But <code class="notranslate">webview</code> only has the <a href="https://github.com/atom/electron/blob/master/docs/api/web-view-tag.md#event-new-window"><code class="notranslate">new-window</code> event</a> which is fired only when new window is opened  (e.g., with <code class="notranslate">_target</code>). I wonder how do I support the case for links that don't open a new window?</p>
<p dir="auto">It would be very useful to get events related to navigation:</p>
<ul dir="auto">
<li><code class="notranslate">will-navigate</code>: when the webview is about to navigate (url have been changed but no requests have been emited yet). It could eventually be cancelled with <code class="notranslate">event.preventDefault()</code>)</li>
<li><code class="notranslate">page-url-set</code>: like <code class="notranslate">page-title-set</code> but for url. It is different than <code class="notranslate">before-navigate</code> because it should also handle anchor changes and HTML5 url set without navigating (with <code class="notranslate">history.pushState</code> and <code class="notranslate">history.replaceState</code>)</li>
<li><code class="notranslate">did-navigate</code>: after the navigation has occured (i.e. when a new entry have been pushed to history and canGoBack/canGoForward/canGo... may have changed)</li>
</ul>