Part of bug 381343 Move SeaMonkey's debug/QA UI elements to be built as an extension in-tree - move Build Id in titlebar to debugQA extension, also fixes bug 387050. r/sr=Neil

NPOTB for the firefox freeze.
This commit is contained in:
bugzilla%standard8.demon.co.uk 2007-07-30 16:07:45 +00:00
Родитель 6a800e852e
Коммит 40934a4a89
8 изменённых файлов: 82 добавлений и 11 удалений

Просмотреть файл

@ -55,8 +55,6 @@
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % buildDTD SYSTEM "chrome://communicator/content/build.dtd" >
%buildDTD;
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
%navigatorDTD;
]>

Просмотреть файл

@ -52,8 +52,6 @@
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % buildDTD SYSTEM "chrome://communicator/content/build.dtd" >
%buildDTD;
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
%navigatorDTD;
]>

Просмотреть файл

@ -52,7 +52,6 @@ comm.jar:
content/communicator/askViewZoom.xul
content/communicator/askViewZoom.js
content/communicator/browserBindings.xul
* content/communicator/build.dtd
content/communicator/communicator.css
content/communicator/consoleOverlay.xul
content/communicator/contentAreaUtils.js

Просмотреть файл

@ -0,0 +1,71 @@
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is mozilla.org code.
-
- The Initial Developer of the Original Code is
- Mark Banner <bugzilla@standard8.demon.co.uk>
- Portions created by the Initial Developer are Copyright (C) 2007
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the GPL or the LGPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK ***** -->
<overlay id="debugQANavigatorOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript">
<![CDATA[
window.addEventListener("load", debugQABuildIDOnLoad, true);
// Set the title modifer to include the build id.
function debugQABuildIDOnLoad() {
window.removeEventListener("load", debugQABuildIDOnLoad, true);
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo);
var bundle = document.getElementById("debugQANavigatorBundle");
var titlemodifier = bundle.getFormattedString("titlemodifier",
[appInfo.name,
appInfo.appBuildID])
// Set the new title modifier
document.documentElement.setAttribute("titlemodifier", titlemodifier);
// Now set the title of the window
document.title = titlemodifier
}
]]>
</script>
<stringbundleset id="stringbundleset">
<stringbundle id="debugQANavigatorBundle"
src="chrome://debugQA/locale/debugQANavigatorOverlay.properties"/>
</stringbundleset>
</overlay>

Просмотреть файл

@ -1,9 +1,11 @@
debugqa.jar:
% content debugqa %content/debugqa/ xpcnativewrappers=yes
% overlay chrome://navigator/content/navigatorOverlay.xul chrome://debugqa/content/debugQAMenuOverlay.xul
% overlay chrome://navigator/content/navigator.xul chrome://debugqa/content/debugQANavigatorOverlay.xul
% overlay chrome://communicator/content/pref/preftree.xul chrome://debugqa/content/debugQAPrefsOverlay.xul
content/debugqa/debugQAMenuOverlay.js (content/debugQAMenuOverlay.js)
content/debugqa/debugQAMenuOverlay.xul (content/debugQAMenuOverlay.xul)
content/debugqa/debugQANavigatorOverlay.xul (content/debugQANavigatorOverlay.xul)
content/debugqa/debugQAPrefsOverlay.xul (content/debugQAPrefsOverlay.xul)
content/debugqa/pref-debug.xul (content/pref-debug.xul)
content/debugqa/pref-debug1.xul (content/pref-debug1.xul)

Просмотреть файл

@ -0,0 +1,2 @@
<!-- LOCALIZATION NOTE: the %S are replaced by app name and build ID respectively -->
titlemodifier=%S {Build ID: %S}

Просмотреть файл

@ -2,7 +2,8 @@
debugqa.jar:
% locale debugQA @AB_CD@ %locale/@AB_CD@/debugQA/
locale/@AB_CD@/debugQA/debugQAPrefsOverlay.dtd (%debugQAPrefsOverlay.dtd)
locale/@AB_CD@/debugQA/pref-debug.dtd (%pref-debug.dtd)
locale/@AB_CD@/debugQA/pref-debug1.dtd (%pref-debug1.dtd)
locale/@AB_CD@/debugQA/pref-debug2.dtd (%pref-debug2.dtd)
locale/@AB_CD@/debugQA/debugQANavigatorOverlay.properties (%debugQANavigatorOverlay.properties)
locale/@AB_CD@/debugQA/debugQAPrefsOverlay.dtd (%debugQAPrefsOverlay.dtd)
locale/@AB_CD@/debugQA/pref-debug.dtd (%pref-debug.dtd)
locale/@AB_CD@/debugQA/pref-debug1.dtd (%pref-debug1.dtd)
locale/@AB_CD@/debugQA/pref-debug2.dtd (%pref-debug2.dtd)

Просмотреть файл

@ -4,9 +4,9 @@
<!-- LOCALIZATION NOTE : FILE Do not translate accesskey and commandkey -->
<!-- LOCALIZATION NOTE (mainWindow.title): DONT_TRANSLATE -->
<!ENTITY mainWindow.title "&brandShortName; {&buildId.label;}">
<!ENTITY mainWindow.title "&brandShortName;">
<!-- LOCALIZATION NOTE (mainWindow.titlemodifier) : DONT_TRANSLATE -->
<!ENTITY mainWindow.titlemodifier "&brandShortName; {&buildId.label;}">
<!ENTITY mainWindow.titlemodifier "&brandShortName;">
<!-- LOCALIZATION NOTE (mainWindow.titlemodifiermenuseparator): DONT_TRANSLATE -->
<!ENTITY mainWindow.titlemodifiermenuseparator " - ">