<?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>13180</bug_id>
          
          <creation_ts>2007-03-24 10:00:45 -0700</creation_ts>
          <short_desc>Another debug build crash from ASSERTION FAILED: !needsLayout()</short_desc>
          <delta_ts>2007-03-24 15:29:03 -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>Layout and Rendering</component>
          <version>523.x (Safari 3)</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>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to>mitz</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17643</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-24 10:00:45 -0700</bug_when>
    <thetext>3/23/07 10:22 AM Dave Kilzer:
* SUMMARY
Found another reproducible case of ASSERTION FAILED: !needsLayout() with WebKit r20436 and Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).

* STEPS TO REPRODUCE
1. Open Safari/WebKit.

2. Open URL:  http://ln-s.net/

3. Paste a URL into the text field.  I used this one:

http://bugs.webkit.org/buglist.cgi?query_format=advanced&amp;short_desc_type=allwordssubstr&amp;short_desc=&amp;product=WebKit&amp;long_desc_type=substring&amp;long_desc=&amp;bug_file_loc_type=allwordssubstr&amp;bug_file_loc=&amp;keywords_type=allwords&amp;keywords=&amp;priority=P1&amp;emailassigned_to1=1&amp;emailtype1=substring&amp;email1=&amp;emailassigned_to2=1&amp;emailreporter2=1&amp;emailcc2=1&amp;emailtype2=substring&amp;email2=&amp;bugidtype=include&amp;bug_id=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;cmdtype=doit&amp;order=Reuse+same+sort+as+last+time&amp;field0-0-0=keywords&amp;type0-0-0=nowords&amp;value0-0-0=InRadar+NeedsRadar

4. Hit Enter.

* EXPECTED RESULTS
The form should submit.

* ACTUAL RESULTS
Safari/WebKit crashes.

* REGRESSION
This is a regression since r20385.

* NOTES
See also &lt;http://bugs.webkit.org/show_bug.cgi?id=13155&gt; and &lt;rdar://problem/5082421&gt;.

* STACK TRACE
Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xbbadbeef

