Bug 1302976 part 1 - Make tests not rely on chrome privilege of fullscreen. r?jmaher
MozReview-Commit-ID: Db1A61zVdqD
--- a/dom/tests/mochitest/chrome/file_MozDomFullscreen.html
+++ b/dom/tests/mochitest/chrome/file_MozDomFullscreen.html
@@ -1,8 +1,8 @@
<html>
<head>
</head>
<body style="background-color: blue;">
<p>Outer doc</p>
-<iframe id="innerFrame" src="http://mochi.test:8888/"></iframe>
+<iframe id="innerFrame" allowfullscreen src="http://mochi.test:8888/"></iframe>
</body>
</html>
--- a/layout/style/test/chrome/chrome.ini
+++ b/layout/style/test/chrome/chrome.ini
@@ -10,13 +10,14 @@ support-files =
mismatch.png
[test_author_specified_style.html]
[test_bug418986-2.xul]
[test_bug1157097.html]
[test_bug1160724.xul]
[test_bug535806.xul]
[test_display_mode.html]
+tags = fullscreen
[test_display_mode_reflow.html]
tags = fullscreen
[test_hover.html]
skip-if = buildapp == 'mulet'
[test_moz_document_rules.html]
--- a/layout/style/test/chrome/test_display_mode.html
+++ b/layout/style/test/chrome/test_display_mode.html
@@ -78,17 +78,17 @@ add_task(function* () {
ok(!document.mozFullScreenElement, "window exited fullscreen");
shouldNotApply("all and (display-mode: fullscreen)");
shouldApply("all and (display-mode: browser)");
});
</script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1104916">Mozilla Bug 1104916</a>
-<iframe id="subdoc" src="http://mochi.test:8888/tests/layout/style/test/media_queries_iframe.html"></iframe>
+<iframe id="subdoc" allowfullscreen src="http://mochi.test:8888/tests/layout/style/test/media_queries_iframe.html"></iframe>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
</html>
--- a/testing/mochitest/harness.xul
+++ b/testing/mochitest/harness.xul
@@ -79,17 +79,17 @@ function linkAndHookup(links) {
<h2 id="fail">Todo: <span id="todo-count">0</span></h2>
</div>
<div class="clear"></div>
<div id="current-test">
<b>Currently Executing: <span id="current-test-path">_</span></b>
</div>
<div class="clear"></div>
<div class="frameholder">
- <iframe type="content" id="testframe" width="550" height="350"></iframe>
+ <iframe type="content" id="testframe" allowfullscreen="true" width="550" height="350"></iframe>
</div>
<div class="clear"></div>
<div class="toggle">
<a href="#" id="toggleNonTests">Show Non-Tests</a>
<br />
</div>
<div id="wrapper">
<table cellpadding="0" cellspacing="0">