[Webkit-unassigned] [Bug 47182] Focus remains on hidden element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 8 00:53:25 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=47182





--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org>  2011-10-08 00:53:25 PST ---
One tricky part of fixing this bug will be that we must fire blur event before removing the focus. Since we wouldn't know whether an element is visible or not until style recalc, it might have a weird side effects.

For example, we had decided to remove the focus when at the end of style-recalc, we might have a trouble dealing with situations like:

var element = ...

element.focus();
element.style.display = 'none';
element.title = 'hello'; // blur hasn't fired yet here
var x = element.offsetTop; // blur fires here

Because style recalc doesn't happen until offsetTop is obtained in the last line.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list