зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla Bug 83017 Frame Info dialog has title 'View Page Info'
patch by db48x@yahoo.com r=fabian sr=jst
This commit is contained in:
Родитель
dc82dae96a
Коммит
1692dbb1a5
|
@ -53,11 +53,23 @@ var onLoadRegistry = [ ];
|
|||
*/
|
||||
function onLoadPageInfo()
|
||||
{
|
||||
var strbundle = document.getElementById("pageinfobundle");
|
||||
|
||||
var page;
|
||||
var docTitle;
|
||||
if ((window.arguments.length >= 1) && window.arguments[0])
|
||||
{
|
||||
page = window.arguments[0];
|
||||
docTitle = strbundle.getString("frameInfo.title");
|
||||
}
|
||||
else
|
||||
{
|
||||
page = window.opener.frames[0].document;
|
||||
docTitle = strbundle.getString("pageInfo.title");
|
||||
}
|
||||
|
||||
window.document.title = docTitle;
|
||||
|
||||
var root = document.getElementById("cont");
|
||||
|
||||
makeDocument(page, root);
|
||||
|
@ -128,7 +140,7 @@ function makeDocument(page, root)
|
|||
}
|
||||
} else {
|
||||
try {
|
||||
var pageInfoBundle = document.getElementById("bundle_pageInfo");
|
||||
var pageInfoBundle = document.getElementById("pageinfobundle");
|
||||
lastModified = pageInfoBundle.getString("unknown");
|
||||
} catch(e) {
|
||||
lastModified = "Unknown";
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
<window id="main-window"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&pageInfo.title;"
|
||||
titlemodifier="&mainWindow.titlemodifier;"
|
||||
titlepreface="&mainWindow.preface;"
|
||||
titlemenuseparator ="&mainWindow.titlemodifierseperator;"
|
||||
|
@ -47,7 +46,7 @@
|
|||
persist="screenX screenY width height sizemode">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://navigator/content/pageInfo.js"/>
|
||||
<stringbundle src="chrome://navigator/locale/pageInfo.properties" id="bundle_pageInfo"/>
|
||||
<stringbundle id="pageinfobundle" src="chrome://navigator/locale/pageInfo.properties"/>
|
||||
|
||||
<vbox id="cont" flex="1">
|
||||
<label class="header" value="&pageInfo.description;"/>
|
||||
|
@ -62,7 +61,6 @@
|
|||
|
||||
<!-- General page information -->
|
||||
<vbox>
|
||||
<label class="header label" value="&pageInfo.description;"/>
|
||||
<vbox class="inset" id="documentinfo">
|
||||
<grid>
|
||||
<columns>
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
<!ENTITY mainWindow.titlemodifierseperator " - ">
|
||||
<!ENTITY mainWindow.preface "Info for: ">
|
||||
|
||||
<!ENTITY pageInfo.title "Page Info">
|
||||
<!ENTITY pageInfo.description "Information about the current page">
|
||||
|
||||
<!ENTITY pageInfo.generalTab "General">
|
||||
<!ENTITY pageInfo.pageTitle "Title:">
|
||||
<!ENTITY pageInfo.URL "URL:">
|
||||
|
|
|
@ -20,3 +20,5 @@
|
|||
#
|
||||
|
||||
unknown=Unknown
|
||||
pageInfo.title=Page Info
|
||||
frameInfo.title=Frame Info
|
||||
|
|
Загрузка…
Ссылка в новой задаче