Thread 0 Crashed:
0   com.apple.WebCore        	0x011968f4 WebCore::RenderView::paint(WebCore::RenderObject::PaintInfo&amp;, int, int) + 112 (RenderView.cpp:132)
1   com.apple.WebCore        	0x011b94d8 WebCore::RenderLayer::paintLayer(WebCore::RenderLayer*, WebCore::GraphicsContext*, WebCore::IntRect const&amp;, bool, WebCore::PaintRestriction, WebCore::RenderObject*) + 1092 (RenderLayer.cpp:1454)
2   com.apple.WebCore        	0x011b9a38 WebCore::RenderLayer::paint(WebCore::GraphicsContext*, WebCore::IntRect const&amp;, WebCore::PaintRestriction, WebCore::RenderObject*) + 72 (RenderLayer.cpp:1374)
3   com.apple.WebCore        	0x010e40a0 WebCore::Frame::paint(WebCore::GraphicsContext*, WebCore::IntRect const&amp;) + 800 (Frame.cpp:1305)
4   com.apple.WebCore        	0x0110ec4c -[WebCoreFrameBridge drawRect:] + 376 (WebCoreFrameBridge.mm:413)
5   com.apple.WebKit         	0x0034ff14 -[WebHTMLView drawSingleRect:] + 700 (WebHTMLView.mm:2759)
6   com.apple.WebKit         	0x0035038c -[WebHTMLView drawRect:] + 576 (WebHTMLView.mm:2809)
7   com.apple.AppKit         	0x937e3858 -[NSView _drawRect:clip:] + 2128
8   com.apple.AppKit         	0x937e25fc -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 736
9   com.apple.WebKit         	0x00347424 -[WebHTMLView(WebPrivate) _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 524 (WebHTMLView.mm:850)
10  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
11  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
12  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
13  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
14  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
15  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
16  com.apple.AppKit         	0x937e29a8 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1676
17  com.apple.AppKit         	0x93803044 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 192
18  com.apple.AppKit         	0x937dc054 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 384
19  com.apple.AppKit         	0x937d1348 -[NSView displayIfNeeded] + 248
20  com.apple.AppKit         	0x937d11b8 -[NSWindow displayIfNeeded] + 180
21  com.apple.Safari         	0x0001a5f8 0x1000 + 103928
22  com.apple.WebCore        	0x0127fa08 WebCore::ScrollView::updateContents(WebCore::IntRect const&amp;, bool) + 776 (ScrollViewMac.mm:349)
23  com.apple.WebCore        	0x010f12ec WebCore::FrameView::repaintRectangle(WebCore::IntRect const&amp;, bool) + 52 (FrameView.cpp:622)
24  com.apple.WebCore        	0x01196d78 WebCore::RenderView::repaintViewRectangle(WebCore::IntRect const&amp;, bool) + 220 (RenderView.cpp:185)
25  com.apple.WebCore        	0x011c3984 WebCore::RenderObject::repaint(bool) + 288 (RenderObject.cpp:1719)
26  com.apple.WebCore        	0x01109db4 WebCore::ContainerNode::setActive(bool, bool) + 472 (ContainerNode.cpp:837)
27  com.apple.WebCore        	0x0129067c WebCore::EventTargetNode::dispatchSimulatedClick(WTF::PassRefPtr&lt;WebCore::Event&gt;, bool, bool) + 164 (EventTargetNode.cpp:428)
28  com.apple.WebCore        	0x010d5d8c WebCore::HTMLFormElement::submitClick(WebCore::Event*) + 300 (HTMLFormElement.cpp:148)
29  com.apple.WebCore        	0x010ceca8 WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event*) + 3356 (HTMLInputElement.cpp:1284)
30  com.apple.WebCore        	0x0128f6ec WebCore::EventTargetNode::dispatchGenericEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 2632 (EventTargetNode.cpp:266)
31  com.apple.WebCore        	0x01291dbc WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool, WebCore::EventTarget*) + 396 (EventTargetNode.cpp:308)
32  com.apple.WebCore        	0x01291e50 WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 80 (EventTargetNode.cpp:292)
33  com.apple.WebCore        	0x014af068 WebCore::EventHandler::handleTextInputEvent(WebCore::String const&amp;, WebCore::Event*, bool, bool) + 488 (EventHandler.cpp:1524)
34  com.apple.WebCore        	0x0144ab94 WebCore::execInsertNewline(WebCore::Frame*, WebCore::Event*) + 248 (Editor.cpp:1134)
35  com.apple.WebCore        	0x0144f050 WebCore::Editor::execCommand(WebCore::AtomicString const&amp;, WebCore::Event*) + 300 (Editor.cpp:1301)
36  com.apple.WebKit         	0x0035fd90 -[WebHTMLView(WebNSTextInputSupport) doCommandBySelector:] + 672 (WebHTMLView.mm:5517)
37  com.apple.WebKit         	0x0035faac -[WebHTMLView(WebInternal) _interceptEditingKeyEvent:shouldSaveCommand:] + 644 (WebHTMLView.mm:5280)
38  com.apple.WebKit         	0x003c9040 WebEditorClient::handleKeypress(WebCore::KeyboardEvent*) + 228 (WebEditorClient.mm:429)
39  com.apple.WebCore        	0x0144a29c WebCore::Editor::handleKeypress(WebCore::KeyboardEvent*) + 164 (Editor.cpp:110)
40  com.apple.WebCore        	0x014acb48 WebCore::EventHandler::defaultKeyboardEventHandler(WebCore::KeyboardEvent*) + 1060 (EventHandler.cpp:1315)
41  com.apple.WebCore        	0x01292238 WebCore::EventTargetNode::defaultEventHandler(WebCore::Event*) + 308 (EventTargetNode.cpp:583)
42  com.apple.WebCore        	0x010ce3c4 WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event*) + 1080 (HTMLInputElement.cpp:1143)
43  com.apple.WebCore        	0x0128f6ec WebCore::EventTargetNode::dispatchGenericEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 2632 (EventTargetNode.cpp:266)
44  com.apple.WebCore        	0x01291dbc WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool, WebCore::EventTarget*) + 396 (EventTargetNode.cpp:308)
45  com.apple.WebCore        	0x01291e50 WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 80 (EventTargetNode.cpp:292)
46  com.apple.WebCore        	0x014acab0 WebCore::EventHandler::defaultKeyboardEventHandler(WebCore::KeyboardEvent*) + 908 (EventHandler.cpp:1308)
47  com.apple.WebCore        	0x01292238 WebCore::EventTargetNode::defaultEventHandler(WebCore::Event*) + 308 (EventTargetNode.cpp:583)
48  com.apple.WebCore        	0x010ce3c4 WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event*) + 1080 (HTMLInputElement.cpp:1143)
49  com.apple.WebCore        	0x0128f6ec WebCore::EventTargetNode::dispatchGenericEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 2632 (EventTargetNode.cpp:266)
50  com.apple.WebCore        	0x01291dbc WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool, WebCore::EventTarget*) + 396 (EventTargetNode.cpp:308)
51  com.apple.WebCore        	0x01291e50 WebCore::EventTargetNode::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, int&amp;, bool) + 80 (EventTargetNode.cpp:292)
52  com.apple.WebCore        	0x0128fe18 WebCore::EventTargetNode::dispatchKeyEvent(WebCore::PlatformKeyboardEvent const&amp;) + 260 (EventTargetNode.cpp:370)
53  com.apple.WebCore        	0x014a8318 WebCore::EventHandler::keyEvent(WebCore::PlatformKeyboardEvent const&amp;) + 152 (EventHandler.cpp:1274)
54  com.apple.WebCore        	0x014a5d6c WebCore::EventHandler::keyEvent(NSEvent*) + 524 (EventHandlerMac.mm:138)
55  com.apple.WebKit         	0x003533bc -[WebHTMLView keyDown:] + 400 (WebHTMLView.mm:3419)
56  com.apple.AppKit         	0x937f9fa0 -[NSWindow sendEvent:] + 6424
57  com.apple.Safari         	0x00021734 0x1000 + 132916
58  com.apple.AppKit         	0x937a28d4 -[NSApplication sendEvent:] + 4172
59  com.apple.Safari         	0x00021238 0x1000 + 131640
60  com.apple.AppKit         	0x93799d10 -[NSApplication run] + 508
61  com.apple.AppKit         	0x9388a87c NSApplicationMain + 452
62  com.apple.Safari         	0x0005c77c 0x1000 + 374652
63  com.apple.Safari         	0x0005c624 0x1000 + 374308

