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

Unified Diff: third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html

Issue 2157883002: Cache the mimeTypes and plugins DOM objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated after dry run. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/navigator-plugins-mimeTypes-comparison.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html
diff --git a/third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html b/third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html
new file mode 100644
index 0000000000000000000000000000000000000000..d69502d68a06264a66d658a367020660b9045f9c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/plugins/enabledPlugin-after-iframe-detached.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div id="d">
+<iframe id="test-plugin-iframe-id" src="resources/x-blink-test-plugin-iframe.html"></iframe>
+</div>
+<script>
+async_test(t => {
+ var mimeType;
+ document.getElementById("test-plugin-iframe-id").onload = t.step_func(() => {
+ mimeType = navigator.mimeTypes["application/x-blink-test-plugin"];
+ assert_equals(mimeType.enabledPlugin.name, "Blink Test Plugin");
+ document.getElementById("d").innerHTML = "";
+ requestAnimationFrame(t.step_func(() => {
+ assert_equals(mimeType.enabledPlugin.name, "Blink Test Plugin");
+ t.done();
+ }));
+ });
+}, "Test enabledPlugin after iframe with the plugin is detached.");
+</script>
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/navigator-plugins-mimeTypes-comparison.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698