<?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>6382</bug_id>
          
          <creation_ts>2006-01-05 06:49:24 -0800</creation_ts>
          <short_desc>REGRESSION: Repro crash when clicking link with target=&quot;_blank&quot;</short_desc>
          <delta_ts>2006-01-22 04:57:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Frames</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27780</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-01-05 06:49:24 -0800</bug_when>
    <thetext>TOT crashes when you click a link with target &quot;_blank&quot;.

To reproduce: open the testcase and click &quot;test&quot;.

Crash backtrace:

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

Thread 0 Crashed:
0   com.apple.WebCore        	0x016d6e04 KWQKHTMLPart::generateFrameName() + 248 
(KWQKHTMLPart.mm:205)
1   com.apple.WebCore        	0x0175864c KHTMLPart::requestFrameName() + 56 (khtml_part.cpp:
1743)
2   com.apple.WebCore        	0x016ddc70 KWQKHTMLPart::setName(QString const&amp;) + 224 
(KWQKHTMLPart.mm:3830)
3   com.apple.WebCore        	0x0174c754 -[WebCoreBridge setName:] + 92 (WebCoreBridge.mm:
1627)
4   com.apple.WebKit         	0x003666a4 -[WebFrame(WebPrivate) 
_continueLoadRequestAfterNewWindowPolicy:frameName:formState:] + 432 (WebFrame.m:1827)
5   com.apple.WebKit         	0x0035d4b8 -[NSObject(WebExtraPerformMethod) 
performSelector:withObject:withObject:withObject:] + 72 (WebFrame.m:125)
6   com.apple.WebKit         	0x00365794 -[WebFrame(WebPrivate) _continueAfterNewWindowPolicy:] 
+ 712 (WebFrame.m:1661)
7   com.apple.WebKit         	0x003bdc80 -[WebPolicyDecisionListener _usePolicy:] + 120 
(WebPolicyDelegate.m:92)
8   com.apple.WebKit         	0x003bdd84 -[WebPolicyDecisionListener use] + 68 
(WebPolicyDelegate.m:107)
9   libobjc.A.dylib          	0x909c4214 objc_msgSendv + 180
10  com.apple.Foundation     	0x928e21c8 -[NSInvocation invoke] + 944
11  com.apple.Foundation     	0x928e2778 -[NSInvocation invokeWithTarget:] + 64
12  com.apple.WebKit         	0x003afd6c -[_WebSafeForwarder forwardInvocation:] + 624 
(WebView.m:1459)
13  com.apple.Foundation     	0x928da574 -[NSObject(NSForwardInvocation) forward::] + 408
14  libobjc.A.dylib          	0x909c40d0 _objc_msgForward + 176
15  com.apple.WebKit         	0x0036549c -[WebFrame(WebPrivate) 
_checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:] + 580 
(WebFrame.m:1630)
16  com.apple.WebKit         	0x00366a9c -[WebFrame(WebPrivate) 
_loadURL:referrer:loadType:target:triggeringEvent:form:formValues:] + 792 (WebFrame.m:1868)
17  com.apple.WebKit         	0x00335538 -[WebBridge 
loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:] + 436 (WebBridge.m:726)
18  com.apple.WebCore        	0x016e5058 KWQKHTMLPart::urlSelected(KURL const&amp;, int, int, 
KParts::URLArgs const&amp;) + 548 (KWQKHTMLPart.mm:719)
19  com.apple.WebCore        	0x01764834 KHTMLPart::urlSelected(QString const&amp;, int, int, QString 
const&amp;, KParts::URLArgs) + 820 (khtml_part.cpp:1707)
20  com.apple.WebCore        	0x0181f4a0 DOM::HTMLAnchorElementImpl::defaultEventHandler
(DOM::EventImpl*) + 2080 (html_inlineimpl.cpp:208)
21  com.apple.WebCore        	0x018d3f40 DOM::NodeImpl::dispatchGenericEvent(DOM::EventImpl*, 
int&amp;) + 1072 (dom_nodeimpl.cpp:624)
22  com.apple.WebCore        	0x018d41ec DOM::NodeImpl::dispatchEvent(DOM::EventImpl*, int&amp;, 
bool) + 364 (dom_nodeimpl.cpp:533)
23  com.apple.WebCore        	0x018d4a48 DOM::NodeImpl::dispatchMouseEvent(DOM::AtomicString 
const&amp;, int, int, int, int, int, int, bool, bool, bool, bool) + 492 (dom_nodeimpl.cpp:779)
24  com.apple.WebCore        	0x018da5e4 DOM::NodeImpl::dispatchMouseEvent(QMouseEvent*, 
DOM::AtomicString const&amp;, int) + 804 (dom_nodeimpl.cpp:741)
25  com.apple.WebCore        	0x01768f1c KHTMLView::dispatchMouseEvent(DOM::AtomicString 
const&amp;, DOM::NodeImpl*, bool, int, QMouseEvent*, bool, int) + 1064 (khtmlview.cpp:1079)
26  com.apple.WebCore        	0x0176a4d0 KHTMLView::viewportMouseReleaseEvent(QMouseEvent*) + 
632 (khtmlview.cpp:725)
27  com.apple.WebCore        	0x016e6694 KWQKHTMLPart::mouseUp(NSEvent*) + 584 
(KWQKHTMLPart.mm:2706)
28  com.apple.WebCore        	0x0174ae6c -[WebCoreBridge mouseUp:] + 52 (WebCoreBridge.mm:
1187)
29  com.apple.WebKit         	0x0037f92c -[WebHTMLView mouseUp:] + 292 (WebHTMLView.m:2911)
30  com.apple.AppKit         	0x936e7f18 -[NSWindow sendEvent:] + 4728
31  com.apple.Safari         	0x00022180 0x1000 + 135552
32  com.apple.AppKit         	0x93690ef4 -[NSApplication sendEvent:] + 4172
33  com.apple.Safari         	0x00021c84 0x1000 + 134276
34  com.apple.AppKit         	0x93688330 -[NSApplication run] + 508
35  com.apple.AppKit         	0x93778e60 NSApplicationMain + 452
36  com.apple.Safari         	0x0005d028 0x1000 + 376872
37  com.apple.Safari         	0x0005cecc 0x1000 + 376524</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27781</commentid>
    <comment_count>1</comment_count>
      <attachid>5494</attachid>
    <who name="">mitz</who>
    <bug_when>2006-01-05 06:49:51 -0800</bug_when>
    <thetext>Created attachment 5494
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27811</commentid>
    <comment_count>2</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-01-05 14:39:09 -0800</bug_when>
    <thetext>&lt;rdar://problem/4400293&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27820</commentid>
    <comment_count>3</comment_count>
    <who name="Gustaaf Groenendaal (MysteryQuest)">webkit</who>
    <bug_when>2006-01-05 15:56:27 -0800</bug_when>
    <thetext>Not sure about this but this could be a result of the implementation of the following patch:
