title: loadUrl error "ERR_ABORTED (-3) error" can't be catched
body: <p>I have an page that is behind an Auth0 login. When you have the proper session, you are automatically redirected to a final page.</p>
  <p>The problem is I am doing this using <code>loadURL</code> on Electron and the <code>loadURL</code> <a href="https://github.com/electron/electron/blob/c41b8d536b2d886abbe739374c0a46f99242a894/lib/browser/navigation-controller.ts#L77-L86" rel="nofollow noreferrer">throw a <code>Uncaught (in promise) Error: ERR_ABORTED (-3)</code></a>.</p>
  <p>I would like to rescue this error, because visually everything is working well on my app and I do not see a way to fix this error.</p>
  <p>But I am not able to rescue with <a href="https://www.electronjs.org/docs/api/web-contents#event-did-fail-load" rel="nofollow noreferrer"><code>did-load-fail</code></a>. Here is a code snippet I have on my app.</p>
  <pre class="lang-js prettyprint-override"><code>  const { remote } = require('electron');
    const win = new remote.BrowserWindow({
      width: 800,
      height: 600,
      show: false,
      webPreferences: {
        partition: LOGIN_PARTITION,
        nodeIntegration: false,
      },
    });
    win.webContents.on('did-finish-load', () =&gt; {
      console.log('finish-load'); // triggered twice
    });
    win.webContents.on('did-fail-load', () =&gt; {
      console.log('fail-load'); // never triggered
    });
    try {
      win.loadURL(urlThatContainsAutoRedirect);
    } catch (error) {
      console.log('catch loadUrl'); // never triggered
    }
    win.show();
  </code></pre>
  <p>How could I avoid this error or rescue it properly?</p>