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

Side by Side Diff: LayoutTests/plugins/plugin-cancel-sync-xhr.html

Issue 1129743002: Gracefully handle backdoor cancellations of synchronous resource fetches. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/plugins/plugin-cancel-sync-xhr-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 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script>
3 <embed id="testPlugin" logfirstsetwindow="true" type="application/x-webkit-test- netscape">
4 <script>
5 description("Verify that sync XHRs cancelled by sync NPN message does not crash. ");
6
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
10 }
11
12 function runTest()
13 {
14 var plugin = document.getElementById("testPlugin");
15 var x = new XMLHttpRequest();
16 x.open('GET', '/resources/not-there', false);
17 // Injecting a call to Evaluate() here will cause the message
18 // corresponding to logfirstsetwindow's "testRunner.notifyDone()",
19 // to be synchronously handled during the sync XHR. Which in turn
20 // triggers the cancellation of the load.
21 plugin.testEvaluate("1+2;");
22 x.send(null);
23 }
24 setTimeout(runTest, 1);
25 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/plugins/plugin-cancel-sync-xhr-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698