From 7c8fe9b1d4a53492ce697ad188b4e79b0c9203aa Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Sat, 20 Sep 2008 15:54:40 +0200 Subject: [PATCH] Bug 451909 - kill MOZ_XUL_APP now that all apps set it; files removal; r=ted.mielczarek --- content/xslt/tests/buster/contents.rdf | 28 - embedding/browser/chrome/Makefile.in | 47 -- embedding/browser/chrome/content/contents.rdf | 17 - embedding/browser/chrome/content/mini-nav.js | 259 --------- embedding/browser/chrome/content/mini-nav.xul | 118 ---- .../browser/chrome/content/simple-shell.xul | 63 -- embedding/browser/chrome/jar.mn | 14 - .../browser/chrome/locale/en-US/contents.rdf | 23 - .../browser/chrome/locale/en-US/embedding.dtd | 21 - embedding/browser/chrome/locale/en-US/jar.mn | 0 embedding/browser/chrome/manifest.rdf | 48 -- embedding/browser/chrome/skin/back.gif | Bin 845 -> 0 bytes embedding/browser/chrome/skin/contents.rdf | 22 - embedding/browser/chrome/skin/embedding.css | 67 --- embedding/browser/chrome/skin/forward.gif | Bin 845 -> 0 bytes embedding/browser/chrome/skin/reload.gif | Bin 844 -> 0 bytes .../browser/chrome/skin/simple-shell.css | 46 -- embedding/browser/chrome/skin/stop.gif | Bin 843 -> 0 bytes embedding/lite/Makefile.in | 80 --- embedding/lite/embedlite.pkg | 6 - embedding/lite/nsEmbedChromeRegistry.cpp | 357 ------------ embedding/lite/nsEmbedChromeRegistry.h | 74 --- embedding/lite/nsEmbedGlobalHistory.cpp | 550 ------------------ embedding/lite/nsEmbedGlobalHistory.h | 96 --- embedding/lite/nsEmbedLiteModule.cpp | 68 --- .../pref/autoconfig/resources/Makefile.in | 45 -- .../autoconfig/resources/content/contents.rdf | 18 - extensions/pref/autoconfig/resources/jar.mn | 8 - .../resources/locale/en-US/contents.rdf | 23 - .../dom/test/pyxultest/chrome/contents.rdf | 24 - .../locales/generic/chrome/contents.rdf | 27 - .../resources/content/reporter/contents.rdf | 34 -- .../skin/classic/reporter/contents.rdf | 14 - layout/style/xbl-marquee/contents.rdf | 15 - netwerk/locales/generic/contents.rdf | 26 - netwerk/resources/Makefile.in | 47 -- netwerk/resources/content/contents.rdf | 18 - netwerk/resources/jar.mn | 4 - .../generic/chrome/pipnss/contents.rdf | 27 - .../generic/chrome/pippki/contents.rdf | 64 -- .../pki/resources/content/contents.rdf | 72 --- security/manager/ssl/resources/Makefile.in | 46 -- .../ssl/resources/content/contents.rdf | 18 - security/manager/ssl/resources/jar.mn | 4 - 44 files changed, 2538 deletions(-) delete mode 100755 content/xslt/tests/buster/contents.rdf delete mode 100644 embedding/browser/chrome/Makefile.in delete mode 100644 embedding/browser/chrome/content/contents.rdf delete mode 100644 embedding/browser/chrome/content/mini-nav.js delete mode 100644 embedding/browser/chrome/content/mini-nav.xul delete mode 100644 embedding/browser/chrome/content/simple-shell.xul delete mode 100644 embedding/browser/chrome/jar.mn delete mode 100644 embedding/browser/chrome/locale/en-US/contents.rdf delete mode 100644 embedding/browser/chrome/locale/en-US/embedding.dtd delete mode 100644 embedding/browser/chrome/locale/en-US/jar.mn delete mode 100644 embedding/browser/chrome/manifest.rdf delete mode 100644 embedding/browser/chrome/skin/back.gif delete mode 100644 embedding/browser/chrome/skin/contents.rdf delete mode 100644 embedding/browser/chrome/skin/embedding.css delete mode 100644 embedding/browser/chrome/skin/forward.gif delete mode 100644 embedding/browser/chrome/skin/reload.gif delete mode 100644 embedding/browser/chrome/skin/simple-shell.css delete mode 100644 embedding/browser/chrome/skin/stop.gif delete mode 100644 embedding/lite/Makefile.in delete mode 100644 embedding/lite/embedlite.pkg delete mode 100644 embedding/lite/nsEmbedChromeRegistry.cpp delete mode 100644 embedding/lite/nsEmbedChromeRegistry.h delete mode 100644 embedding/lite/nsEmbedGlobalHistory.cpp delete mode 100644 embedding/lite/nsEmbedGlobalHistory.h delete mode 100644 embedding/lite/nsEmbedLiteModule.cpp delete mode 100644 extensions/pref/autoconfig/resources/Makefile.in delete mode 100644 extensions/pref/autoconfig/resources/content/contents.rdf delete mode 100644 extensions/pref/autoconfig/resources/jar.mn delete mode 100644 extensions/pref/autoconfig/resources/locale/en-US/contents.rdf delete mode 100644 extensions/python/dom/test/pyxultest/chrome/contents.rdf delete mode 100644 extensions/reporter/locales/generic/chrome/contents.rdf delete mode 100644 extensions/reporter/resources/content/reporter/contents.rdf delete mode 100644 extensions/reporter/resources/skin/classic/reporter/contents.rdf delete mode 100644 layout/style/xbl-marquee/contents.rdf delete mode 100644 netwerk/locales/generic/contents.rdf delete mode 100644 netwerk/resources/Makefile.in delete mode 100644 netwerk/resources/content/contents.rdf delete mode 100644 netwerk/resources/jar.mn delete mode 100644 security/manager/locales/generic/chrome/pipnss/contents.rdf delete mode 100644 security/manager/locales/generic/chrome/pippki/contents.rdf delete mode 100644 security/manager/pki/resources/content/contents.rdf delete mode 100644 security/manager/ssl/resources/Makefile.in delete mode 100644 security/manager/ssl/resources/content/contents.rdf delete mode 100644 security/manager/ssl/resources/jar.mn diff --git a/content/xslt/tests/buster/contents.rdf b/content/xslt/tests/buster/contents.rdf deleted file mode 100755 index 3119bc502488..000000000000 --- a/content/xslt/tests/buster/contents.rdf +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - chrome://xslt-qa/content/xslt-qa-overlay.xul - - - diff --git a/embedding/browser/chrome/Makefile.in b/embedding/browser/chrome/Makefile.in deleted file mode 100644 index 1a42020a3b54..000000000000 --- a/embedding/browser/chrome/Makefile.in +++ /dev/null @@ -1,47 +0,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 the Mozilla browser. -# -# The Initial Developer of the Original Code is -# Christopher Blizzard. -# Portions created by the Initial Developer are Copyright (C) 1999 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# Christopher Blizzard -# -# 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 ***** - -DEPTH = ../../.. -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -include $(DEPTH)/config/autoconf.mk - -include $(topsrcdir)/config/rules.mk - diff --git a/embedding/browser/chrome/content/contents.rdf b/embedding/browser/chrome/content/contents.rdf deleted file mode 100644 index 4523564f2311..000000000000 --- a/embedding/browser/chrome/content/contents.rdf +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - diff --git a/embedding/browser/chrome/content/mini-nav.js b/embedding/browser/chrome/content/mini-nav.js deleted file mode 100644 index 824598e205d6..000000000000 --- a/embedding/browser/chrome/content/mini-nav.js +++ /dev/null @@ -1,259 +0,0 @@ -/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** 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 - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998 - * 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 ***** */ - -const nsIWebNavigation = Components.interfaces.nsIWebNavigation; - -var commandHandler = null; -var gURLBar = null; - -function nsCommandHandler() -{ -} - -nsCommandHandler.prototype = -{ - QueryInterface : function(iid) - { - if (iid.equals(Components.interfaces.nsICommandHandler) || - iid.equals(Components.interfaces.nsISupports)) - { - return this; - } - throw Components.results.NS_NOINTERFACE; - }, - - exec : function(command, params) - { - }, - query : function(command, params, result) - { - result = ""; - } -} - -// - -function nsBrowserStatusHandler() -{ - this.init(); -} - -nsBrowserStatusHandler.prototype = -{ - QueryInterface : function(aIID) - { - if (aIID.equals(Components.interfaces.nsIWebProgressListener) || - aIID.equals(Components.interfaces.nsISupportsWeakReference) || - aIID.equals(Components.interfaces.nsISupports)) - { - return this; - } - throw Components.results.NS_NOINTERFACE; - }, - - init : function() - { - this.urlBar = document.getElementById("urlbar"); - }, - - destroy : function() - { - this.urlBar = null; - }, - - onStateChange : function(aWebProgress, aRequest, aStateFlags, aStatus) - { - }, - - onProgressChange : function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) - { - }, - - onLocationChange : function(aWebProgress, aRequest, aLocation) - { - domWindow = aWebProgress.DOMWindow; - // Update urlbar only if there was a load on the root docshell - if (domWindow == domWindow.top) { - this.urlBar.value = location; - } - }, - - onStatusChange : function(aWebProgress, aRequest, aStatus, aMessage) - { - }, - - onSecurityChange : function(aWebProgress, aRequest, aState) - { - } -} - -var gBrowserStatusHandler; -function MiniNavStartup() -{ - dump("*** MiniNavStartup\n"); - - try { - gBrowserStatusHandler = new nsBrowserStatusHandler(); - var webNavigation = getWebNavigation(); - webNavigation.sessionHistory = Components.classes["@mozilla.org/browser/shistory;1"] - .createInstance(Components.interfaces.nsISHistory); - - var interfaceRequestor = getBrowser().docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); - var webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress); - webProgress.addProgressListener(gBrowserStatusHandler, Components.interfaces.nsIWebProgress.NOTIFY_LOCATION); - } catch (e) { - alert("Error opening a mini-nav window"); - dump(e+"\n"); - window.close(); - return; - } - - // create the embedding command handler - netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); - var commandHandlerInit = Components - .classes["@mozilla.org/embedding/browser/nsCommandHandler;1"] - .createInstance(Components.interfaces.nsICommandHandlerInit); - - // Attach it to the window - commandHandlerInit.window = window; - commandHandler = commandHandlerInit.QueryInterface(Components.interfaces.nsICommandHandler); - - gURLBar = document.getElementById("urlbar"); - dump("gURLBar " + gURLBar + "\n"); -} - -function MiniNavShutdown() -{ - dump("*** MiniNavShutdown\n"); - if (gBrowserStatusHandler) - gBrowserStatusHandler.destroy(); -} - -function getBrowser() -{ - return document.getElementById("content"); -} - -function getWebNavigation() -{ - return getBrowser().webNavigation; -} - -function CHExecTest() -{ - if (commandHandler != null) - { - commandHandler.exec("hello", "xxx"); - } -} - -function CHQueryTest() -{ - if (commandHandler != null) - { - var result = commandHandler.query("hello", "xxx"); - } -} - -function InitContextMenu(xulMenu) -{ - // Back determined by canGoBack broadcaster. - InitMenuItemAttrFromNode( "context-back", "disabled", "canGoBack" ); - - // Forward determined by canGoForward broadcaster. - InitMenuItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); -} - -function InitMenuItemAttrFromNode( item_id, attr, other_id ) -{ - var elem = document.getElementById( other_id ); - if ( elem && elem.getAttribute( attr ) == "true" ) { - SetMenuItemAttr( item_id, attr, "true" ); - } else { - SetMenuItemAttr( item_id, attr, null ); - } -} - -function SetMenuItemAttr( id, attr, val ) -{ - var elem = document.getElementById( id ); - if ( elem ) { - if ( val == null ) { - // null indicates attr should be removed. - elem.removeAttribute( attr ); - } else { - // Set attr=val. - elem.setAttribute( attr, val ); - } - } -} - -function loadURI(uri) -{ - getWebNavigation().loadURI(uri, nsIWebNavigation.LOAD_FLAGS_NONE, null, null, null); -} - -function BrowserLoadURL() -{ - dump("browserloadurl: " + gURLBar.value + '\n'); - try { - loadURI(gURLBar.value); - } - catch(e) { - } -} - -function BrowserBack() -{ - getWebNavigation().goBack(); -} - -function BrowserForward() -{ - getWebNavigation().goForward(); -} - -function BrowserStop() -{ - getWebNavigation().stop(nsIWebNavigation.STOP_ALL); -} - -function BrowserReload() -{ - getWebNavigation().reload(nsIWebNavigation.LOAD_FLAGS_NONE); -} - diff --git a/embedding/browser/chrome/content/mini-nav.xul b/embedding/browser/chrome/content/mini-nav.xul deleted file mode 100644 index f34deed1b5d4..000000000000 --- a/embedding/browser/chrome/content/mini-nav.xul +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - -%brandDTD; - -%embeddingDTD; -]> - - - -