diff --git a/extensions/p3p/resources/content/pageInfoOverlay.js b/extensions/p3p/resources/content/pageInfoOverlay.js index 78cbe587ca12..adcbbbe32e84 100755 --- a/extensions/p3p/resources/content/pageInfoOverlay.js +++ b/extensions/p3p/resources/content/pageInfoOverlay.js @@ -43,10 +43,10 @@ var gIOService = null; function initTopDocAndWin() { if ("arguments" in window && window.arguments.length > 0 && - window.arguments[0]) + window.arguments[0] && window.arguments[0].doc) { gTopWin = null; - gTopDoc = window.arguments[0]; + gTopDoc = window.arguments[0].doc; } else { diff --git a/security/manager/pki/resources/content/PageInfoOverlay.xul b/security/manager/pki/resources/content/PageInfoOverlay.xul index 94f83abdae91..cf64df9501da 100644 --- a/security/manager/pki/resources/content/PageInfoOverlay.xul +++ b/security/manager/pki/resources/content/PageInfoOverlay.xul @@ -62,16 +62,10 @@ // Get the window for this information var w; -#ifdef MOZ_PHOENIX - if (window.arguments[0] && window.arguments[0].doc) - { - w = window.arguments[0].doc; -#else - if ("arguments" in window && window.arguments.length > 0 && window.arguments[0]) + if ("arguments" in window && window.arguments.length > 0 && + window.arguments[0] && window.arguments[0].doc) { - w = window.arguments[0]; -#endif - + // w = window.arguments[0].doc; // We don't have separate info for a frame, return null until further notice // (see bug 138479) return null; diff --git a/security/manager/pki/resources/jar.mn b/security/manager/pki/resources/jar.mn index ac5a423fc484..8c28654f8a16 100644 --- a/security/manager/pki/resources/jar.mn +++ b/security/manager/pki/resources/jar.mn @@ -20,7 +20,7 @@ pippki.jar: content/pippki/ssl2ciphers.xul (content/ssl2ciphers.xul) content/pippki/ssl3tlsciphers.xul (content/ssl3tlsciphers.xul) content/pippki/ssl3tlsciphers2.xul (content/ssl3tlsciphers2.xul) -* content/pippki/PageInfoOverlay.xul (content/PageInfoOverlay.xul) + content/pippki/PageInfoOverlay.xul (content/PageInfoOverlay.xul) content/pippki/newserver.js (content/newserver.js) * content/pippki/newserver.xul (content/newserver.xul) content/pippki/downloadcert.js (content/downloadcert.js) diff --git a/themes/classic/navigator/pageInfo.css b/themes/classic/navigator/pageInfo.css index 61e83169f983..e3a92805ebe6 100644 --- a/themes/classic/navigator/pageInfo.css +++ b/themes/classic/navigator/pageInfo.css @@ -49,6 +49,7 @@ textbox > .textarea-internal-box { -moz-appearance: none; } +label.header, textbox.header { margin-left: 0; } diff --git a/themes/modern/navigator/pageInfo.css b/themes/modern/navigator/pageInfo.css index 9f059c60aa03..4b7a3fe0f4b5 100644 --- a/themes/modern/navigator/pageInfo.css +++ b/themes/modern/navigator/pageInfo.css @@ -48,6 +48,7 @@ textbox > .textarea-internal-box { padding: 0px; } +label.header, textbox.header { margin-left: 0; } diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index fc677b306a7c..3611ed16ed60 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -1715,13 +1715,12 @@ function BrowserViewSourceOfURL(url, charset, pageCookie) } // doc=null for regular page info, doc=owner document for frame info. -function BrowserPageInfo(doc, tab) +function BrowserPageInfo(doc, initialTab) { window.openDialog("chrome://navigator/content/pageInfo.xul", "_blank", "chrome,dialog=no", - doc, - tab); + {doc: doc, initialTab: initialTab}); } function hiddenWindowStartup() diff --git a/xpfe/browser/resources/content/pageInfo.js b/xpfe/browser/resources/content/pageInfo.js index b218a9f1e4de..9d55cdc1c583 100644 --- a/xpfe/browser/resources/content/pageInfo.js +++ b/xpfe/browser/resources/content/pageInfo.js @@ -245,9 +245,11 @@ const XHTMLre = RegExp(XHTMLNSre + "|" + XHTML2NSre, ""); var onLoadRegistry = [ ]; /* Called when PageInfo window is loaded. Arguments are: - * window.arguments[0] - document to use for source (null=Page Info, otherwise Frame Info) - * window.arguments[1] - tab name to display first (may be null) -*/ + * window.arguments[0] - (optional) an object consisting of + * - doc: (optional) document to use for source. if not provided, + * the calling window's document will be used + * - initialTab: (optional) id of the inital tab to display + */ function onLoadPageInfo() { //dump("===============================================================================\n"); @@ -274,10 +276,11 @@ function onLoadPageInfo() gStrings.mediaInput = theBundle.getString("mediaInput"); var docTitle = ""; - if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) + if ("arguments" in window && window.arguments.length >= 1 && + window.arguments[0] && window.arguments[0].doc) { theWindow = null; - theDocument = window.arguments[0]; + theDocument = window.arguments[0].doc; docTitle = theBundle.getString("frameInfo.title"); } else @@ -305,21 +308,18 @@ function onLoadPageInfo() onLoadRegistry[x](); } - /* Select the requested tab, if the name is specified */ - if ("arguments" in window && window.arguments.length > 1) + var tabControl = document.getElementById("tabbox"); + if (tabControl) { - var tabName = window.arguments[1]; - - if (tabName) + /* Select the requested tab, if the name is specified */ + if ("arguments" in window && window.arguments.length >= 1 && + window.arguments[0] && window.arguments[0].initialTab) { - var tabControl = document.getElementById("tabbox"); - var tab = document.getElementById(tabName); - - if (tabControl && tab) - { + var tab = document.getElementById(window.arguments[0].initialTab); + if (tab) tabControl.selectedTab = tab; - } } + tabControl.selectedTab.focus(); } } diff --git a/xpfe/browser/resources/content/pageInfo.xul b/xpfe/browser/resources/content/pageInfo.xul index 058a06369010..60a356fac1de 100644 --- a/xpfe/browser/resources/content/pageInfo.xul +++ b/xpfe/browser/resources/content/pageInfo.xul @@ -102,7 +102,7 @@ - + @@ -111,60 +111,60 @@ - - - - - - - - - - +