DescriptionStop firing orientationchange events at pages that are not visible
Stop firing 'orientationchange' events to pages that are not visible as per the
specification:
https://w3c.github.io/screen-orientation/#handling-screen-orientation-changes
This avoids having background pages handle 'orientationchange' events and
wasting battery.
As indicated in the specification, screen.orientation keeps returning the old
orientation if the orientation changes while the page is not visible.
R=mounir@chromium.org, jochen@chromium.org
BUG=162827
TEST=screen_orientation/page-visibility.html
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Fix flaky test #Patch Set 4 : Simplify test case #
Total comments: 1
Messages
Total messages: 5 (0 generated)
|