Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <style type="text/css"> |
michael@0 | 4 | embed,object { |
michael@0 | 5 | border: 1px solid black; |
michael@0 | 6 | } |
michael@0 | 7 | |
michael@0 | 8 | embed:-moz-handler-disabled, |
michael@0 | 9 | object:-moz-handler-disabled { |
michael@0 | 10 | border-style: dotted !important; |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | embed:-moz-handler-blocked, |
michael@0 | 14 | object:-moz-handler-blocked { |
michael@0 | 15 | border-style: dashed !important; |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | embed:-moz-type-unsupported, |
michael@0 | 19 | object:-moz-type-unsupported { |
michael@0 | 20 | border-style: none !important; |
michael@0 | 21 | } |
michael@0 | 22 | </style> |
michael@0 | 23 | <script type="text/javascript"> |
michael@0 | 24 | function plugin_binding_attached(event) { |
michael@0 | 25 | window.parent.plugin_binding_attached(event); |
michael@0 | 26 | } |
michael@0 | 27 | document.addEventListener("PluginBindingAttached", plugin_binding_attached, true, true); |
michael@0 | 28 | </script> |
michael@0 | 29 | </head> |
michael@0 | 30 | <body> |
michael@0 | 31 | <!-- Embeds always fire events and have the pseudo class attached --> |
michael@0 | 32 | <div><embed id="plugin1" style="width: 100px; height: 100px" type="application/x-test"></div> |
michael@0 | 33 | <div><embed id="plugin2" style="width: 100px; height: 100px" src="data:application/x-test,test"></div> |
michael@0 | 34 | |
michael@0 | 35 | <!-- So do objects with a type/uri and no content --> |
michael@0 | 36 | <div><object id="plugin3" style="width: 100px; height: 100px" type="application/x-test"></object></div> |
michael@0 | 37 | <div><object id="plugin4" style="width: 100px; height: 100px" data="data:application/x-test,test"></object></div> |
michael@0 | 38 | |
michael@0 | 39 | <!-- Params are not considered content --> |
michael@0 | 40 | <div><object id="plugin5" style="width: 100px; height: 100px" type="application/x-test"> |
michael@0 | 41 | <param name="foo" value="bar"> |
michael@0 | 42 | </object></div> |
michael@0 | 43 | <div><object id="plugin6" style="width: 100px; height: 100px" data="data:application/x-test,test"> |
michael@0 | 44 | <param name="foo" value="bar"> |
michael@0 | 45 | </object></div> |
michael@0 | 46 | |
michael@0 | 47 | <!-- Nor is whitespace --> |
michael@0 | 48 | <div><object id="plugin7" style="width: 100px; height: 100px" type="application/x-test"> |
michael@0 | 49 | |
michael@0 | 50 | |
michael@0 | 51 | </object></div> |
michael@0 | 52 | <div><object id="plugin8" style="width: 100px; height: 100px" data="data:application/x-test,test"> |
michael@0 | 53 | |
michael@0 | 54 | |
michael@0 | 55 | </object></div> |
michael@0 | 56 | |
michael@0 | 57 | <!-- No errors or psuedo classes for objects with fallback content --> |
michael@0 | 58 | <div><object id="fallback1" style="width: 100px; height: 100px" type="application/x-test"> |
michael@0 | 59 | <p>Fallback content</p> |
michael@0 | 60 | </object></div> |
michael@0 | 61 | <div><object id="fallback2" style="width: 100px; height: 100px" data="data:application/x-test,test"> |
michael@0 | 62 | <p>Fallback content</p> |
michael@0 | 63 | </object></div> |
michael@0 | 64 | |
michael@0 | 65 | <!-- Even other plugins are considered content so no errors dispatched from these |
michael@0 | 66 | objects, but the inner embeds do get processed --> |
michael@0 | 67 | <div><object id="fallback3" style="width: 100px; height: 100px" type="application/x-test"> |
michael@0 | 68 | <embed id="plugin9" style="width: 100px; height: 100px" type="application/x-test"> |
michael@0 | 69 | </object></div> |
michael@0 | 70 | <div><object id="fallback4" style="width: 100px; height: 100px" data="data:application/x-test,test"> |
michael@0 | 71 | <embed id="plugin10" style="width: 100px; height: 100px" type="application/x-test"> |
michael@0 | 72 | </object></div> |
michael@0 | 73 | |
michael@0 | 74 | <!-- pluginurl was removed in bug 548133, and should not affect fallback --> |
michael@0 | 75 | <div><object id="plugin11" style="width: 100px; height: 100px" data="data:application/x-test,test"> |
michael@0 | 76 | <param name="pluginurl"> |
michael@0 | 77 | </object></div> |
michael@0 | 78 | |
michael@0 | 79 | <div><object id="fallback5" style="width: 100px; height: 100px" data="data:application/x-test,test"> |
michael@0 | 80 | <param name="pluginurl"> |
michael@0 | 81 | Fallback content |
michael@0 | 82 | </object></div> |
michael@0 | 83 | |
michael@0 | 84 | </body> |
michael@0 | 85 | </html> |