Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: LayoutTests/fast/events/before-unload-crash.html

Issue 1171363002: Fix null pointer dereference in ChromeClientImpl::openBeforeUnloadConfirmPanelDelegate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/events/before-unload-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src="../../resources/js-test.js"></script>
2 <script>
3 function test(iframe) {
4 iframe.contentWindow.location.href = "resources/does-not-exist.html";
5 testPassed('if no crash');
6 }
7 </script>
8 <iframe id=testIframe onload="test(this)"></iframe>
9 <script>
10 description('Detaching a frame in beforeunload event handler should not crash.') ;
11 var testIframe = document.getElementById('testIframe');
12 testIframe.contentWindow.onbeforeunload = function(event) {
13 testIframe.parentNode.removeChild(testIframe);
14 event.returnValue = 'beforeunload';
15 }
16 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/before-unload-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698