Bug 458061 - Opening Venkman shouldn't touch java
r=ajvincent@gmail.com (Alex Vincent) Venkman Only. NPOTFFB. git-svn-id: svn://10.0.0.236/trunk@254576 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c2b23c63d3
commit
c865293da3
@ -56,13 +56,6 @@ else
|
|||||||
{
|
{
|
||||||
if (typeof dump == "function")
|
if (typeof dump == "function")
|
||||||
dumpln = function (str) {dump (str + "\n");}
|
dumpln = function (str) {dump (str + "\n");}
|
||||||
else if (jsenv.HAS_RHINO)
|
|
||||||
{
|
|
||||||
dumpln = function (str) {
|
|
||||||
var out = java.lang.System.out;
|
|
||||||
out.println(str); out.flush();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
dumpln = function () {} /* no suitable function */
|
dumpln = function () {} /* no suitable function */
|
||||||
}
|
}
|
||||||
@ -117,14 +110,6 @@ if (DEBUG) {
|
|||||||
dd = function (){};
|
dd = function (){};
|
||||||
}
|
}
|
||||||
|
|
||||||
var jsenv = new Object();
|
|
||||||
jsenv.HAS_SECURITYMANAGER = ((typeof netscape == "object") &&
|
|
||||||
(typeof netscape.security == "object"));
|
|
||||||
jsenv.HAS_XPCOM = ((typeof Components == "object") &&
|
|
||||||
(typeof Components.classes == "object"));
|
|
||||||
jsenv.HAS_JAVA = (typeof java == "object");
|
|
||||||
jsenv.HAS_RHINO = (typeof defineClass == "function");
|
|
||||||
jsenv.HAS_DOCUMENT = (typeof document == "object");
|
|
||||||
|
|
||||||
/* Dumps an object in tree format, recurse specifiec the the number of objects
|
/* Dumps an object in tree format, recurse specifiec the the number of objects
|
||||||
* to recurse, compress is a boolean that can uncompress (true) the output
|
* to recurse, compress is a boolean that can uncompress (true) the output
|
||||||
@ -762,9 +747,6 @@ function renameProperty (obj, oldname, newname)
|
|||||||
|
|
||||||
function newObject(contractID, iface)
|
function newObject(contractID, iface)
|
||||||
{
|
{
|
||||||
if (!jsenv.HAS_XPCOM)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
var obj = Components.classes[contractID].createInstance();
|
var obj = Components.classes[contractID].createInstance();
|
||||||
var rv;
|
var rv;
|
||||||
|
|
||||||
@ -1026,10 +1008,6 @@ function randomRange (min, max)
|
|||||||
|
|
||||||
function getStackTrace ()
|
function getStackTrace ()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!jsenv.HAS_XPCOM)
|
|
||||||
return "No stack trace available.";
|
|
||||||
|
|
||||||
var frame = Components.stack.caller;
|
var frame = Components.stack.caller;
|
||||||
var str = "<top>";
|
var str = "<top>";
|
||||||
|
|
||||||
@ -1046,9 +1024,6 @@ function getStackTrace ()
|
|||||||
|
|
||||||
function getInterfaces (cls)
|
function getInterfaces (cls)
|
||||||
{
|
{
|
||||||
if (!jsenv.HAS_XPCOM)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
var rv = new Object();
|
var rv = new Object();
|
||||||
var e;
|
var e;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user