Bug 103972
Summary: | Plugin input events are wrong in Chromium port when <object> has padding | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brett Wilson (Google) <brettw> |
Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | cpu, eric, fishd, jamesr, schenney |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | Unspecified |
Brett Wilson (Google)
Load this FLash video and hover over a button or right-click:
http://www.apexvj.com/hd/player?s=69525510
You can see that the coordinates are offset vertically.
This bug is due to us not taking into account element padding when converting mouse coordinates. It seems plugin event translation is done in the Chromium WebKit layer which bases the translation on the top-left of the element (which the padding comes after). If you remove the padding-top from this page, the coordinates are correct.
Chrome bug:
https://code.google.com/p/chromium/issues/detail?id=164021
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brett Wilson (Google)
I checked and Safari on Mac doesn't have this issue.
Eric Seidel (no email)
I believe cpu@ is mr. plugins (as much as we have at least)?
I know our plugin implementation is different from other WebKit ports, but I don't know the details.