diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 22:10:48 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 22:10:48 +0000 |
commit | 1de04bb69e44c7f2d62fb553c0b7e1c9ec6501b3 (patch) | |
tree | 8639abdcebcf75d9254b56ee587d434e80eabeca /base | |
parent | 117edc9752b03df14c514bebdf02eba5b321be33 (diff) | |
download | chromium_src-1de04bb69e44c7f2d62fb553c0b7e1c9ec6501b3.zip chromium_src-1de04bb69e44c7f2d62fb553c0b7e1c9ec6501b3.tar.gz chromium_src-1de04bb69e44c7f2d62fb553c0b7e1c9ec6501b3.tar.bz2 |
Fix document.hasFocus() for layout test
We were not setting the focused frame to null when we blurred a window.
Therefore a document inside a frame inside a blurred window would think
it was focused since its frame was the focused frame.
This fixes the layout test for the test_shell but Chrome is still
having issues with the test since blurring is asynchronous in chrome.
Changing the layout test by adding timers makes the test pass in chrome
as well.
BUG=16018
TEST=Run LayoutTests/fast/dom/HTMLDocument/hasFocus.html
Review URL: http://codereview.chromium.org/182032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
0 files changed, 0 insertions, 0 deletions