gecko-dev/layout
decltype dd080e9eba Bug 712130 - Defer autofocus until after frame construction. r=bz
The autofocus attribute on form elements forces layout in CheckIfFocusable.
To avoid unpleasant FOUCs, defer autofocus processing until frames are
constructed in PresShell::Initialize.

Resolve the race between nsAutoFocusEvent running and page load by checking the
readystate at time of event posting. Skip autofocus if the element moved to a
different window in the meantime.

MozReview-Commit-ID: 90jiJYJWmRg

--HG--
extra : rebase_source : f94b479075df3e37ec1a658d71596c03930bab92
2018-01-08 22:35:00 +01:00
..
base Bug 712130 - Defer autofocus until after frame construction. r=bz 2018-01-08 22:35:00 +01:00
build Bug 830221 - Remove nsIDOMDOMImplementation. r=bz 2018-02-12 21:49:07 +01:00
doc
forms Bug 1436508 part 13. Remove nsIDOMMutationEvent constants. r=masayuki 2018-02-09 11:17:10 -05:00
generic Bug 1438020: Add some includes for "Inlines" headers to address clang build warnings in non-unified build. r=mats 2018-02-13 14:38:20 -08:00
inspector Bug 1436508 part 13. Remove nsIDOMMutationEvent constants. r=masayuki 2018-02-09 11:17:10 -05:00
ipc Bug 1415225 - Move the EventRegionsOverride field to be on RefLayers only. r=botond 2017-11-09 09:03:52 -05:00
mathml Bug 1436508 part 13. Remove nsIDOMMutationEvent constants. r=masayuki 2018-02-09 11:17:10 -05:00
media
painting Backed out changeset 7953b08f4886 (bug 1437374) for reftest failures at reftest/tests/layout/reftests/display-list/1437374-1.html 2018-02-15 00:31:36 +02:00
printing Bug 1436508 part 12. Remove nsIDOMKeyEvent. r=masayuki 2018-02-09 11:17:10 -05:00
reftests Bug 712130 - Add reftest in case autofocus element is seen after PresShell init. r=bz 2018-01-10 19:07:21 +01:00
style Merge mozilla-inbound to mozilla-central a=merge 2018-02-15 12:24:21 +02:00
svg Bug 1436508 part 14. Remove nsIDOMMutationEvent. r=masayuki 2018-02-09 11:17:10 -05:00
tables Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn 2018-02-01 15:04:04 +11:00
tools Bug 1434423 - Check for installation of correct test application when --app is passed to mach; r=jmaher 2018-02-09 14:34:20 -07:00
xul Merge mozilla-inbound to mozilla-central a=merge 2018-02-15 12:24:21 +02:00
moz.build Bug 1417978 - Stop packaging layout debugger on Android. r=nalexander 2018-01-04 15:22:35 -06:00