зеркало из https://github.com/mozilla/gecko-dev.git
If the security resource isn't present, catch the exception and proceed.
This commit is contained in:
Родитель
ca5f1c81c2
Коммит
5d1454fa9c
|
@ -1637,11 +1637,11 @@ public final class Context {
|
|||
return null;
|
||||
}
|
||||
|
||||
private static boolean requireSecurityDomain;
|
||||
private static boolean requireSecurityDomain = true;
|
||||
static {
|
||||
ResourceBundle rb = ResourceBundle.getBundle(
|
||||
"org.mozilla.javascript.resources.Security");
|
||||
try {
|
||||
ResourceBundle rb = ResourceBundle.getBundle(
|
||||
"org.mozilla.javascript.resources.Security");
|
||||
String s = rb.getString("security.requireSecurityDomain");
|
||||
requireSecurityDomain = s.equals("true");
|
||||
} catch (java.util.MissingResourceException mre) {
|
||||
|
|
|
@ -1637,11 +1637,11 @@ public final class Context {
|
|||
return null;
|
||||
}
|
||||
|
||||
private static boolean requireSecurityDomain;
|
||||
private static boolean requireSecurityDomain = true;
|
||||
static {
|
||||
ResourceBundle rb = ResourceBundle.getBundle(
|
||||
"org.mozilla.javascript.resources.Security");
|
||||
try {
|
||||
ResourceBundle rb = ResourceBundle.getBundle(
|
||||
"org.mozilla.javascript.resources.Security");
|
||||
String s = rb.getString("security.requireSecurityDomain");
|
||||
requireSecurityDomain = s.equals("true");
|
||||
} catch (java.util.MissingResourceException mre) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче