Bug 702295 - Don't apply overflow:hidden to full-screen-ancestor chrome roots. r=bz a=clegnitto
authorChris Pearce <chris@pearce.org.nz>
Fri, 18 Nov 2011 15:22:48 +1300
changeset 81407 b0708d07213142365f4c66dfc593e24f9eccf2b9
parent 81406 e6dc2e6428248c2527c5e91d18a540202246ab20
child 81408 97436b3527a9e415d31972eefc972b8b4fbbeb9f
push id434
push userclegnitto@mozilla.com
push dateWed, 21 Dec 2011 12:10:54 +0000
treeherdermozilla-beta@bddb6ed8dd47 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, clegnitto
bugs702295
milestone10.0a2
Bug 702295 - Don't apply overflow:hidden to full-screen-ancestor chrome roots. r=bz a=clegnitto
layout/style/ua.css
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -34,16 +34,17 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 @import url(resource://gre-resources/html.css);
 @import url(chrome://global/content/xul.css);
 
 @namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml);
+@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
 
 /* magic -- some of these rules are important to keep pages from overriding
             them
 */
 
 /* Tables */
 
 *|*::-moz-table {
@@ -248,18 +249,19 @@
   bottom: 0 !important;
   z-index: 2147483647 !important;
   background: black;
   width: 100% !important;
   height: 100% !important;
 }
 
 /* If there is a full-screen element that is not the root then
-   we should hide the viewport scrollbar. */
-*|*:root:-moz-full-screen-ancestor {
+   we should hide the viewport scrollbar. We exclude the chrome
+   document to prevent reframing of contained plugins. */
+:not(xul|*):root:-moz-full-screen-ancestor {
   overflow: hidden !important;
 }
 
 *|*:-moz-full-screen-ancestor {
   /* Ancestors of a full-screen element should not induce stacking contexts
      that would prevent the full-screen element from being on top. */
   z-index:auto !important;
   /* Ancestors of a full-screen element should not be partially transparent,