Bug 1335475 - Fix test_chrome_over_plugin_window to not load plugins from a data: URI, r=dvander
MozReview-Commit-ID: 8VAisndGqYI
--- a/layout/base/tests/chrome/chrome.ini
+++ b/layout/base/tests/chrome/chrome.ini
@@ -1,17 +1,16 @@
[DEFAULT]
skip-if = os == 'android'
support-files =
animated.gif
blue-32x32.png
bug495648.rdf
bug551434_childframe.html
chrome_content_integration_window.xul
- chrome_over_plugin_window.xul
default_background_window.xul
dialog_with_positioning_window.xul
no_clip_iframe_subdoc.html
no_clip_iframe_window.xul
printpreview_bug396024_helper.xul
printpreview_bug482976_helper.xul
printpreview_helper.xul
file_bug1018265.xul
@@ -28,16 +27,19 @@ support-files =
[test_bug708062.html]
[test_bug812817.xul]
[test_bug847890_paintFlashing.html]
[test_bug1018265.xul]
[test_bug1041200.xul]
support-files=bug1041200_window.html
[test_chrome_content_integration.xul]
[test_chrome_over_plugin.xul]
+support-files =
+ chrome_over_plugin_window.xul
+ chrome_over_plugin_window_frame.html
[test_default_background.xul]
[test_dialog_with_positioning.html]
tags = openwindow
[test_fixed_bg_scrolling_repaints.html]
[test_leaf_layers_partition_browser_window.xul]
skip-if = (!debug) || (toolkit == "cocoa") || (os == "linux") # Disabled on Mac and Linux because of Bug 992311
[test_no_clip_iframe.xul]
[test_prerendered_transforms.html]
--- a/layout/base/tests/chrome/chrome_over_plugin_window.xul
+++ b/layout/base/tests/chrome/chrome_over_plugin_window.xul
@@ -2,21 +2,17 @@
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<window title="Content/chrome integration subwindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="runTests()">\
<!-- We're mainly testing that a) translucent chrome elements cause the plugin to be clipped away and
b) translucent content elements do NOT cause the plugin to be clipped away -->
<stack style="height:100px; width:150px;">
<iframe type="content" style="border:none;" id="f"
- src="data:text/html,<embed id='e' type='application/x-test' wmode='window'
- style='position:absolute;left:0;top:0;width:100px;height:100px'></embed>
- <div style='position:absolute;left:0;top:80px;width:100px;height:10px;background:rgba(0,0,128,0.5)'></div>
- <div style='position:absolute;left:0;top:90px;width:100px;height:10px;background:blue'></div>
- "/>
+ src="http://example.org/chrome/layout/base/tests/chrome/chrome_over_plugin_window_frame.html"/>
<vbox>
<vbox style="height:25px; background:yellow;"/> <!-- plugin should be covered here -->
<vbox style="height:25px; background:rgba(0,128,0,0.5);"/> <!-- plugin should be covered here -->
<vbox style="height:50px;"/> <!-- plugin should be visible here -->
</vbox>
</stack>
<script type="application/javascript">
new file mode 100644
--- /dev/null
+++ b/layout/base/tests/chrome/chrome_over_plugin_window_frame.html
@@ -0,0 +1,4 @@
+<embed id="e" type="application/x-test" wmode="window"
+ style="position:absolute;left:0;top:0;width:100px;height:100px"></embed>
+<div style="position:absolute;left:0;top:80px;width:100px;height:10px;background:rgba(0,0,128,0.5)"></div>
+<div style="position:absolute;left:0;top:90px;width:100px;height:10px;background:blue"></div>