Bug 22600

Summary: Add test to verify the timeout callback is executed in the right context.
Product: WebKit Reporter: Dmitry Titov <dimich>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Proposed patch ap: review+

Dmitry Titov
Reported 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.
Attachments
Proposed patch (3.20 KB, patch)
2008-12-02 13:37 PST, Dmitry Titov
ap: review+
Dmitry Titov
Comment 1 2008-12-02 13:37:18 PST
Created attachment 25680 [details] Proposed patch
Alexey Proskuryakov
Comment 2 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.
Alexey Proskuryakov
Comment 3 2008-12-03 00:30:24 PST
Committed revision 38933.
Note You need to log in before you can comment on or make changes to this bug.