Bug 37494 - REGRESSION (r57340): fast/events/mouse-drag-from-frame-to-other-frame.html fails on Windows
Summary: REGRESSION (r57340): fast/events/mouse-drag-from-frame-to-other-frame.html fa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Alexey Proskuryakov
URL: http://build.webkit.org/results/Windo...
Keywords: InRadar, LayoutTestFailure, PlatformOnly
Depends on:
Blocks:
 
Reported: 2010-04-13 00:00 PDT by Adam Roben (:aroben)
Modified: 2010-04-15 16:53 PDT (History)
2 users (show)

See Also:


Attachments
Add Windows failing results for mouse-drag-from-frame-to-other-frame.html (1.25 KB, patch)
2010-04-13 21:40 PDT, Adam Roben (:aroben)
no flags Details | Formatted Diff | Diff
proposed fix (5.07 KB, patch)
2010-04-15 16:43 PDT, Alexey Proskuryakov
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2010-04-13 00:00:34 PDT
Since r57340 <http://trac.webkit.org/changeset/57340>, fast/events/mouse-drag-from-frame-to-other-frame.html has been failing on Windows.
Comment 1 Adam Roben (:aroben) 2010-04-13 00:01:22 PDT
<rdar://problem/7857060>
Comment 2 Alexey Proskuryakov 2010-04-13 00:25:30 PDT
Hmm. What about bug 29963?

I don't see how r57340 could affect this.
Comment 3 Adam Roben (:aroben) 2010-04-13 00:36:18 PDT
(In reply to comment #2)
> Hmm. What about bug 29963?

That bug was fixed in r54400, and the expected failure result was removed in r54459. But now we're failing the test again.

> I don't see how r57340 could affect this.

Given that r48884 likely caused bug 29963, and r54400 fixed it, it seems this test is sensitive to some details of our implementation of event listeners. Since r57340 changes some of those details, I'm not that surprised that it could have caused this.
Comment 4 Adam Roben (:aroben) 2010-04-13 21:40:49 PDT
Created attachment 53312 [details]
Add Windows failing results for mouse-drag-from-frame-to-other-frame.html
Comment 5 Eric Seidel (no email) 2010-04-13 22:38:18 PDT
Comment on attachment 53312 [details]
Add Windows failing results for mouse-drag-from-frame-to-other-frame.html

I assume you're going to leave this bug open.
Comment 6 Adam Roben (:aroben) 2010-04-13 22:38:55 PDT
(In reply to comment #5)
> I assume you're going to leave this bug open.

Yes, exactly.

Thanks for the review!
Comment 7 Adam Roben (:aroben) 2010-04-13 23:25:22 PDT
Comment on attachment 53312 [details]
Add Windows failing results for mouse-drag-from-frame-to-other-frame.html

Committed r57563.
Comment 8 Alexey Proskuryakov 2010-04-15 16:40:12 PDT
The problem here is that after r57340, ScriptController for one of the frames is created later than it used to be. It's created during replaySavedEvents in DRT, which results in EventSender state being lost:

JSObjectRef makeEventSender(JSContextRef context) 
{
    down = false; 
    dragMode = true; 
    replayingSavedEvents = false; 
...

We don't have such code on the Mac, because the state machine for replaySavedEvents is different there, and resetting wasn't needed. See <http://trac.webkit.org/changeset/29724> for the original fix that introduced resetting.
Comment 9 Alexey Proskuryakov 2010-04-15 16:43:31 PDT
Created attachment 53488 [details]
proposed fix
Comment 10 Geoffrey Garen 2010-04-15 16:49:40 PDT
Comment on attachment 53488 [details]
proposed fix

r=me
Comment 11 Alexey Proskuryakov 2010-04-15 16:53:59 PDT
Committed <http://trac.webkit.org/changeset/57685>.