<?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>16827</bug_id>
          
          <creation_ts>2008-01-10 15:07:22 -0800</creation_ts>
          <short_desc>REGRESSION: Context menu appears at wrong place when clicking in iframe whose parent is scrolled</short_desc>
          <delta_ts>2008-01-19 01:02:48 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66819</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-01-10 15:07:22 -0800</bug_when>
    <thetext>Load the testcase I&apos;ll attach shortly in Safari for Windows using a current trunk build of WebKit.  Make sure the window is small enough so that your page has a scrollbar, and scroll down until the iframe is visible.  Right-click in the iframe and notice the context menu appears at the wrong spot.

I have not tested on a Mac so I don&apos;t know whether this is a problem there.

This bug does not seem to occur in Safari for Windows 3.0.4, so it seems like a regression.

Some very brief perusal of the code makes me wonder about the way hitTestResultForPoint() passes &quot;true&quot; for the &quot;fixed&quot; parameter when calling absolutePosition(), which seems possibly bogus.  But this code hasn&apos;t changed in ages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66820</commentid>
    <comment_count>1</comment_count>
      <attachid>18380</attachid>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-01-10 15:07:53 -0800</bug_when>
    <thetext>Created attachment 18380
Testcase demonstrating bogus behavior</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66822</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-01-10 15:13:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/5682340&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67670</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-01-19 01:02:48 -0800</bug_when>
    <thetext>A fix for this was checked in in r29657, so I&apos;m going to assume (w/o retesting) that this is FIXED</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>18380</attachid>
            <date>2008-01-10 15:07:53 -0800</date>
            <delta_ts>2008-01-10 15:07:53 -0800</delta_ts>
            <desc>Testcase demonstrating bogus behavior</desc>
            <filename>test_contextmenu.html</filename>
            <type>text/html</type>
            <size>332</size>
            <attacher name="Peter Kasting">pkasting</attacher>
            
              <data encoding="base64">PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj4N
Cjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+
DQo8YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJy
Pg0KPGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxi
cj4NCjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48YnI+PGJyPjxicj48
YnI+DQo8aWZyYW1lIHNyYz0iaHR0cDovL2dvb2dsZS5jb20vIj48L2lmcmFtZT4=
</data>

          </attachment>
      

    </bug>

</bugzilla>