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

Side by Side Diff: LayoutTests/fast/events/xhr-onclick-crash.html

Issue 206223005: Forbid setting responseType on all sync XHRs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: waitUntilDone Created 6 years, 9 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
OLDNEW
1 This test passes if it doesn't crash. 1 This test passes if it doesn't crash.
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 5
6 testRunner.waitUntilDone();
6 xhr = new XMLHttpRequest(); 7 xhr = new XMLHttpRequest();
7 xhr.open('GET', 'resources/onclick.html', false); 8 xhr.open('GET', 'resources/onclick.html', true);
8 xhr.responseType = 'document'; 9 xhr.responseType = 'document';
9 xhr.onload = function () { r = this.responseXML; } 10 xhr.onload = function () {
11 var r = this.responseXML;
12 var td = r.getElementById('foo');
13 td.children[0].onclick;
14 testRunner.notifyDone();
15 };
10 xhr.send(); 16 xhr.send();
11 td = r.getElementById('foo');
12 td.children[0].onclick;
13 </script> 17 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/event-on-xhr-document.html ('k') | LayoutTests/fast/html/imports/import-defaultView.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698