<?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>10940</bug_id>
          
          <creation_ts>2006-09-19 17:14:36 -0700</creation_ts>
          <short_desc>REGRESSION: WebKit crashes when opening a PDF in a new window</short_desc>
          <delta_ts>2006-09-19 19:51: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>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.math.tamu.edu/~austin/wirmath151.html</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="Mark Rowe (bdash)">mrowe</reporter>
          <assigned_to name="Mark Rowe (bdash)">mrowe</assigned_to>
          <cc>tyler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55963</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2006-09-19 17:14:36 -0700</bug_when>
    <thetext>Steps to reproduce:

1) Visit http://www.math.tamu.edu/~austin/wirmath151.html
2) Right click on &apos;Week 1 in Review&apos; and select &quot;Open Link in New Window&quot;
3) *boom*

Backtrace follows.

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x000006f4

Thread 0 Crashed:
0   com.apple.WebCore        	0x0111095d WebCore::Document::iconURL() + 9
1   com.apple.WebCore        	0x010f107b WebCore::Frame::iconURL() + 99
2   com.apple.WebCore        	0x010f16a1 WebCore::Frame::endIfNotLoading() + 293
3   com.apple.WebKit         	0x00379fe3 -[WebFrameLoader _finishedLoading] + 73
4   com.apple.WebKit         	0x0037d281 -[WebMainResourceLoader didFinishLoading] + 55
5   com.apple.WebKit         	0x0037c1f2 -[WebLoader connectionDidFinishLoading:] + 40
6   com.apple.Foundation     	0x9278fa6c -[NSURLConnection(NSURLConnectionInternal) _sendDidFinishLoadingCallback] + 176
7   com.apple.Foundation     	0x9278db15 -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] + 748
8   com.apple.Foundation     	0x9278d7b3 _sendCallbacks + 201
9   com.apple.CoreFoundation 	0x90823379 CFRunLoopRunSpecific + 1213
10  com.apple.CoreFoundation 	0x90822eb5 CFRunLoopRunInMode + 61
11  com.apple.HIToolbox      	0x92f02b90 RunCurrentEventLoopInMode + 285
12  com.apple.HIToolbox      	0x92f02297 ReceiveNextEventCommon + 385
13  com.apple.HIToolbox      	0x92f020ee BlockUntilNextEventMatchingListInMode + 81
14  com.apple.AppKit         	0x933a3771 _DPSNextEvent + 576
15  com.apple.AppKit         	0x933a335e -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
16  com.apple.Safari         	0x00006f96 0x1000 + 24470
17  com.apple.AppKit         	0x9339d0e3 -[NSApplication run] + 512
18  com.apple.AppKit         	0x93391037 NSApplicationMain + 573
19  com.apple.Safari         	0x0005f7de 0x1000 + 387038
20  com.apple.Safari         	0x0005f6f9 0x1000 + 386809</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55965</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2006-09-19 17:18:26 -0700</bug_when>
    <thetext>When you open a PDF in a new frame, that frame doesn&apos;t have a Document, but we don&apos;t check for a NULL document()

Patch is coming very shortly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55966</commentid>
    <comment_count>2</comment_count>
    <who name="R. Tyler Ballance">tyler</who>
    <bug_when>2006-09-19 17:19:49 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Steps to reproduce:
&gt; 

Thanks Mark, I&apos;m not in a good mood today, exam tomorrow ;)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55969</commentid>
    <comment_count>3</comment_count>
      <attachid>10656</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2006-09-19 17:37:37 -0700</bug_when>
    <thetext>Created attachment 10656
The Fix!

After determining the root of the problem, thankfully t&apos;was a one-liner fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55970</commentid>
    <comment_count>4</comment_count>
      <attachid>10656</attachid>
    <who name="Kevin McCullough">kmccullough</who>
    <bug_when>2006-09-19 17:45:14 -0700</bug_when>
    <thetext>Comment on attachment 10656
The Fix!

looks sweet</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55971</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2006-09-19 17:46:59 -0700</bug_when>
    <thetext>Submitted in r16457, please verify</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55990</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2006-09-19 19:51:22 -0700</bug_when>
    <thetext>Excellent!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>10656</attachid>
            <date>2006-09-19 17:37:37 -0700</date>
            <delta_ts>2006-09-19 17:45:14 -0700</delta_ts>
            <desc>The Fix!</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1115</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJK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BpZiAoZG9jdW1lbnQoKSAmJiAhZG9jdW1lbnQoKS0+aWNvblVSTCgpLmlzRW1w
dHkoKSkKICAgICAgICAgcmV0dXJuIEtVUkwoZG9jdW1lbnQoKS0+aWNvblVSTCgpLmRlcHJlY2F0
ZWRTdHJpbmcoKSk7CiAgICAgICAgIAogICAgIC8vIERvbid0IHJldHVybiBhIGZhdmljb24gaWNv
blVSTCB1bmxlc3Mgd2UncmUgaHR0cCBvciBodHRwcwo=
</data>
<flag name="review"
          id="3485"
          type_id="1"
          status="+"
          setter="kmccullough"
    />
          </attachment>
      

    </bug>

</bugzilla>