<?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>24699</bug_id>
          
          <creation_ts>2009-03-19 10:39:06 -0700</creation_ts>
          <short_desc>REGRESSION: Java Applets broken</short_desc>
          <delta_ts>2009-03-24 09:27:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Amit Joshi">amit</reporter>
          <assigned_to name="Sam Weinig">sam</assigned_to>
          <cc>amit</cc>
    
    <cc>ap</cc>
    
    <cc>finnur.webkit</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114336</commentid>
    <comment_count>0</comment_count>
    <who name="Amit Joshi">amit</who>
    <bug_when>2009-03-19 10:39:06 -0700</bug_when>
    <thetext>Java applets that do not specify &apos;codebase&apos; in the embed/object tag do not work. This is due to a recent Revision 41568.

If codebase is not specified, then HTMLAppletElement::createRenderer sets it using args.set(&quot;codeBase&quot;, document()-&gt;baseURL().string());  This sets it to the page url instead of it&apos;s base path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114359</commentid>
    <comment_count>1</comment_count>
    <who name="Finnur Thorarinsson">finnur.webkit</who>
    <bug_when>2009-03-19 13:08:43 -0700</bug_when>
    <thetext>Amit. Isn&apos;t that by design?

http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html

Quote:

CODEBASE = codebaseURL
This OPTIONAL attribute specifies the base URL of the applet--the directory that contains the applet&apos;s code. If this attribute is not specified, then the document&apos;s URL is used.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114370</commentid>
    <comment_count>2</comment_count>
    <who name="Jon@Chromium">jon</who>
    <bug_when>2009-03-19 13:57:40 -0700</bug_when>
    <thetext>Also reported against Chromium, see http://code.google.com/p/chromium/issues/detail?id=8936</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114642</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-03-21 04:21:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/6707494&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114863</commentid>
    <comment_count>4</comment_count>
      <attachid>28871</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2009-03-23 16:05:29 -0700</bug_when>
    <thetext>Created attachment 28871
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114864</commentid>
    <comment_count>5</comment_count>
      <attachid>28871</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2009-03-23 16:12:19 -0700</bug_when>
    <thetext>Comment on attachment 28871
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114866</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2009-03-23 16:19:18 -0700</bug_when>
    <thetext>FIxed in r41922.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114914</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-03-23 23:41:01 -0700</bug_when>
    <thetext>+String KURL::baseAsString() const
+{
+    return m_string.left(m_pathAfterLastSlash);
+}

It&apos;s quite confusing that KURL now uses &quot;base&quot;  in different meanings. It&apos;s especially so when comparing to CFURLRef/NSURL, which remember the base URL they were created with, and have accessors for it. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114940</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2009-03-24 08:36:16 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; +String KURL::baseAsString() const
&gt; +{
&gt; +    return m_string.left(m_pathAfterLastSlash);
&gt; +}
&gt; 
&gt; It&apos;s quite confusing that KURL now uses &quot;base&quot;  in different meanings. It&apos;s
&gt; especially so when comparing to CFURLRef/NSURL, which remember the base URL
&gt; they were created with, and have accessors for it. 
&gt; 

Good point.  Do you have a suggestion for a better name?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114945</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-03-24 09:27:22 -0700</bug_when>
    <thetext>Maybe parentDirectoryPath()? This will also make it clearer that the method only works properly for hierarchical URL schemes.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28871</attachid>
            <date>2009-03-23 16:05:29 -0700</date>
            <delta_ts>2009-03-23 16:12:19 -0700</delta_ts>
            <desc>patch</desc>
            <filename>javaCodeBase.diff</filename>
            <type>text/plain</type>
            <size>2200</size>
            <attacher name="Sam Weinig">sam</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDQxOTIx
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTkgQEAKKzIwMDktMDMt
MjMgIFNhbSBXZWluaWcgIDxzYW1Ad2Via2l0Lm9yZz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PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHBsYXRmb3JtL0tVUkwuaAkocmV2aXNp
b24gNDE5MTkpCisrKyBwbGF0Zm9ybS9LVVJMLmgJKHdvcmtpbmcgY29weSkKQEAgLTEyMyw2ICsx
MjMsOCBAQCBwdWJsaWM6CiAgICAgU3RyaW5nIHJlZigpIGNvbnN0OyAvLyBEb2VzICpub3QqIGlu
Y2x1ZGUgdGhlICIjIi4KICAgICBib29sIGhhc1JlZigpIGNvbnN0OwogCisgICAgU3RyaW5nIGJh
c2VBc1N0cmluZygpIGNvbnN0OworCiAgICAgU3RyaW5nIHByZXR0eVVSTCgpIGNvbnN0OwogICAg
IFN0cmluZyBmaWxlU3lzdGVtUGF0aCgpIGNvbnN0OwogCg==
</data>
<flag name="review"
          id="14259"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>