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.
Created attachment 25680 [details] Proposed patch
Comment on attachment 25680 [details] Proposed patch r=me \ No newline at end of file Should be added when landing.
Committed revision 38933.