<?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>11419</bug_id>
          
          <creation_ts>2006-10-26 01:24:23 -0700</creation_ts>
          <short_desc>REGRESSION (r17299): Assertion failure in -[WebHTMLView(WebPrivate) _topHTMLView] ([view isKindOfClass:[WebHTMLView class]]) when running the layout tests</short_desc>
          <delta_ts>2006-10-26 17:26:07 -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>Tools / Tests</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></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>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mrowe</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49654</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-26 01:24:23 -0700</bug_when>
    <thetext>run-webkit-tests editing/selection/fake-drag.html editing/selection/paragraph-granularity.htmlresults is the above assertion failure.

Backtrace:
0   com.apple.WebKit         	0x0105ab14 -[WebHTMLView(WebPrivate) _topHTMLView] + 320 (WebHTMLView.m:946)
1   com.apple.WebKit         	0x0105ab70 -[WebHTMLView(WebPrivate) _isTopHTMLView] + 60 (WebHTMLView.m:952)
2   com.apple.WebKit         	0x01074324 -[WebHTMLView(WebDocumentInternalProtocols) draggingCancelledWithDraggingInfo:] + 64 (WebHTMLView.m:5952)
3   com.apple.WebKit         	0x0109cf74 -[WebView _delegateDragOperationForDraggingInfo:] + 216 (WebView.mm:2338)
4   com.apple.WebKit         	0x0109d2f8 -[WebView draggingUpdated:] + 68 (WebView.mm:2379)
5   DumpRenderTree           	0x00005d60 -[EventSendingController mouseMoveToX:Y:] + 1160 (EventSendingController.m:221)

The problem is that EventSendingController calls WebView&apos;s draggingUpdated, passing nil. Down in _delegateDragOperationForDraggingInfo:, windowPoint is assigned garbage and newDraggingView gets assigned randomly (with either 0 or the WebView). As fras as I can tell, the regression is just the result of &quot;different garbage&quot; (I observed that windowPoint is different).

I think DumpRenderTree is at fault, as EventSendingController shouldn&apos;t call draggingUpdated if draggingInfo is 0 (nor draggedImage:movedTo:). Maybe WebView&apos;s behavior in this case can improve, by asserting and returning immediately from draggingUpdated if passed nil.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49636</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-26 01:26:26 -0700</bug_when>
    <thetext>The first sentence should say:run-webkit-tests editing/selection/fake-drag.html editing/selection/paragraph-granularity.html
results is the above assertion failure.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49513</commentid>
    <comment_count>2</comment_count>
      <attachid>11230</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2006-10-26 15:07:04 -0700</bug_when>
    <thetext>Created attachment 11230
patch

Fix based on mitz&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49514</commentid>
    <comment_count>3</comment_count>
      <attachid>11230</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-10-26 15:32:17 -0700</bug_when>
    <thetext>Comment on attachment 11230
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49519</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-26 17:26:07 -0700</bug_when>
    <thetext>Landed by ggaren in r17347.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11230</attachid>
            <date>2006-10-26 15:07:04 -0700</date>
            <delta_ts>2006-10-26 15:32:17 -0700</delta_ts>
            <desc>patch</desc>
            <filename>dragfix.diff</filename>
            <type>text/plain</type>
            <size>1619</size>
            <attacher name="Sam Weinig">sam</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDE3MzQ1KQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMDYtMTAtMjYgIFNhbSBXZWluaWcgIDxzYW0u
d2VpbmlnQGdtYWlsLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICBGaXggZm9yIGh0dHA6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTExNDE5CisgICAgICAgIFJFR1JFU1NJT04gKHIxNzI5OSk6IEFzc2VydGlvbiBmYWlsdXJlIGlu
IC1bV2ViSFRNTFZpZXcoV2ViUHJpdmF0ZSkgX3RvcEhUTUxWaWV3XQorICAgICAgICAoW3ZpZXcg
aXNLaW5kT2ZDbGFzczpbV2ViSFRNTFZpZXcgY2xhc3NdXSkgd2hlbiBydW5uaW5nIHRoZSBsYXlv
dXQgdGVzdHMKKworICAgICAgICAqIER1bXBSZW5kZXJUcmVlL0V2ZW50U2VuZGluZ0NvbnRyb2xs
ZXIubToKKyAgICAgICAgKC1bRXZlbnRTZW5kaW5nQ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
SW5mbyBkcmFnZ2VkSW1hZ2VdIG1vdmVkVG86bGFzdE1vdXNlUG9zaXRpb25dOworICAgICAgICAg
ICAgICAgIFtbZnJhbWUgd2ViVmlld10gZHJhZ2dpbmdVcGRhdGVkOmRyYWdnaW5nSW5mb107Cisg
ICAgICAgICAgICB9CisgICAgICAgIH0gZWxzZQogICAgICAgICAgICAgW3N1YlZpZXcgbW91c2VN
b3ZlZDpldmVudF07CiAgICAgfQogfQo=
</data>
<flag name="review"
          id="3857"
          type_id="1"
          status="+"
          setter="ggaren"
    />
          </attachment>
      

    </bug>

</bugzilla>