[Webkit-unassigned] [Bug 51042] REGRESSION (r70748): A Java applet on netdania.com won't load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 26 19:40:01 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=51042





--- Comment #5 from Andy Estes <aestes at apple.com>  2011-01-26 19:40:01 PST ---
Here is the snippet this site uses to load the java applet:

if(BrowserDetect.browser == "Safari" || BrowserDetect.browser == "Explorer")
{
    document.writeln('<object id="detectjvmapplet" name="detectjvmapplet" WIDTH = "1" HEIGHT = "1" codetype="application/java" type="application/x-java-applet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93">');
    document.writeln('<param name = "code" VALUE = "DetectJVM.class" />');    
    document.writeln('<param name = "codebase" VALUE = "/JavaClasses/" />');
    document.writeln('<param name = "mayscript" VALUE = "true"/>');
    document.writeln('<param name= "scriptable" VALUE="true"/>');
    document.writeln('</object>');
}    
else
{
    document.writeln('<applet code="DetectJVM.class" id="detectjvmapplet" codebase="/JavaClasses/" width="0" height="0"></applet>');
}

Of course if they didn't send Safari down an IE-specific code path everything would work fine :(

(Note that UA spoofing won't work on this site since BrowserDetect.browser is set to 'Safari' based on navigator.vendor, not navigator.userAgent).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list