Bug 844169 - Part 2: Rename nsIDOMHTMLIFrameElement.allowfullscreen to allowFullscreen in order to comply with the spec; r=cpearce

This commit is contained in:
Ehsan Akhgari 2013-02-25 20:59:33 -05:00
parent 8adbe42cc9
commit 7fb78bb608
4 changed files with 6 additions and 9 deletions

View File

@ -953,7 +953,7 @@ function startTest() {
return;
}
subwindow.allowfullscreen = true;
subwindow.allowFullscreen = true;
lastElement = null;
text = subwindow.document.getElementById("test-text");

View File

@ -56,7 +56,7 @@ NS_IMPL_STRING_ATTR(HTMLIFrameElement, Name, name)
NS_IMPL_STRING_ATTR(HTMLIFrameElement, Scrolling, scrolling)
NS_IMPL_URI_ATTR(HTMLIFrameElement, Src, src)
NS_IMPL_STRING_ATTR(HTMLIFrameElement, Width, width)
NS_IMPL_BOOL_ATTR(HTMLIFrameElement, Allowfullscreen, allowfullscreen)
NS_IMPL_BOOL_ATTR(HTMLIFrameElement, AllowFullscreen, allowfullscreen)
NS_IMPL_STRING_ATTR(HTMLIFrameElement, Sandbox, sandbox)
void

View File

@ -78,7 +78,7 @@ function exit1(event) {
is(event.target, document, "10. Event target should be full-screen document #2");
is(document.mozFullScreenElement, null, "11. Full-screen element should be null.");
iframe = document.createElement("iframe");
iframe.allowfullscreen = true;
iframe.allowFullscreen = true;
addFullscreenChangeContinuation("enter", enter2);
document.body.appendChild(iframe);
iframe.src = iframeContents;

View File

@ -16,7 +16,7 @@
* http://www.whatwg.org/specs/web-apps/current-work/
*/
[scriptable, uuid(a7bd1e34-3969-47ae-8c1d-2970132ba925)]
[scriptable, uuid(39298082-9657-48be-b119-4dc9c84ce685)]
interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
{
attribute DOMString align;
@ -34,9 +34,6 @@ interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
readonly attribute nsIDOMWindow contentWindow;
attribute DOMString sandbox;
// Mozilla extensions
// iframe elements require the allowfullscreen attribute to be present
// if they're to allow content in the sub document to go into DOM full-screen
// mode. See https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI
attribute boolean allowfullscreen;
attribute boolean allowFullscreen;
};