From 1692dbb1a5cb3688205d984cf1bd9a82983be5af Mon Sep 17 00:00:00 2001 From: "timeless%mac.com" Date: Thu, 14 Sep 2006 06:01:02 +0000 Subject: [PATCH] Bugzilla Bug 83017 Frame Info dialog has title 'View Page Info' patch by db48x@yahoo.com r=fabian sr=jst --- suite/browser/pageInfo.js | 14 +++++++- suite/browser/pageInfo.xul | 4 +-- .../locales/en-US/chrome/browser/pageInfo.dtd | 33 +++++++++---------- .../en-US/chrome/browser/pageInfo.properties | 2 ++ 4 files changed, 31 insertions(+), 22 deletions(-) diff --git a/suite/browser/pageInfo.js b/suite/browser/pageInfo.js index cf4fc1177beb..236d2b9946ff 100644 --- a/suite/browser/pageInfo.js +++ b/suite/browser/pageInfo.js @@ -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"; diff --git a/suite/browser/pageInfo.xul b/suite/browser/pageInfo.xul index cc82e8bb0554..80c7f0be15a6 100644 --- a/suite/browser/pageInfo.xul +++ b/suite/browser/pageInfo.xul @@ -36,7 +36,6 @@