283639 - sanitize does not work when confirm dialog is shown, also correct licenses

This commit is contained in:
ben%bengoodger.com 2005-02-27 06:39:44 +00:00
Родитель c495520b94
Коммит 456a91dd52
4 изменённых файлов: 67 добавлений и 30 удалений

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

@ -38,7 +38,7 @@
<?xml-stylesheet href="chrome://global/skin/"?>
<!DOCTYPE dialog [
<!DOCTYPE prefwindow [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
<!ENTITY % sanitizeDTD SYSTEM "chrome://browser/locale/sanitize.dtd">
%brandDTD;

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

@ -11,14 +11,14 @@
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Mozilla.org Code.
# The Original Code is the Firefox Preferences System.
#
# The Initial Developer of the Original Code is
# Doron Rosenberg.
# Portions created by the Initial Developer are Copyright (C) 2001
# The Initial Developer of the Original Code is Google Inc.
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@mozilla.org>
#
# 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
@ -34,6 +34,7 @@
#
# ***** END LICENSE BLOCK *****
const kFontNameFmtSerif = "font.name.serif.%LANG%";
const kFontNameFmtSansSerif = "font.name.sans-serif.%LANG%";
const kFontNameListFmtSerif = "font.name-list.serif.%LANG%";

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

@ -1,4 +1,38 @@
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# 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 Firefox Preferences System.
#
# The Initial Developer of the Original Code is Google Inc.
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@mozilla.org>
#
# 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 *****
var gRemovePasswordDialog = {
_token : null,

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

@ -771,31 +771,33 @@
// Clone all the preferences elements from the child document and
// insert them into the pane collection of the parent.
var pdoc = window.opener.document;
var currentPane = pdoc.documentElement.currentPane;
var id = window.location.href + "#childprefs";
var childPrefs = pdoc.getElementById(id);
if (!childPrefs) {
var childPrefs = pdoc.createElement("preferences");
currentPane.appendChild(childPrefs);
childPrefs.id = id;
}
var panes = this.preferencePanes;
for (var i = 0; i < panes.length; ++i) {
var preferences = panes[i].preferences;
for (var j = 0; j < preferences.length; ++j) {
var prefID = window.location.href + "#" + preferences[j].id;
var preference = pdoc.getElementById(prefID);
if (!preference) {
var preference = pdoc.createElement("preference");
childPrefs.appendChild(preference);
preference.id = prefID;
preference.name = preferences[j].name;
preference.type = preferences[j].type;
preference.inverted = preferences[j].inverted;
preference.readonly = preferences[j].readonly;
preference.disabled = preferences[j].disabled;
if (pdoc.documentElement.localName == "prefwindow") {
var currentPane = pdoc.documentElement.currentPane;
var id = window.location.href + "#childprefs";
var childPrefs = pdoc.getElementById(id);
if (!childPrefs) {
var childPrefs = pdoc.createElement("preferences");
currentPane.appendChild(childPrefs);
childPrefs.id = id;
}
var panes = this.preferencePanes;
for (var i = 0; i < panes.length; ++i) {
var preferences = panes[i].preferences;
for (var j = 0; j < preferences.length; ++j) {
var prefID = window.location.href + "#" + preferences[j].id;
var preference = pdoc.getElementById(prefID);
if (!preference) {
var preference = pdoc.createElement("preference");
childPrefs.appendChild(preference);
preference.id = prefID;
preference.name = preferences[j].name;
preference.type = preferences[j].type;
preference.inverted = preferences[j].inverted;
preference.readonly = preferences[j].readonly;
preference.disabled = preferences[j].disabled;
}
preference.value = preferences[j].value;
}
preference.value = preferences[j].value;
}
}
}