I'm not seeing any popups or alerts. 2002052306 - win98 Though I have this feeling my java is borked...
Mozilla crashes when the demo URL (http://www.california.com/~binard/java/J2Js.html) is visited. Mozilla info: Mozilla 1.2a Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910 Plugins info: Java Plug-in1.3.1_04 FileName: libjavaplugin_oji.so
Got it - the JSObject functions in NSCLiveConnect.cpp need to call nsIScriptSecurityManager::CanExecuteScripts. I should probably refactor some getService calls; probably cache the security manager service here. Patch coming soon.
Created attachment 114833 [details] [diff] [review] Patch - call CanExecuteScripts before calling from Java to JS.
For Netscape folks, there's a simplified testcase at http://warp.mcom.com/u/mstoltz/bugs/CallJS.html
15 years ago
Comment on attachment 114833 [details] [diff] [review] Patch - call CanExecuteScripts before calling from Java to JS. sr=jst
Fix checked in.