<p dir="auto">Electron Version 7<br>
Operating System: Windows<br>
Last Known Working Electron version: 6.1.1</p>
<p dir="auto">Loading from a data URL doesn't work anymore:</p>
<p dir="auto">win.loadURL('data:text/html;charset=utf-8 ...', {baseURLForDataURL: ... })</p>
<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong></li>
<li>7.0.0</li>
<li><strong>Operating System:</strong></li>
<li>Arch Linux</li>
<li><strong>Last Known Working Electron version:</strong></li>
<li>6.0.10</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>

<p dir="auto">Opening a <code class="notranslate">webview</code> with a preset source as in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;webview src=&quot;https://github.com&quot;&gt;&lt;/webview&gt;
&lt;script&gt;
webview.loadURL(
   `data:text/html;charset=utf-8;base64,
    PGgxPkhBTExPPC9oMT4=
  `, { baseURLForDataURL: `file://home/` })
// the base64 string is just &lt;h1&gt;HALLO&lt;/h1&gt;
&lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;webview src="https://github.com"&gt;&lt;/webview&gt;
&lt;script&gt;
webview.loadURL(
   `data:text/html;charset=utf-8;base64,
    PGgxPkhBTExPPC9oMT4=
  `, { baseURLForDataURL: `file://home/` })
// the base64 string is just &lt;h1&gt;HALLO&lt;/h1&gt;
&lt;/script&gt;
</code></pre></div>
<p dir="auto">loads the github URL and then reloads the webview with <code class="notranslate">HALLO</code>.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Electron crashes</p>

<h3 dir="auto">To Reproduce</h3>
<p dir="auto">See this repo:<br>
<a href="https://github.com/burningTyger/webview-bug">https://github.com/burningTyger/webview-bug</a></p>




<h3 dir="auto">Screenshots</h3>

<h3 dir="auto">Additional Information</h3>