Bug 85696 - [WK2] Incoming events may be processed out-of-order
Summary: [WK2] Incoming events may be processed out-of-order
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.7
: P2 Normal
Assignee: Jon Lee
Keywords: InRadar
Depends on:
Reported: 2012-05-04 20:31 PDT by Jon Lee
Modified: 2012-05-05 12:37 PDT (History)
4 users (show)

See Also:

Patch (3.64 KB, patch)
2012-05-04 21:09 PDT, Jon Lee
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 2012-05-04 20:31:42 PDT
Messages that arrive to the web process after an input event might be processed before the input event because all messages go to a single queue that gets iterated over by handleMessages(). What then happens is that one handleMessages() call processes all of the messages, and the subsequent handleMessages() handle none. It effectively promotes messages ahead of input events.

Comment 1 Jon Lee 2012-05-04 21:09:10 PDT
Created attachment 140380 [details]
Comment 2 Maciej Stachowiak 2012-05-05 12:32:08 PDT
Comment on attachment 140380 [details]

Comment 3 Jon Lee 2012-05-05 12:37:55 PDT
Committed r116226: <http://trac.webkit.org/changeset/116226>