<?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>10813</bug_id>
          
          <creation_ts>2006-09-11 13:39:18 -0700</creation_ts>
          <short_desc>REGRESSION (r16245): double-clicking on javascript exceptions fails to show source</short_desc>
          <delta_ts>2006-09-17 23:38:27 -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>WebKit Misc.</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55262</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-11 13:39:18 -0700</bug_when>
    <thetext>Regression: double-clicking on javascript exceptions fails to show source

Perhaps this is specific to SVG files, not sure.  Either way, this used to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55265</commentid>
    <comment_count>1</comment_count>
      <attachid>10506</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-11 13:57:13 -0700</bug_when>
    <thetext>Created attachment 10506
svg file containing bad javascript to trigger exception</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55269</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-09-11 15:31:07 -0700</bug_when>
    <thetext>The regression happend between in r16245 (text encoding fixes, bug 10728).
+[WebCoreFrameBridge stringWithData:textEncodingName:] is assumed to default to Latin-1 when passed nil for the encoding name, but nothing in the code supports it: TextEncoding just passes the nil down to atomicCanonicalTextEncodingName() which returns 0. The TextEncoding&apos;s m_encoding remains 0, and consequently it doesn&apos;t decode or encode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55442</commentid>
    <comment_count>3</comment_count>
      <attachid>10543</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-13 14:02:36 -0700</bug_when>
    <thetext>Created attachment 10543
A hack-ish fix.

Not sure if this is the right way to fix it or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55523</commentid>
    <comment_count>4</comment_count>
      <attachid>10543</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-09-14 12:54:21 -0700</bug_when>
    <thetext>Comment on attachment 10543
A hack-ish fix.

r=me (yes, even without a ChangeLog entry ;) )

I think that this patch properly fixes the regression, but the behavior is still seriously broken. This code path is used when HTTP headers don&apos;t specify an encoding, but there are numerous other ways for WebCore to pick one, and the same encoding should be used for handling a resource and for providing it source, obviously. 

+    NSString* name = textEncodingName ? textEncodingName : @&quot;Latin-1&quot;;

We usually call this encoding &quot;iso-8859-1&quot;. Might make sense to do so here for consistency, as well.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10506</attachid>
            <date>2006-09-11 13:57:13 -0700</date>
            <delta_ts>2006-09-11 13:57:13 -0700</delta_ts>
            <desc>svg file containing bad javascript to trigger exception</desc>
            <filename>animtest.svg</filename>
            <type>image/svg+xml</type>
            <size>1044</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PD94b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nZhbHVl
KTsKICAgICAgaWYgKChyZWN0LnguYmFzZVZhbC52YWx1ZSA9PSByZWN0LnguYW5pbVZhbC52YWx1
ZSkgJiYgKHJlY3QueC5hbmltVmFsLnZhbHVlID09IDEwKSkKICAgICAgICBsb2coIlNVQ0NFU1Mh
Iik7CiAgICB9IGVsc2UgewogICAgICBsb2coIkZBSUxFRCwgcmVjdC54LmJhc2VWYWwgb3IgcmVj
dC54LmFuaW1WYWwgdW5kZWZpbmVkLiIpCiAgICB9CiAgICBhbGVydCgiZG9uZSIpOwogIF1dPgog
IDwvc2NyaXB0Pgo8L3N2Zz4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>10543</attachid>
            <date>2006-09-13 14:02:36 -0700</date>
            <delta_ts>2006-09-14 12:54:21 -0700</delta_ts>
            <desc>A hack-ish fix.</desc>
            <filename>fix.patch</filename>
            <type>text/plain</type>
            <size>699</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">SW5kZXg6IGJyaWRnZS9tYWMvV2ViQ29yZUZyYW1lQnJpZGdlLm1tCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGJy
aWRnZS9tYWMvV2ViQ29yZUZyYW1lQnJpZGdlLm1tCShyZXZpc2lvbiAxNjM0NikKKysrIGJyaWRn
ZS9tYWMvV2ViQ29yZUZyYW1lQnJpZGdlLm1tCSh3b3JraW5nIGNvcHkpCkBAIC0xNDg4LDcgKzE0
ODgsOCBAQCBzdGF0aWMgSFRNTEZvcm1FbGVtZW50ICpmb3JtRWxlbWVudEZyb21ECiAKICsgKE5T
U3RyaW5nICopc3RyaW5nV2l0aERhdGE6KE5TRGF0YSAqKWRhdGEgdGV4dEVuY29kaW5nTmFtZToo
TlNTdHJpbmcgKil0ZXh0RW5jb2RpbmdOYW1lCiB7Ci0gICAgcmV0dXJuIFdlYkNvcmU6OlRleHRF
bmNvZGluZyh0ZXh0RW5jb2RpbmdOYW1lKS5kZWNvZGUocmVpbnRlcnByZXRfY2FzdDxjb25zdCBj
aGFyKj4oW2RhdGEgYnl0ZXNdKSwgW2RhdGEgbGVuZ3RoXSk7CisgICAgTlNTdHJpbmcqIG5hbWUg
PSB0ZXh0RW5jb2RpbmdOYW1lID8gdGV4dEVuY29kaW5nTmFtZSA6IEAiTGF0aW4tMSI7CisgICAg
cmV0dXJuIFdlYkNvcmU6OlRleHRFbmNvZGluZyhuYW1lKS5kZWNvZGUocmVpbnRlcnByZXRfY2Fz
dDxjb25zdCBjaGFyKj4oW2RhdGEgYnl0ZXNdKSwgW2RhdGEgbGVuZ3RoXSk7CiB9CiAKIC0gKEJP
T0wpbmVlZHNMYXlvdXQK
</data>
<flag name="review"
          id="3409"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>