3/23/07 10:31 AM Dave Kilzer:
Actually, you can just click in the text field, then hit Enter.  There is no need to paste a URL into it.

See also Bug 13155.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17644</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-24 10:01:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/5084478&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17645</commentid>
    <comment_count>2</comment_count>
      <attachid>13798</attachid>
    <who name="">mitz</who>
    <bug_when>2007-03-24 10:27:11 -0700</bug_when>
    <thetext>Created attachment 13798
Get the layout root only after style recalc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17496</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-24 14:28:26 -0700</bug_when>
    <thetext>This should really be a P1.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17486</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-03-24 15:29:03 -0700</bug_when>
    <thetext>Committed revision 20473.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13798</attachid>
            <date>2007-03-24 10:27:11 -0700</date>
            <delta_ts>2007-03-24 12:08:11 -0700</delta_ts>
            <desc>Get the layout root only after style recalc</desc>
            <filename>13180_r1.patch</filename>
            <type>text/plain</type>
            <size>1921</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS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DogZG9jdW1lbnQ7CisKICAgICAvLyBJZiB0aGVyZSBpcyBvbmx5IG9uZSByZWYgdG8g
dGhpcyB2aWV3IGxlZnQsIHRoZW4gaXRzIGdvaW5nIHRvIGJlIGRlc3Ryb3llZCBhcyBzb29uIGFz
IHdlIGV4aXQsIAogICAgIC8vIHNvIHRoZXJlJ3Mgbm8gcG9pbnQgdG8gY29udGludWlpbmcgdG8g
bGF5b3V0CiAgICAgaWYgKHByb3RlY3Rvci0+aGFzT25lUmVmKCkpCg==
</data>
<flag name="review"
          id="5508"
          type_id="1"
          status="+"
          setter="adele"
    />
          </attachment>
      

    </bug>

</bugzilla>