2008-09-09 08:43:21 -07:00
|
|
|
<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">
|
2012-11-07 17:24:39 -08:00
|
|
|
function plugin_binding_attached(event) {
|
|
|
|
window.parent.plugin_binding_attached(event);
|
2008-09-09 08:43:21 -07:00
|
|
|
}
|
2012-11-07 17:24:39 -08:00
|
|
|
document.addEventListener("PluginBindingAttached", plugin_binding_attached, true, true);
|
2008-09-09 08:43:21 -07:00
|
|
|
</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-test"></div>
|
|
|
|
<div><embed id="plugin2" style="width: 100px; height: 100px" src="data:application/x-test,test"></div>
|
|
|
|
|
2012-08-20 16:16:02 -07:00
|
|
|
<!-- So do objects with a type/uri and no content -->
|
2008-09-09 08:43:21 -07:00
|
|
|
<div><object id="plugin3" style="width: 100px; height: 100px" type="application/x-test"></object></div>
|
|
|
|
<div><object id="plugin4" style="width: 100px; height: 100px" data="data:application/x-test,test"></object></div>
|
|
|
|
|
|
|
|
<!-- Params are not considered content -->
|
2013-06-11 07:58:42 -07:00
|
|
|
<div><object id="plugin5" style="width: 100px; height: 100px" type="application/x-test">
|
2008-09-09 08:43:21 -07:00
|
|
|
<param name="foo" value="bar">
|
|
|
|
</object></div>
|
2013-06-11 07:58:42 -07:00
|
|
|
<div><object id="plugin6" style="width: 100px; height: 100px" data="data:application/x-test,test">
|
2008-09-09 08:43:21 -07:00
|
|
|
<param name="foo" value="bar">
|
|
|
|
</object></div>
|
|
|
|
|
|
|
|
<!-- Nor is whitespace -->
|
2013-06-11 07:58:42 -07:00
|
|
|
<div><object id="plugin7" style="width: 100px; height: 100px" type="application/x-test">
|
2008-09-09 08:43:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
</object></div>
|
2013-06-11 07:58:42 -07:00
|
|
|
<div><object id="plugin8" style="width: 100px; height: 100px" data="data:application/x-test,test">
|
2008-09-09 08:43:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
</object></div>
|
|
|
|
|
|
|
|
<!-- No errors or psuedo classes for objects with fallback content -->
|
|
|
|
<div><object id="fallback1" style="width: 100px; height: 100px" type="application/x-test">
|
|
|
|
<p>Fallback content</p>
|
|
|
|
</object></div>
|
|
|
|
<div><object id="fallback2" style="width: 100px; height: 100px" data="data:application/x-test,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-test">
|
2013-06-11 07:58:42 -07:00
|
|
|
<embed id="plugin9" style="width: 100px; height: 100px" type="application/x-test">
|
2008-09-09 08:43:21 -07:00
|
|
|
</object></div>
|
|
|
|
<div><object id="fallback4" style="width: 100px; height: 100px" data="data:application/x-test,test">
|
2013-06-11 07:58:42 -07:00
|
|
|
<embed id="plugin10" style="width: 100px; height: 100px" type="application/x-test">
|
2012-08-20 16:16:02 -07:00
|
|
|
</object></div>
|
|
|
|
|
|
|
|
<!-- pluginurl was removed in bug 548133, and should not affect fallback -->
|
2013-06-11 07:58:42 -07:00
|
|
|
<div><object id="plugin11" style="width: 100px; height: 100px" data="data:application/x-test,test">
|
2012-08-20 16:16:02 -07:00
|
|
|
<param name="pluginurl">
|
|
|
|
</object></div>
|
|
|
|
|
|
|
|
<div><object id="fallback5" style="width: 100px; height: 100px" data="data:application/x-test,test">
|
|
|
|
<param name="pluginurl">
|
|
|
|
Fallback content
|
2008-09-09 08:43:21 -07:00
|
|
|
</object></div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|