Bug 751378 - Remove unused CAPS strings from stringbundle. r=bz

This commit is contained in:
Cykesiopka 2013-03-12 15:55:50 -04:00
parent e132b7ac16
commit af490f4b91
2 changed files with 2 additions and 12 deletions

View File

@ -21,12 +21,12 @@ exports.testStringBundle = function(test) {
getService(Ci.nsIStringBundleService).
createBundle(url, appLocale);
let (name = "Yes") {
let (name = "CheckMessage") {
test.assertEqual(strings.get(name), stringBundle.GetStringFromName(name),
"getting a string returns the string");
}
let (name = "ExtensionCapability", args = ["foo"]) {
let (name = "CreateWrapperDenied", args = ["foo"]) {
test.assertEqual(strings.get(name, args),
stringBundle.formatStringFromName(name, args, args.length),
"getting a formatted string returns the formatted string");

View File

@ -1,12 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Yes = Allow
No = Deny
Titleline = Internet Security
CheckMessage = Remember this decision
EnableCapabilityQuery = A script from "%S" is requesting enhanced abilities that are UNSAFE and could be used to compromise your machine or data:\n\n%S\n\nAllow these abilities only if you trust this source to be free of viruses or malicious programs.
EnableCapabilityDenied = A script from "%S" was denied %S privileges.
CheckLoadURIError = Security Error: Content at %S may not load or link to %S.
CheckSameOriginError = Security Error: Content at %S may not load data from %S.
@ -114,9 +109,4 @@ SetPropertyDeniedOriginsOnlySubject = Permission denied for <%S> to set property
CallMethodDeniedOriginsOnlySubject = Permission denied for <%S> to call method %S.%S
CreateWrapperDenied = Permission denied to create wrapper for object of class %S
CreateWrapperDeniedForOrigin = Permission denied for <%2$S> to create wrapper for object of class %1$S
ExtensionCapability = Unknown: %S
ProtocolFlagError = Warning: Protocol handler for '%S' doesn't advertise a security policy. While loading of such protocols is allowed for now, this is deprecated. Please see the documentation in nsIProtocolHandler.idl.
#
# The following descriptions are shown in the EnableCapabilityQuery dialog
#
capdesc.UniversalXPConnect = Run or install software on your machine