Bug 686469 - Tab-modal alert can overflow the browser window. r=dolske a=asa
authorDão Gottwald <dao@mozilla.com>
Sat, 01 Oct 2011 21:40:36 +0200
changeset 79035 550b6bcf09b3a03bbef70d540e38ddd267aba30a
parent 79034 4de13b66499d7f29d3a105d6413bd777afa2624d
child 79036 724b6e0c57e84052f69d7a54fc310ab3d25d0c1d
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske, asa
bugs686469
milestone9.0a2
Bug 686469 - Tab-modal alert can overflow the browser window. r=dolske a=asa
toolkit/components/prompts/content/tabprompts.xml
toolkit/content/xul.css
--- a/toolkit/components/prompts/content/tabprompts.xml
+++ b/toolkit/components/prompts/content/tabprompts.xml
@@ -208,20 +208,18 @@
                 }
             ]]>
             </body>
         </method>
 
         <method name="onResize">
             <body>
             <![CDATA[
-                // XXX the <notificationbox/>; to be made app-agnostic later
-                let container = this.parentNode.parentNode;
-                let availWidth = container.clientWidth;
-                let availHeight = container.clientHeight;
+                let availWidth = this.clientWidth;
+                let availHeight = this.clientHeight;
                 if (availWidth == this.availWidth && availHeight == this.availHeight)
                     return;
                 this.availWidth = availWidth;
                 this.availHeight = availHeight;
 
                 let self = this;
                 function getElement(anonid) {
                     return document.getAnonymousElementByAttribute(self, "anonid", anonid);
--- a/toolkit/content/xul.css
+++ b/toolkit/content/xul.css
@@ -1187,10 +1187,11 @@ findbar {
 /*********** filefield ************/
 filefield {
   -moz-binding: url("chrome://global/content/bindings/filefield.xml#filefield");
 }
 
 /*********** tabmodalprompt ************/
 tabmodalprompt {
   -moz-binding: url("chrome://global/content/tabprompts.xml#tabmodalprompt");
+  overflow: hidden;
   text-shadow: none;
 }