content/base/test/chrome/file_bug391728_2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/test/chrome/file_bug391728_2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,85 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +<style type="text/css">
     1.7 +embed,object {
     1.8 +  border: 1px solid black;
     1.9 +}
    1.10 +
    1.11 +embed:-moz-handler-disabled,
    1.12 +object:-moz-handler-disabled {
    1.13 +  border-style: dotted !important;
    1.14 +}
    1.15 +
    1.16 +embed:-moz-handler-blocked,
    1.17 +object:-moz-handler-blocked {
    1.18 +  border-style: dashed !important;
    1.19 +}
    1.20 +
    1.21 +embed:-moz-type-unsupported,
    1.22 +object:-moz-type-unsupported {
    1.23 +  border-style: none !important;
    1.24 +}
    1.25 +</style>
    1.26 +<script type="text/javascript">
    1.27 +function plugin_binding_attached(event) {
    1.28 +  window.parent.plugin_binding_attached(event);
    1.29 +}
    1.30 +document.addEventListener("PluginBindingAttached", plugin_binding_attached, true, true);
    1.31 +</script>
    1.32 +</head>
    1.33 +<body>
    1.34 +<!-- Embeds always fire events and have the pseudo class attached -->
    1.35 +<div><embed id="plugin1" style="width: 100px; height: 100px" type="application/x-unknown"></div>
    1.36 +<div><embed id="plugin2" style="width: 100px; height: 100px" src="data:application/x-unknown,test"></div>
    1.37 +
    1.38 +<!-- So do objects with a type/uri and no content -->
    1.39 +<div><object id="plugin3" style="width: 100px; height: 100px" type="application/x-unknown"></object></div>
    1.40 +<div><object id="plugin4" style="width: 100px; height: 100px" data="data:application/x-unknown,test"></object></div>
    1.41 +
    1.42 +<!-- Params are not considered content -->
    1.43 +<div><object id="plugin5" style="width: 100px; height: 100px" type="application/x-unknown">
    1.44 +  <param name="foo" value="bar">
    1.45 +</object></div>
    1.46 +<div><object id="plugin6" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
    1.47 +  <param name="foo" value="bar">
    1.48 +</object></div>
    1.49 +
    1.50 +<!-- Nor is whitespace -->
    1.51 +<div><object id="plugin7" style="width: 100px; height: 100px" type="application/x-unknown">
    1.52 +
    1.53 +  
    1.54 +</object></div>
    1.55 +<div><object id="plugin8" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
    1.56 +
    1.57 +  
    1.58 +</object></div>
    1.59 +
    1.60 +<!-- No errors or psuedo classes for objects with fallback content -->
    1.61 +<div><object id="fallback1" style="width: 100px; height: 100px" type="application/x-unknown">
    1.62 +  <p>Fallback content</p>
    1.63 +</object></div>
    1.64 +<div><object id="fallback2" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
    1.65 +  <p>Fallback content</p>
    1.66 +</object></div>
    1.67 +
    1.68 +<!-- Even other plugins are considered content so no errors dispatched from these
    1.69 +     objects, but the inner embeds do get processed -->
    1.70 +<div><object id="fallback3" style="width: 100px; height: 100px" type="application/x-unknown">
    1.71 +  <embed id="plugin9" style="width: 100px; height: 100px" type="application/x-unknown">
    1.72 +</object></div>
    1.73 +<div><object id="fallback4" style="width: 100px; height: 100px" data="data:application/x-unknown,test">
    1.74 +  <embed id="plugin10" style="width: 100px; height: 100px" type="application/x-unknown">
    1.75 +</object></div>
    1.76 +
    1.77 +<!-- pluginurl was removed in bug 548133, and should not affect fallback -->
    1.78 +<div><object id="plugin11" style="width: 100px; height: 100px" type="application/x-unknown">
    1.79 +    <param name="pluginurl">
    1.80 +</object></div>
    1.81 +
    1.82 +<div><object id="fallback5" style="width: 100px; height: 100px" type="applicatin/x-unknown">
    1.83 +    <param name="pluginurl">
    1.84 +    Fallback content
    1.85 +</object></div>
    1.86 +
    1.87 +</body>
    1.88 +</html>

mercurial