Bug 1005806 - HTMLInputElement.controllers should be [ChromeOnly]. r=bz

This commit is contained in:
Bobby Holley 2014-05-05 10:49:24 -07:00
parent 3bdf6e645e
commit 3ff83a1058
3 changed files with 29 additions and 1 deletions

View File

@ -143,7 +143,7 @@ partial interface HTMLInputElement {
[Throws]
void setSelectionRange(long start, long end, optional DOMString direction);
[GetterThrows]
[GetterThrows, ChromeOnly]
readonly attribute nsIControllers controllers;
[GetterThrows]
readonly attribute long textLength;

View File

@ -90,6 +90,7 @@ support-files =
[test_bug960820.html]
[test_bug986542.html]
[test_bug993423.html]
[test_bug1005806.html]
[test_crosscompartment_weakmap.html]
[test_frameWrapping.html]
# The JS test component we use below is only available in debug builds.

View File

@ -0,0 +1,27 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1005806
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 1005806</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1005806">Mozilla Bug 1005806</a>
<p id="display"></p>
<div id="content" style="display: none">
<input id="ipt"></input>
</div>
<pre id="test">
</pre>
<script type="application/javascript">
/** Test for Bug 1005806 **/
is(typeof document.getElementById('ipt').controllers, 'undefined', "Controllers property should not appear for content");
</script>
</body>
</html>