<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15109</bug_id>
          
          <creation_ts>2007-08-29 08:43:12 -0700</creation_ts>
          <short_desc>Liveconnect: no window.java object available in the DOM</short_desc>
          <delta_ts>2010-02-25 23:37:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Java</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://jsx.webvm.net/liveconnectenv.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Hendry">hendry</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>shadow2531</cc>
    
    <cc>swingler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1251</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Hendry">hendry</who>
    <bug_when>2007-08-29 08:43:12 -0700</bug_when>
    <thetext>Via http://bugs.webkit.org/show_bug.cgi?id=9761 David Kilzer asked me to file a new bug about Liveconnect not working from the DOM.

I think this is the most pleasant way of accessing a Java VM, so could the bug priority be higher? Esp. since Liveconnect support is announced on http://www.apple.com/safari/download/

Btw this works in Firefox.

Thanks everyone,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1245</commentid>
    <comment_count>1</comment_count>
      <attachid>16156</attachid>
    <who name="Kai Hendry">hendry</who>
    <bug_when>2007-08-29 08:44:35 -0700</bug_when>
    <thetext>Created attachment 16156
Liveconnect enabled test

This is the same as the URL: field on the bug report</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1215</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-29 14:57:51 -0700</bug_when>
    <thetext>Confirmed with a local debug build of WebKit r25284 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-08-29 14:59:27 -0700</bug_when>
    <thetext>See also comments in Bug 9761.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60256</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-04 14:31:01 -0800</bug_when>
    <thetext>Some Mozilla LiveConnect documentation:

http://www.mozilla.org/js/liveconnect/
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:LiveConnect_Overview
http://developer.mozilla.org/en/docs/JavaScript_Language_Resources#LiveConnect

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192148</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-02-20 00:44:16 -0800</bug_when>
    <thetext>window.java is a synonym for Packages.java, see &lt;https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Packages&gt;. I&apos;m not sure if that&apos;s formally part of LiveConnect, FWIW.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193166</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-02-23 16:03:41 -0800</bug_when>
    <thetext>*** Bug 17607 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194000</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-02-25 22:18:12 -0800</bug_when>
    <thetext>Per &lt;http://java.sun.com/javase/6/webnotes/6u10/plugin2/liveconnect/index.html&gt;, the global window.java and window.Packages properties are now deprecated, and for a good reason:

----------------------------
The Mozilla family of browsers has historically provided support for access to the Java language from JavaScript even on web pages that don&apos;t contain Java applets. In this browser family, there are global java, netscape and Packages keywords available to JavaScript code which allow calling static methods, accessing static fields, and creating new instances of Java classes in similar fashion to the per-applet Packages keyword above.

The semantics of these keywords becomes problematic when more than one applet is available on the web page. If you want to access one particular applet&apos;s user-defined classes (for example, in a com.mycompany package), how would the global Packages keyword know which applet to refer to? The new Java Plug-In also supports attaching more than one Java virtual machine instance to the web browser for executing applets. The semantics of these global keywords becomes even more complicated in this situation.

For this reason, the global java, netscape and Packages JavaScript keywords are deprecated. They continue to function in the Firefox browser, but it is strongly recommended to transition existing code using them to use the new per-applet Packages keyword. It is not possible to access user-defined classes using these global keywords; attempts to do so will yield undefined results.
----------------------------

We will probably need to support per-applet Packages property at some point, but I think that the global one is a clear WONTFIX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194009</commentid>
    <comment_count>8</comment_count>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2010-02-25 23:37:38 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; Per
&gt; &lt;http://java.sun.com/javase/6/webnotes/6u10/plugin2/liveconnect/index.html&gt;,
&gt; the global window.java and window.Packages properties are now deprecated, and
&gt; for a good reason:

Yeh, since Opera 10.5 now uses the NPAPI plug-in for Java, it no longer supports window.java stuff. And, they&apos;re not going to support it either because it&apos;s deprecated. (Opera never supported all the window.java stuff FF did anyway).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16156</attachid>
            <date>2007-08-29 08:44:35 -0700</date>
            <delta_ts>2007-08-29 08:44:35 -0700</delta_ts>
            <desc>Liveconnect enabled test</desc>
            <filename>liveconnectenv.html</filename>
            <type>text/html</type>
            <size>274</size>
            <attacher name="Kai Hendry">hendry</attacher>
            
              <data encoding="base64">PGh0bWw+PGhlYWQ+PC9oZWFkPjxib2R5PjxwcmU+PHNjcmlwdD4KdHJ5IHsKdmFyIGphdmFWZXJz
aW9uID0gamF2YS5sYW5nLlN5c3RlbS5nZXRQcm9wZXJ0eSgiamF2YS52ZXJzaW9uIik7CmRvY3Vt
ZW50LndyaXRlKGphdmFWZXJzaW9uKTsKCn0KY2F0Y2ggKGV4KSB7CmRvY3VtZW50LndyaXRlKGV4
KTsKZG9jdW1lbnQud3JpdGUoIlxuXG5MaXZlQ29ubmVjdCBwcm9iYWJseSBkb2VzIG5vdCB3b3Jr
LiIpOwp9Cjwvc2NyaXB0PjEuNS4wXzA3CjwvcHJlPgo8L2JvZHk+PC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>