content/base/test/chrome/file_bug391728_2.html
author Margaret Leibovic <margaret.leibovic@gmail.com>
Mon, 25 Aug 2014 15:28:10 -0700
changeset 216776 8d7b3bfaf3ab9bb3c32afb51d9714246d7c854f4
parent 146142 97f46bb7b72b20061e0476c329d089414f1e9366
permissions -rw-r--r--
Bug 996753 - Telemetry probes for settings pages. r=liuche, a=sledru

<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>