Bug 22600 - Add test to verify the timeout callback is executed in the right context.
Summary: Add test to verify the timeout callback is executed in the right context.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 13:33 PST by Dmitry Titov
Modified: 2008-12-03 00:30 PST (History)
0 users

See Also:


Attachments
Proposed patch (3.20 KB, patch)
2008-12-02 13:37 PST, Dmitry Titov
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Titov 2008-12-02 13:33:37 PST
When a timeout is scheduled on a window from another frame, the specified callback is run either in the context of the main page (if specified as a function or a closure) and in the context of the frame (if specified as a string of JS code). The test runs 2 timeouts and verifies that they run in proper contexts.
Comment 1 Dmitry Titov 2008-12-02 13:37:18 PST
Created attachment 25680 [details]
Proposed patch
Comment 2 Alexey Proskuryakov 2008-12-03 00:08:00 PST
Comment on attachment 25680 [details]
Proposed patch

r=me

\ No newline at end of file

Should be added when landing.
Comment 3 Alexey Proskuryakov 2008-12-03 00:30:24 PST
Committed revision 38933.