Bug 864845 part 2. Make window.content chromeonly in nightly. r=mystor

MozReview-Commit-ID: Q7hTmngEgI
This commit is contained in:
Boris Zbarsky 2017-09-12 15:33:10 -04:00
Родитель 8419a57f7a
Коммит 6b4983d30a
3 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -27,9 +27,8 @@ window.addEventListener("message", receiveMessage);
function runtests() function runtests()
{ {
is(messages.size, 3, "received the right number of messages."); is(messages.size, 2, "received the right number of messages.");
is(messages.get("test"), "success", "test in frame failed."); is(messages.get("test"), "success", "test in frame failed.");
isnot(messages.get("content"), "success", "parent[\"content\"] should be the WebIDL property of Window.");
isnot(messages.get("dump"), "success", "parent[\"dump\"] should be the WebIDL property of Window."); isnot(messages.get("dump"), "success", "parent[\"dump\"] should be the WebIDL property of Window.");
SimpleTest.finish(); SimpleTest.finish();
@ -40,8 +39,6 @@ SimpleTest.waitForExplicitFinish();
<br> <br>
<iframe name="test" src="http://example.org:80/tests/dom/tests/mochitest/bugs/iframe_bug440572.html"></iframe> <iframe name="test" src="http://example.org:80/tests/dom/tests/mochitest/bugs/iframe_bug440572.html"></iframe>
<br> <br>
<iframe name="content" src="http://example.org:80/tests/dom/tests/mochitest/bugs/iframe_bug440572.html"></iframe>
<br>
<iframe name="dump" src="http://example.org:80/tests/dom/tests/mochitest/bugs/iframe_bug440572.html"></iframe> <iframe name="dump" src="http://example.org:80/tests/dom/tests/mochitest/bugs/iframe_bug440572.html"></iframe>
</body> </body>
</html> </html>

Просмотреть файл

@ -336,7 +336,11 @@ partial interface Window {
optional DOMString options = "", optional DOMString options = "",
any... extraArguments); any... extraArguments);
[Replaceable, Throws, NeedsCallerType] readonly attribute object? content; [
#ifdef NIGHTLY_BUILD
ChromeOnly,
#endif
Replaceable, Throws, NeedsCallerType] readonly attribute object? content;
[Throws, ChromeOnly] any getInterface(IID iid); [Throws, ChromeOnly] any getInterface(IID iid);

Просмотреть файл

@ -113,7 +113,7 @@ function testScroll(target, stepSize, opt_reportFunc, opt_numSteps) {
} }
function rAF(fn) { function rAF(fn) {
return content.requestAnimationFrame(fn); return win.requestAnimationFrame(fn);
} }
function P_rAF() { function P_rAF() {