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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/plugins/get-url-notify-on-removal.html

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/plugins/get-url-notify-on-removal.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/plugins/get-url-notify-on-removal.html b/third_party/WebKit/LayoutTests/http/tests/plugins/get-url-notify-on-removal.html
deleted file mode 100644
index d2a01bd8bf3bd29ca1c30f93ebab479757b16981..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/plugins/get-url-notify-on-removal.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<body>
-This tests that NPP_URLNotify gets called exactly once for canceled streams on plugin removal.
-<div id="result">FAILURE</div>
-<embed name="plg" type="application/x-webkit-test-netscape"></embed>
-<script>
- var callbackRun = false;
- function callback()
- {
- if (callbackRun) {
- result.textContent = "FAILURE - callback run twice";
- return;
- }
-
- callbackRun = true;
- result.textContent = "SUCCESS";
- // Force the plugin to spin a nested event loop.
- alert("Request completed");
- // Don't stop the test until a small delay, in case callback is called again.
- setTimeout(notify, 50);
- }
- function notify()
- {
- if (window.testRunner)
- testRunner.notifyDone();
- }
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- plg.getURLNotify("resources/slow-resource.pl", null, "callback");
- // Remove the plugin after a short delay (to give the resource time to
- // propagate through the system to the browser).
- setTimeout(function() {
- plg.parentNode.removeChild(plg);
- }, 50);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698