[Webkit-unassigned] [Bug 37291] New: Converting DOM timestamp -> X timestamp in plugin message is wrong
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 8 14:07:46 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=37291
Summary: Converting DOM timestamp -> X timestamp in plugin
message is wrong
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Plug-ins
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: evan at chromium.org
When sending a message to a plugin via NPAPI, we need fill in the X event time
as one of the fields of the struct.
In the Chromium, GTK, and Qt ports, the code looks like:
xbutton.time = event->timeStamp();
But event->timeStamp() is the DOM timestamp of the event, not the X server
time! The X time is an opaque value which in actuality appears to be
milliseconds since the server started.
This X event time is eventually propagated into the plugin which might use it
to e.g. do a pointer grab, so providing the wrong time can cause grabs to fail
(causing menus to not pop up) as well as race conditions.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list