<?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>11439</bug_id>
          
          <creation_ts>2006-10-27 13:46:25 -0700</creation_ts>
          <short_desc>REGRESSION: Another page loading crash</short_desc>
          <delta_ts>2006-10-27 14:35:29 -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>Page Loading</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>http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;taxonomyName=windows&amp;articleId=9004437&amp;taxonomyId=125</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lilek">dev+webkit</reporter>
          <assigned_to name="John Sullivan">sullivan</assigned_to>
          <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49310</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2006-10-27 13:46:25 -0700</bug_when>
    <thetext>The above url causes WebKit to crash with the following backtrace:

0   com.apple.WebCore        	0x013f5130 WebCore::DocumentLoader::originalRequestCopy() const + 0
1   com.apple.WebKit         	0x0032c0b0 -[WebFrame(WebInternal) _createItemTreeWithTargetFrame:clippedAtTarget:] + 80
2   com.apple.WebKit         	0x0032c13c -[WebFrame(WebInternal) _createItemTreeWithTargetFrame:clippedAtTarget:] + 220
3   com.apple.WebKit         	0x0032788c -[WebFrame(WebInternal) _addBackForwardItemClippedAtTarget:] + 108
4   com.apple.WebCore        	0x013fa9d4 WebCore::FrameLoader::transitionToCommitted(NSDictionary*) + 372
5   com.apple.WebCore        	0x013fc0fc WebCore::FrameLoader::commitProvisionalLoad(NSDictionary*) + 252
6   com.apple.WebCore        	0x013f4e98 WebCore::DocumentLoader::commitLoad(NSData*) + 56
7   com.apple.WebCore        	0x013f5504 WebCore::DocumentLoader::receivedData(NSData*) + 164
8   com.apple.WebCore        	0x013ffedc WebCore::WebResourceLoader::didReceiveData(NSData*, long long, bool) + 76
9   com.apple.WebCore        	0x01401c14 WebCore::MainResourceLoader::didReceiveData(NSData*, long long, bool) + 52
10  com.apple.WebCore        	0x013ff0d4 -[WebCoreResourceLoaderAsDelegate connection:didReceiveData:lengthReceived:] + 84</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49254</commentid>
    <comment_count>1</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-10-27 14:07:33 -0700</bug_when>
    <thetext>Crash is here:

    if (useOriginal)
        request = [dataSrc _documentLoader]-&gt;originalRequestCopy();
    else
        request = [dataSrc request];

I suspect the fix is to fall back to [dataSrc request] in the case where [dataSrc _documentLoader] returns nil, but someone should check what this code used to do in the case where [dataSrc _documentLoader] returned nil.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49201</commentid>
    <comment_count>2</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-10-27 14:22:47 -0700</bug_when>
    <thetext>- (WebHistoryItem *)_createItem:(BOOL)useOriginal
{
    WebDataSource *dataSrc = [self dataSource];

dataSrc is nil here, which is why [dataSrc _documentLoader]-&gt;originalRequestCopy() crashes.

The crashing line used to be:

request = [[dataSrc _documentLoader] originalRequestCopy];

The change was in 17245. I&apos;ll test the simple fix of changing this one line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49202</commentid>
    <comment_count>3</comment_count>
      <attachid>11261</attachid>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-10-27 14:31:51 -0700</bug_when>
    <thetext>Created attachment 11261
patch to restore nil-handling behavior</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49203</commentid>
    <comment_count>4</comment_count>
      <attachid>11261</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2006-10-27 14:34:10 -0700</bug_when>
    <thetext>Comment on attachment 11261
patch to restore nil-handling behavior

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49204</commentid>
    <comment_count>5</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-10-27 14:35:29 -0700</bug_when>
    <thetext>Checked in as svn revision 17388.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11261</attachid>
            <date>2006-10-27 14:31:51 -0700</date>
            <delta_ts>2006-10-27 14:34:10 -0700</delta_ts>
            <desc>patch to restore nil-handling behavior</desc>
            <filename>11439_patch.txt</filename>
            <type>text/plain</type>
            <size>1538</size>
            <attacher name="John Sullivan">sullivan</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cgICAocmV2aXNpb24gMTcz
ODcpCisrKyBDaGFuZ2VMb2cgICAod29ya2luZyBjb3B5KQpAQCAtMSw1ICsxLDE2IEBACiAyMDA2
LTEwLTI3ICBKb2huIFN1bGxpdmFuICA8c3VsbGl2YW5AYXBwbGUuY29tPgogCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorICAgICAgICAKKyAgICAgICAgLSBmaXhlZCBodHRw
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMTQzOSAKKyAgICAgICAgICBSRUdS
RVNTSU9OOiBBbm90aG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F1ZXN0ID0gW2RhdGFTcmMgcmVxdWVz
dF07CiAKQEAgLTI1OSw3ICsyNjAsNyBAQAogICAgICAgICBvcmlnaW5hbFVSTCA9IHVucmVhY2hh
YmxlVVJMOwogICAgIH0gZWxzZSB7CiAgICAgICAgIFVSTCA9IFtyZXF1ZXN0IFVSTF07Ci0gICAg
ICAgIG9yaWdpbmFsVVJMID0gW1tkYXRhU3JjIF9kb2N1bWVudExvYWRlcl0tPm9yaWdpbmFsUmVx
dWVzdENvcHkoKSBVUkxdOworICAgICAgICBvcmlnaW5hbFVSTCA9IGRvY3VtZW50TG9hZGVyID8g
W2RvY3VtZW50TG9hZGVyLT5vcmlnaW5hbFJlcXVlc3RDb3B5KCkgVVJMXSA6IG5pbDsKICAgICB9
CiAKICAgICBMT0cgKEhpc3RvcnksICJjcmVhdGluZyBpdGVtIGZvciAlQCIsIHJlcXVlc3QpOwo=
</data>
<flag name="review"
          id="3881"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>