If the security resource isn't present, catch the exception and proceed.

This commit is contained in:
norris%netscape.com 1999-04-23 19:54:28 +00:00
Родитель ca5f1c81c2
Коммит 5d1454fa9c
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -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) {