Bug 1827202: Make a fullscreen test await focus before requesting fullscreen. r=edgar
commit9e6f0307fb8b0cdb199105a706bc4c67302cb613
authorBrad Werth <bwerth@mozilla.com>
Thu, 29 Jun 2023 16:17:11 +0000 (29 16:17 +0000)
committerBrad Werth <bwerth@mozilla.com>
Thu, 29 Jun 2023 16:17:11 +0000 (29 16:17 +0000)
tree85a14453c6fcd732bfbf3686ce9896367c5f525e
parentb0541db06530e7ee8220aa4a213ceccc3937990b
Bug 1827202: Make a fullscreen test await focus before requesting fullscreen. r=edgar

This ensures that the browsing context is active before the fullscreen
request, which prevents a common reason for promise rejection.

It also changes the parameter order for the click count check function.
This makes the failure message make sense, since the "expected" value is
the second parameter.

Differential Revision: https://phabricator.services.mozilla.com/D182379
dom/base/test/fullscreen/test_fullscreen_modal.html