Changeset 143533 in webkit
- Timestamp:
- Feb 20, 2013 4:32:26 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 6 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r143520 r143533 1 2013-02-20 Vincent Scheib <scheib@chromium.org> 2 3 Accept 'allowfullscreen' in addition to 'webkitallowfullscreen'. 4 https://bugs.webkit.org/show_bug.cgi?id=110374 5 6 Reviewed by Adam Barth. 7 8 Two previous tests duplicated to preserve testing webkitallowfullscreen 9 and then modified to test allowfullscreen. 10 11 A new test 'full-screen-iframe-with-mixed-allow-webkitallow-attribute.html' 12 added to test a mixed nesting of iframs with both allowfullscreen and 13 webkitallowfullscreen. 14 15 * fullscreen/full-screen-enabled-prefixed-expected.txt: Added. 16 * fullscreen/full-screen-enabled-prefixed.html: Copied from LayoutTests/fullscreen/full-screen-enabled.html. 17 * fullscreen/full-screen-enabled.html: 18 * fullscreen/full-screen-iframe-allowed-prefixed-expected.txt: Added. 19 * fullscreen/full-screen-iframe-allowed-prefixed.html: Copied from LayoutTests/fullscreen/full-screen-iframe-allowed.html. 20 * fullscreen/full-screen-iframe-allowed.html: 21 * fullscreen/full-screen-iframe-with-mixed-allow-webkitallow-attribute-expected.txt: 22 * fullscreen/full-screen-iframe-with-mixed-allow-webkitallow-attribute.html: Added. 23 * fullscreen/resources/full-screen-iframe-with-mixed-allow-webkitallow-iframe1.html: Added. 24 * fullscreen/resources/full-screen-iframe-with-mixed-allow-webkitallow-iframe2.html: Added. 25 1 26 2013-02-20 Levi Weintraub <leviw@chromium.org> 2 27 -
trunk/LayoutTests/fullscreen/full-screen-enabled.html
r111028 r143533 5 5 <script> 6 6 var iframe = document.documentElement.appendChild(document.createElement('iframe')); 7 iframe.setAttribute(' webkitallowfullscreen', 'true');7 iframe.setAttribute('allowfullscreen', 'true'); 8 8 var iframe2 = document.documentElement.appendChild(document.createElement('iframe')); 9 9 testExpected('iframe.contentDocument.webkitFullscreenEnabled', true); -
trunk/LayoutTests/fullscreen/full-screen-iframe-allowed.html
r84706 r143533 23 23 } 24 24 </script> 25 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="runTest()" webkitallowfullscreen>25 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="runTest()" allowfullscreen> 26 26 </iframe> -
trunk/Source/WebCore/ChangeLog
r143529 r143533 1 2013-02-20 Vincent Scheib <scheib@chromium.org> 2 3 Accept 'allowfullscreen' in addition to 'webkitallowfullscreen'. 4 https://bugs.webkit.org/show_bug.cgi?id=110374 5 6 Reviewed by Adam Barth. 7 8 The fullscreen API also includes a new HTML attribute for iframes 9 which permits its use. That attribute, 'allowfullcreen' is now 10 included in the HTML specification [1] and is stable enough 11 to remove the webkit prefix. 12 13 [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-allowfullscreen 14 15 Tests: fullscreen/full-screen-enabled-prefixed.html 16 fullscreen/full-screen-iframe-allowed-prefixed.html 17 fullscreen/full-screen-iframe-with-mixed-allow-webkitallow-attribute.html 18 19 * dom/Document.cpp: 20 (WebCore::isAttributeOnAllOwners): 21 (WebCore::Document::fullScreenIsAllowedForElement): 22 (WebCore::Document::webkitFullscreenEnabled): 23 * html/HTMLAttributeNames.in: 24 1 25 2013-02-20 Roger Fong <roger_fong@apple.com> 2 26 -
trunk/Source/WebCore/dom/Document.cpp
r143428 r143533 563 563 564 564 #if ENABLE(FULLSCREEN_API) 565 static bool isAttributeOnAllOwners(const WebCore::QualifiedName& attribute, const HTMLFrameOwnerElement* owner)565 static bool isAttributeOnAllOwners(const WebCore::QualifiedName& attribute, const WebCore::QualifiedName& prefixedAttribute, const HTMLFrameOwnerElement* owner) 566 566 { 567 567 if (!owner) 568 568 return true; 569 569 do { 570 if (! owner->hasAttribute(attribute))570 if (!(owner->hasAttribute(attribute) || owner->hasAttribute(prefixedAttribute))) 571 571 return false; 572 572 } while ((owner = owner->document()->ownerElement())); … … 4953 4953 { 4954 4954 ASSERT(element); 4955 return isAttributeOnAllOwners( webkitallowfullscreenAttr, element->document()->ownerElement());4955 return isAttributeOnAllOwners(allowfullscreenAttr, webkitallowfullscreenAttr, element->document()->ownerElement()); 4956 4956 } 4957 4957 … … 5172 5172 5173 5173 // Top-level browsing contexts are implied to have their allowFullScreen attribute set. 5174 return isAttributeOnAllOwners( webkitallowfullscreenAttr, ownerElement());5174 return isAttributeOnAllOwners(allowfullscreenAttr, webkitallowfullscreenAttr, ownerElement()); 5175 5175 } 5176 5176 -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r140010 r143533 11 11 align 12 12 alink 13 allowfullscreen 13 14 alt 14 15 archive
Note: See TracChangeset
for help on using the changeset viewer.