http://bugzilla.opendarwin.org/show_bug.cgi?id=6357</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27852</commentid>
    <comment_count>4</comment_count>
      <attachid>5512</attachid>
    <who name="">mitz</who>
    <bug_when>2006-01-06 06:45:59 -0800</bug_when>
    <thetext>Created attachment 5512
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27854</commentid>
    <comment_count>5</comment_count>
      <attachid>5512</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-01-06 06:54:56 -0800</bug_when>
    <thetext>Comment on attachment 5512
Proposed patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27863</commentid>
    <comment_count>6</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-01-06 11:22:52 -0800</bug_when>
    <thetext>Landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27918</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-01-07 05:44:27 -0800</bug_when>
    <thetext>*** Bug 6398 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29403</commentid>
    <comment_count>8</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-22 04:57:25 -0800</bug_when>
    <thetext>Removing keyword(s) since bug is fixed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5494</attachid>
            <date>2006-01-05 06:49:51 -0800</date>
            <delta_ts>2006-01-05 06:49:51 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>frames crash.html</filename>
            <type>text/html</type>
            <size>107</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8dGl0bGU+PC90aXRsZT4KPC9oZWFkPgo8Ym9keT4KQ2xpY2sgdG8gPGEg
aHJlZj0iLyIgdGFyZ2V0PSJfYmxhbmsiPnRlc3Q8L2E+Lgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5512</attachid>
            <date>2006-01-06 06:45:59 -0800</date>
            <delta_ts>2006-01-06 06:54:56 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>6382_r1.patch</filename>
            <type>text/plain</type>
            <size>747</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUva3dxL0tXUUtIVE1MUGFydC5tbQo9PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAv
Y3ZzL3Jvb3QvV2ViQ29yZS9rd3EvS1dRS0hUTUxQYXJ0Lm1tLHYKcmV0cmlldmluZyByZXZpc2lv
biAxLjcxNApkaWZmIC1wIC11IC1yMS43MTQgV2ViQ29yZS9rd3EvS1dRS0hUTUxQYXJ0Lm1tCi0t
LSBXZWJDb3JlL2t3cS9LV1FLSFRNTFBhcnQubW0JNSBKYW4gMjAwNiAwNjo0MToyMyAtMDAwMAkx
LjcxNAorKysgV2ViQ29yZS9rd3EvS1dRS0hUTUxQYXJ0Lm1tCTYgSmFuIDIwMDYgMTQ6NTM6NDEg
LTAwMDAKQEAgLTM4MjYsNyArMzgyNiw3IEBAIHZvaWQgS1dRS0hUTUxQYXJ0OjpzZXROYW1lKGNv
bnN0IFFTdHJpbmcKICAgICBLV1FLSFRNTFBhcnQgKnBhcmVudCA9IEtXUShwYXJlbnRQYXJ0KCkp
OwogCiAgICAgLy8gRklYTUU6IGlzIHRoZSBibGFuayBydWxlIG5lZWRlZCBvciB1c2VmdWw/Ci0g
ICAgaWYgKHBhcmVudCAmJiAobmFtZS5pc0VtcHR5KCkgfHwgcGFyZW50LT5mcmFtZUV4aXN0cyhu
YW1lKSkgfHwgbmFtZSA9PSAiX2JsYW5rIikKKyAgICBpZiAocGFyZW50ICYmIChuYW1lLmlzRW1w
dHkoKSB8fCBwYXJlbnQtPmZyYW1lRXhpc3RzKG5hbWUpIHx8IG5hbWUgPT0gIl9ibGFuayIpKQog
CW4gPSBwYXJlbnQtPnJlcXVlc3RGcmFtZU5hbWUoKTsKIAogICAgIEtIVE1MUGFydDo6c2V0TmFt
ZShuKTsK
</data>
<flag name="review"
          id="1195"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>