<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>
<p dir="auto">(Actually a duplicate of <a href="https://github.com/electron/electron/issues/10040" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/10040/hovercard">this closed issue</a>)</p>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong> 4.0.4</li>
<li><strong>Operating System:</strong> Windows 10</li>
<li><strong>Last Known Working Electron version:</strong>: n/a</li>
</ul>
<p dir="auto"><code class="notranslate">WebContents</code> apparently has a <code class="notranslate">page-title-updated</code> event that isn't documented. We were latching the handler onto the <a href="https://electronjs.org/docs/api/webview-tag#event-page-title-updated" rel="nofollow"><code class="notranslate">webview</code></a>, but we're in the process of transitioning from a <code class="notranslate">webview</code> to a <code class="notranslate">BrowserView</code> which doesn't have that event.</p>
<p dir="auto">I haven't tested this, but I was told that we can latch onto the event on the webcontents (<a href="https://github.com/electron/electron/blob/0755857a0c1c76453391659c6d5ac6218dc9286f/atom/browser/api/atom_api_web_contents.cc#L1049">source</a>), but it's not documented.</p>
<p dir="auto">Can it be?</p>
<ul dir="auto">
<li>Electron Version: 2.0.2</li>
<li>Operating System (Platform and Version): Ubuntu 18.04</li>
<li>Last known working Electron version: 1.8.7</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Drag and drop should not cause a crash.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
Electron crashes on drag and drop.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Use <a href="https://github.com/alkorgun/electron-2.0.2_dnd_crash_issue">my repo</a> and try to drag the image embedded in the app page.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/alkorgun/electron-2.0.2_dnd_crash_issue
$ cd electron-2.0.2_dnd_crash_issue
$ npm install
$ npm run-script start"><pre class="notranslate">$ git clone https://github.com/alkorgun/electron-2.0.2_dnd_crash_issue
$ <span class="pl-c1">cd</span> electron-2.0.2_dnd_crash_issue
$ npm install
$ npm run-script start</pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3319200/41772704-1dc0fd68-7633-11e8-8824-ddc4809ef134.png"><img src="https://user-images.githubusercontent.com/3319200/41772704-1dc0fd68-7633-11e8-8824-ddc4809ef134.png" alt="screenshot from 2018-06-22 15-43-30" style="max-width: 100%;"></a></p>