commit 81624d96f2427bf2f1be7893d0bd08c1f9b38f61 Author: Mike Perry mikeperry-git@fscked.org Date: Thu Jun 30 14:49:39 2011 -0700
Squelch exception from app launcher in error console. --- src/components/external-app-blocker.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/components/external-app-blocker.js b/src/components/external-app-blocker.js index f8f7ea5..a83f50c 100644 --- a/src/components/external-app-blocker.js +++ b/src/components/external-app-blocker.js @@ -107,7 +107,7 @@ ExternalWrapper.prototype = var call; if(params.length) call = "("+params.join().replace(/(?:)/g,function(){return "p"+(++x)})+")"; else call = "()"; - if(method == "getTypeFromFile" || method == "getTypeFromExtension") { + if(method == "getTypeFromFile" || method == "getTypeFromExtension" || method == "getTypeFromURI") { // XXX: Due to https://developer.mozilla.org/en/Exception_logging_in_JavaScript // this is necessary to prevent error console noise on the return to C++ code. // It is not technically correct, but as far as I can tell, returning null
tor-commits@lists.torproject.org