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

Side by Side Diff: LayoutTests/fast/plugins/plugin-placeholder-structured.html

Issue 698533003: Implement support for closing shadow DOM plugin placeholders. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mkwst comments Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <!-- The message inserted below should be shown with some suitable style. --> 3 <style>
4 <object type="application/x-fake-plugin"></object> 4 applet, embed, object { display: block; }
5 </style>
6
7 <!-- The placeholders inserted below should be shown with some suitable style. - ->
8 <object id="plugin1" type="application/x-fake-plugin"></object>
9 <object id="plugin2" type="application/x-fake-plugin"></object>
5 10
6 <script> 11 <script>
7 var plugin = document.querySelector("object"); 12 internals.forcePluginPlaceholder(document.getElementById('plugin1'), { message: "Sorry, but your plugin couldn't be loaded." });
8 internals.forcePluginPlaceholder(plugin, { message: "Sorry, but your plugin coul dn't be loaded." }); 13 internals.forcePluginPlaceholder(document.getElementById('plugin2'), { message: "Sorry, but your plugin couldn't be loaded.", closeable: true });
9 </script> 14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698