DescriptionListen to focus change events instead of assuming they happen at next rAF
focus-shadowhost-display-none.html is testing a case where a focused
element immediately unfocuses by hiding itself. The test assumes that
the unfocus completes by the next requestAnimationFrame, but because
Document uses a timer to implement unfocusing[1], this ordering isn't
guaranteed.
This patch makes the test more robust by listening to the blur event
explicitly instead of assuming this relationship with
requestAnimationFrame.
BUG=463143
[1] clearFocusedElementSoon at https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/dom/Document.cpp&rcl=1432882933&l=1888
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196141
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|