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

Side by Side 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 unified diff | 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 »
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/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <div id="d">
5 <iframe id="test-plugin-iframe-id" src="resources/x-blink-test-plugin-iframe.htm l"></iframe>
6 </div>
7 <script>
8 async_test(t => {
9 var mimeType;
10 document.getElementById("test-plugin-iframe-id").onload = t.step_func(() => {
11 mimeType = navigator.mimeTypes["application/x-blink-test-plugin"];
12 assert_equals(mimeType.enabledPlugin.name, "Blink Test Plugin");
13 document.getElementById("d").innerHTML = "";
14 requestAnimationFrame(t.step_func(() => {
15 assert_equals(mimeType.enabledPlugin.name, "Blink Test Plugin");
16 t.done();
17 }));
18 });
19 }, "Test enabledPlugin after iframe with the plugin is detached.");
20 </script>
21
OLDNEW
« 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