зеркало из https://github.com/mozilla/gecko-dev.git
Bug 261637 move security.properties into PSM
r=bsmedberg sr=darin
This commit is contained in:
Родитель
0fa5dc1b07
Коммит
1d87c93a2c
|
@ -225,7 +225,7 @@ nsresult
|
||||||
SecurityDialogs::EnsureSecurityStringBundle()
|
SecurityDialogs::EnsureSecurityStringBundle()
|
||||||
{
|
{
|
||||||
if (!mSecurityStringBundle) {
|
if (!mSecurityStringBundle) {
|
||||||
#define STRING_BUNDLE_URL "chrome://communicator/locale/security.properties"
|
#define STRING_BUNDLE_URL "chrome://pipnss/locale/security.properties"
|
||||||
nsCOMPtr<nsIStringBundleService> service = do_GetService(NS_STRINGBUNDLE_CONTRACTID);
|
nsCOMPtr<nsIStringBundleService> service = do_GetService(NS_STRINGBUNDLE_CONTRACTID);
|
||||||
if ( service ) {
|
if ( service ) {
|
||||||
nsresult rv = service->CreateBundle(STRING_BUNDLE_URL, getter_AddRefs(mSecurityStringBundle));
|
nsresult rv = service->CreateBundle(STRING_BUNDLE_URL, getter_AddRefs(mSecurityStringBundle));
|
||||||
|
|
|
@ -4,4 +4,3 @@ comm.jar:
|
||||||
en-US.jar:
|
en-US.jar:
|
||||||
* locale/en-US/necko/contents.rdf (locale/en-US/contents.rdf)
|
* locale/en-US/necko/contents.rdf (locale/en-US/contents.rdf)
|
||||||
locale/en-US/necko/necko.properties (locale/en-US/necko.properties)
|
locale/en-US/necko/necko.properties (locale/en-US/necko.properties)
|
||||||
locale/en-US/communicator/security.properties (locale/en-US/security.properties)
|
|
||||||
|
|
|
@ -1,52 +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 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):
|
|
||||||
# Sean Cotter <cotter@netscape.com>
|
|
||||||
#
|
|
||||||
# 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 *****
|
|
||||||
|
|
||||||
Title=Security Warning
|
|
||||||
MixedContentMessage=You have requested an encrypted page that contains some unencrypted information. Information that you see or enter on this page could easily be read by a third party.
|
|
||||||
LeaveSecureMessage=You are about to leave an encrypted page. Information you send or receive from now on could easily be read by a third party.
|
|
||||||
EnterSecureMessage=You have requested an encrypted page. The web site has identified itself correctly, and information you see or enter on this page can't easily be read by a third party.
|
|
||||||
WeakSecureMessage=You have requested a page that uses low-grade encryption. The web site has identified itself correctly, but information you see or enter on this page could be read by a third party.
|
|
||||||
PostToInsecureFromSecureMessage=Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.##Are you sure you want to continue sending this information?##
|
|
||||||
PostToInsecureFromInsecureMessage=The information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.##Are you sure you want to continue sending this information?##
|
|
||||||
MixedContentShowAgain=Alert me whenever I'm about to view an encrypted page that contains some unencrypted information.
|
|
||||||
LeaveSecureShowAgain=Alert me whenever I leave an encrypted page for one that isn't encrypted.
|
|
||||||
EnterSecureShowAgain=Alert me whenever I am about to view an encrypted page.
|
|
||||||
WeakSecureShowAgain=Alert me whenever I am about to view a page that uses low-grade encryption.
|
|
||||||
PostToInsecureFromInsecureShowAgain=Alert me whenever I submit information that's not encrypted.
|
|
||||||
SecurityButtonTooltipText=Displays security information about the current page
|
|
||||||
Continue=Continue
|
|
|
@ -81,7 +81,7 @@
|
||||||
#include "nsNetUtil.h"
|
#include "nsNetUtil.h"
|
||||||
#include "nsCRT.h"
|
#include "nsCRT.h"
|
||||||
|
|
||||||
#define SECURITY_STRING_BUNDLE_URL "chrome://communicator/locale/security.properties"
|
#define SECURITY_STRING_BUNDLE_URL "chrome://pipnss/locale/security.properties"
|
||||||
|
|
||||||
#define IS_SECURE(state) ((state & 0xFFFF) == STATE_IS_SECURE)
|
#define IS_SECURE(state) ((state & 0xFFFF) == STATE_IS_SECURE)
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(nsSecurityWarningDialogs, nsISecurityWarningDialog
|
||||||
|
|
||||||
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
|
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
|
||||||
|
|
||||||
#define STRING_BUNDLE_URL "chrome://communicator/locale/security.properties"
|
#define STRING_BUNDLE_URL "chrome://pipnss/locale/security.properties"
|
||||||
|
|
||||||
#define ENTER_SITE_PREF "security.warn_entering_secure"
|
#define ENTER_SITE_PREF "security.warn_entering_secure"
|
||||||
#define WEAK_SITE_PREF "security.warn_entering_weak"
|
#define WEAK_SITE_PREF "security.warn_entering_weak"
|
||||||
|
|
|
@ -4,3 +4,4 @@ pipnss.jar:
|
||||||
en-US.jar:
|
en-US.jar:
|
||||||
* locale/en-US/pipnss/contents.rdf (locale/en-US/contents.rdf)
|
* locale/en-US/pipnss/contents.rdf (locale/en-US/contents.rdf)
|
||||||
locale/en-US/pipnss/pipnss.properties (locale/en-US/pipnss.properties)
|
locale/en-US/pipnss/pipnss.properties (locale/en-US/pipnss.properties)
|
||||||
|
locale/en-US/pipnss/security.properties (locale/en-US/security.properties)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче