diff --git a/security/manager/pki/resources/content/domainMismatch.js b/security/manager/pki/resources/content/domainMismatch.js index 7f851a82c04f..c1a15f9ed496 100644 --- a/security/manager/pki/resources/content/domainMismatch.js +++ b/security/manager/pki/resources/content/domainMismatch.js @@ -50,6 +50,16 @@ function onLoad() setText("message2", message2); //Set the focus so key press events work document.getElementById('ok-button').focus(); + + var xulWindow = document.getElementById("domainMismatch"); + var wdth = window.innerWidth; // THIS IS NEEDED, + window.sizeToContent(); + xulWindow.setAttribute("width",window.innerWidth + 30); + + var hght = window.innerHeight; // THIS IS NEEDED, + window.sizeToContent(); + xulWindow.setAttribute("height",window.innerHeight + 40); + } function viewCert() diff --git a/security/manager/pki/resources/content/domainMismatch.xul b/security/manager/pki/resources/content/domainMismatch.xul index 80179b1d923c..fc28e9b07290 100644 --- a/security/manager/pki/resources/content/domainMismatch.xul +++ b/security/manager/pki/resources/content/domainMismatch.xul @@ -25,8 +25,7 @@ xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" debug="false" - height="250" - width="400" + width="320" onload="onLoad();" >