mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
61a933f3ec
--HG-- extra : rebase_source : c7b1d6e6f50f35598d8ca98c1527673542c6798d
86 lines
3.0 KiB
HTML
86 lines
3.0 KiB
HTML
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
embed,object {
|
|
border: 1px solid black;
|
|
}
|
|
|
|
embed:-moz-handler-disabled,
|
|
object:-moz-handler-disabled {
|
|
border-style: dotted !important;
|
|
}
|
|
|
|
embed:-moz-handler-blocked,
|
|
object:-moz-handler-blocked {
|
|
border-style: dashed !important;
|
|
}
|
|
|
|
embed:-moz-type-unsupported,
|
|
object:-moz-type-unsupported {
|
|
border-style: none !important;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function plugin_binding_attached(event) {
|
|
window.parent.plugin_binding_attached(event);
|
|
}
|
|
document.addEventListener("PluginBindingAttached", plugin_binding_attached, true, true);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- Embeds always fire events and have the pseudo class attached -->
|
|
<div><embed id="plugin1" style="width: 100px; height: 100px" type="application/x-unknown"></div>
|
|
<div><embed id="plugin2" style="width: 100px; height: 100px" src="data:application/x-unknown,test"></div>
|
|
|
|
<!-- So do objects with a type/uri and no content -->
|
|
<div><object id="plugin3" style="width: 100px; height: 100px" type="application/x-unknown"></object></div>
|
|
<div><object id="plugin4" style="width: 100px; height: 100px" data="data:application/x-unknown,test"></object></div>
|
|
|
|
<!-- Params are not considered content -->
|
|
<div><object id="plugin5" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
<param name="foo" value="bar">
|
|
</object></div>
|
|
<div><object id="plugin6" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
|
|
<param name="foo" value="bar">
|
|
</object></div>
|
|
|
|
<!-- Nor is whitespace -->
|
|
<div><object id="plugin7" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
|
|
|
|
</object></div>
|
|
<div><object id="plugin8" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
|
|
|
|
|
|
</object></div>
|
|
|
|
<!-- No errors or psuedo classes for objects with fallback content -->
|
|
<div><object id="fallback1" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
<p>Fallback content</p>
|
|
</object></div>
|
|
<div><object id="fallback2" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
|
|
<p>Fallback content</p>
|
|
</object></div>
|
|
|
|
<!-- Even other plugins are considered content so no errors dispatched from these
|
|
objects, but the inner embeds do get processed -->
|
|
<div><object id="fallback3" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
<embed id="plugin9" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
</object></div>
|
|
<div><object id="fallback4" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
|
|
<embed id="plugin10" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
</object></div>
|
|
|
|
<!-- pluginurl was removed in bug 548133, and should not affect fallback -->
|
|
<div><object id="plugin11" style="width: 100px; height: 100px" type="application/x-unknown">
|
|
<param name="pluginurl">
|
|
</object></div>
|
|
|
|
<div><object id="fallback5" style="width: 100px; height: 100px" type="applicatin/x-unknown">
|
|
<param name="pluginurl">
|
|
Fallback content
|
|
</object></div>
|
|
|
|
</body>
|
|
</html>
|