<?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>59328</bug_id>
          
          <creation_ts>2011-04-25 09:50:23 -0700</creation_ts>
          <short_desc>Crash beneath WKURLIsEqual() when reloading in MiniBrowser</short_desc>
          <delta_ts>2011-09-10 10:51:25 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>kling</cc>
    
    <cc>sam</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>391796</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-04-25 09:50:23 -0700</bug_when>
    <thetext>Steps to reproduce:
Run MiniBrowser
After the WebKit Open Source Project webpage loads, click the Reload button several times

Result:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   com.apple.WebKit2             	0x0000000100022658 WTF::RefPtr&lt;WTF::StringImpl&gt;::get() const + 12 (RefPtr.h:60)
1   com.apple.WebKit2             	0x000000010005d999 WTF::String::impl() const + 21 (WTFString.h:126)
2   com.apple.WebKit2             	0x000000010005fbb4 WTF::operator==(WTF::String const&amp;, WTF::String const&amp;) + 38 (WTFString.h:365)
3   com.apple.WebKit2             	0x0000000100156429 WKURLIsEqual + 65 (WKURL.cpp:50)
4   com.yourcompany.MiniBrowser   	0x0000000100003f7d -[BrowserWindowController updateProvisionalURLForFrame:] + 81 (BrowserWindowController.m:684)
5   com.apple.WebKit2             	0x000000010008b6fc WebKit::WebLoaderClient::didFailLoadWithErrorForFrame(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, WebCore::ResourceError const&amp;, WebKit::APIObject*) + 142 (WebLoaderClient.cpp:91)
6   com.apple.WebKit2             	0x00000001000a8421 WebKit::WebPageProxy::didFailLoadForFrame(unsigned long long, WebCore::ResourceError const&amp;, CoreIPC::ArgumentDecoder*) + 273 (WebPageProxy.cpp:1612)
7   com.apple.WebKit2             	0x000000010016b2f0 void CoreIPC::callMemberFunction&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(unsigned long long, WebCore::ResourceError const&amp;, CoreIPC::ArgumentDecoder*), unsigned long long, WebCore::ResourceError&gt;(CoreIPC::Arguments2&lt;unsigned long long, WebCore::ResourceError&gt; const&amp;, CoreIPC::ArgumentDecoder*, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned long long, WebCore::ResourceError const&amp;, CoreIPC::ArgumentDecoder*)) + 114 (HandleMessage.h:204)
8   com.apple.WebKit2             	0x0000000100172fd3 void CoreIPC::handleMessageVariadic&lt;Messages::WebPageProxy::DidFailLoadForFrame, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(unsigned long long, WebCore::ResourceError const&amp;, CoreIPC::ArgumentDecoder*)&gt;(CoreIPC::ArgumentDecoder*, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned long long, WebCore::ResourceError const&amp;, CoreIPC::ArgumentDecoder*)) + 83 (HandleMessage.h:286)
9   com.apple.WebKit2             	0x0000000100169bcb WebKit::WebPageProxy::didReceiveWebPageProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 2777 (WebPageProxyMessageReceiver.cpp:180)
10  com.apple.WebKit2             	0x00000001000a96ef WebKit::WebPageProxy::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 251 (WebPageProxy.cpp:1352)
11  com.apple.WebKit2             	0x00000001000ec99b WebKit::WebProcessProxy::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 327 (WebProcessProxy.cpp:261)
12  com.apple.WebKit2             	0x0000000100016aee CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message&lt;CoreIPC::ArgumentDecoder&gt;&amp;) + 292 (Connection.cpp:646)
13  com.apple.WebKit2             	0x0000000100016c39 CoreIPC::Connection::dispatchMessages() + 105 (Connection.cpp:667)
14  com.apple.WebKit2             	0x00000001000190fd MemberFunctionWorkItem0&lt;CoreIPC::Connection&gt;::execute() + 109 (WorkItem.h:76)
15  com.apple.WebKit2             	0x0000000100052e25 RunLoop::performWork() + 119 (RunLoop.cpp:61)
16  com.apple.WebKit2             	0x0000000100053f41 RunLoop::performWork(void*) + 93 (RunLoopMac.mm:38)
17  com.apple.CoreFoundation      	0x00007fff8593e401 __CFRunLoopDoSources0 + 1361
18  com.apple.CoreFoundation      	0x00007fff8593c5f9 __CFRunLoopRun + 873
19  com.apple.CoreFoundation      	0x00007fff8593bdbf CFRunLoopRunSpecific + 575
20  com.apple.HIToolbox           	0x00007fff861f07ee RunCurrentEventLoopInMode + 333
21  com.apple.HIToolbox           	0x00007fff861f05f3 ReceiveNextEventCommon + 310
22  com.apple.HIToolbox           	0x00007fff861f04ac BlockUntilNextEventMatchingListInMode + 59
23  com.apple.AppKit              	0x00007fff8718be64 _DPSNextEvent + 718
24  com.apple.AppKit              	0x00007fff8718b7a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
25  com.apple.AppKit              	0x00007fff8715148b -[NSApplication run] + 395
26  com.apple.AppKit              	0x00007fff8714a1a8 NSApplicationMain + 364
27  com.yourcompany.MiniBrowser   	0x0000000100001c84 start + 52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465296</commentid>
    <comment_count>1</comment_count>
      <attachid>106976</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-09-10 07:33:54 -0700</bug_when>
    <thetext>Created attachment 106976
Proposed patch

Add missing null check for the WKURLRef returned by WKFrameCopyProvisionalURL().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465300</commentid>
    <comment_count>2</comment_count>
      <attachid>106976</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-09-10 10:51:21 -0700</bug_when>
    <thetext>Comment on attachment 106976
Proposed patch

Clearing flags on attachment: 106976

Committed r94909: &lt;http://trac.webkit.org/changeset/94909&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>465301</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-09-10 10:51:25 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>106976</attachid>
            <date>2011-09-10 07:33:54 -0700</date>
            <delta_ts>2011-09-10 10:51:21 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>bug-59328.diff</filename>
            <type>text/plain</type>
            <size>1151</size>
            <attacher name="Andreas Kling">kling</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCBhMWMy
YjlmLi44OGIzM2EyIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTMgQEAKKzIwMTEtMDktMTAgIEFuZHJlYXMgS2xpbm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