forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1757031 - Don't restore previous viewport when window size isn't …
…same. r=emilio Fenix's Picture-In-Picture uses full screen mode. So it isn't same as Firefox Desktop. When exiting full screen, Fenix's window may not same as before entering full screen. When this occurs, 1. When device is portrait orientation, user changes to full screen by content script. 2. Fenix enters to full screen then orientation is changed to landscape. 3. User changes that device is changed to landscape by hand. 4. Fenix enters PiP mode. Android (Home screen) change to portrait orientation. Then PiP window keeps landscape orientation. 5. When exiting PiP, full screen will be exited. 6. Device is landscape (by Step 3.), so Fenix window is landscape. But Gecko restores 1.'s viewport by `nsIDOMWindowUtils.exitFullScreen`. So viewport becomes portrait orientation size even if window is landscape orientation. For PiP mode, although nsIDOMWindowUtils.exitFullScreen is used, it doesn't consider this situation. So I would like to add non-restore option for it. Differential Revision: https://phabricator.services.mozilla.com/D143992
- Loading branch information
1 parent
8b63af6
commit cb0d1c0
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters