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

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

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad rebase. Created 4 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
(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

Powered by Google App Engine
This is Rietveld 408576698