commit | 0f6a860f9fcba915cbf1801ddf97fdddd8785c2f | [log] [tgz] |
---|---|---|
author | George Mount <mount@google.com> | Tue Jun 19 11:05:09 2012 -0700 |
committer | George Mount <mount@google.com> | Tue Jun 19 13:33:58 2012 -0700 |
tree | 391335121232441a4a4226e2cf9c057839eda444 | |
parent | 8afc998859f21f782f4c3cd3f0f2780ec243b8c3 [diff] |
DO NOT MERGE Fix flakiness in WebChromeClientTest#testWindows Bug 6460200 childWindow was referenced in the fireOpen function and called setTimeout("childWindow.close(), 2000). If gc occured between the call to setTimeout and the callback, childWindow would have been collected and the reference lost. This change adds a reference outside of the function so that it cannot be collected. Change-Id: Id3717104c3a1a0b7da26bfb0a7f939e88d9ed582