js console says "Error: can't convert Object to string"
More fun: in JS console, type netscape and click Evaluate in Chatzilla, type /eval netscape in Venkman, type netscape This last one crashed for me, so upping severity.
Severity: trivial → major
I typed netscape in Venkman 0.9.81 and didn't crash. I typed typeof this.netscape in Venkman and got "undefined"; in the evaluate input of the js console, I got no error.
Assignee: general → kyle.yuan
Component: DOM: Level 0 → Java: Live Connect
OS: Windows 2000 → All
Hardware: PC → All
"netscape" is defined in nsSecurityNameSet::InitializeNameSet http://lxr.mozilla.org/seamonkey/source/caps/src/nsSecurityManagerFactory.cpp#288 And this method gets called before liveconnect initialized. http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsJSEnvironment.cpp#1822
So, two bugs: - One in liveconnect, for not making "java" and "Packages.java" refer to the same object (ditto for sun and netscape). - Another in CAPS or the DOM for preempting "netscape". This bug could be used for either, but the second is what caused timeless to file it, so I've filed bug 248409 for the first problem, assigned to Kyle. Relocating this bug to DOM for now. /be
Assignee: kyle.yuan → general
Component: Java: Live Connect → DOM: Level 0
Doesn't CAPS have to pre-empt "netscape" so that we can support the privilegeManager calls in the absence of Java? (Or, I guess, even in the presence of Java, since we're not forwarding the enablePrivilege stuff through OJI regardless.)
No alert in 188.8.131.52; I get a page saying "[object Object]".
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.