Various sandbox related fallbacks.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@36 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2006-08-25 05:04:59 +00:00
parent 8d67918087
commit dd7c611975
3 changed files with 84 additions and 18 deletions
@@ -181,12 +181,16 @@ public class ResourceManager
// set up a URL handler so that things can be loaded via urls
// with the 'resource' protocol
AccessController.doPrivileged(new PrivilegedAction() {
public Object run () {
Handler.registerHandler(ResourceManager.this);
return null;
}
});
try {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run () {
Handler.registerHandler(ResourceManager.this);
return null;
}
});
} catch (SecurityException se) {
Log.info("Running in sandbox. Unable to bind rsrc:// handler.");
}
}
/**