Bug 16827 - REGRESSION: Context menu appears at wrong place when clicking in iframe whose parent is scrolled
Summary: REGRESSION: Context menu appears at wrong place when clicking in iframe whose...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2008-01-10 15:07 PST by Peter Kasting
Modified: 2008-01-19 01:02 PST (History)
0 users

See Also:


Attachments
Testcase demonstrating bogus behavior (332 bytes, text/html)
2008-01-10 15:07 PST, Peter Kasting
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kasting 2008-01-10 15:07:22 PST
Load the testcase I'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'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 "true" for the "fixed" parameter when calling absolutePosition(), which seems possibly bogus.  But this code hasn't changed in ages.
Comment 1 Peter Kasting 2008-01-10 15:07:53 PST
Created attachment 18380 [details]
Testcase demonstrating bogus behavior
Comment 2 Adam Roben (:aroben) 2008-01-10 15:13:20 PST
<rdar://problem/5682340>
Comment 3 Peter Kasting 2008-01-19 01:02:48 PST
A fix for this was checked in in r29657, so I'm going to assume (w/o retesting) that this is FIXED