When using responsive design mode in developer tools the Fullscreen API causes the simulated window to be the wrong size
Categories
(DevTools :: Responsive Design Mode, defect, P3)
Tracking
(Not tracked)
People
(Reporter: merlinluntke, Unassigned)
Details
Attachments
(1 file)
When viewing a webpage with developer tools open and in responsive design mode, being full-screen with the Fullscreen API causes the simulated window to be 2 pixel wider and 2 pixel higher than expected. Going out of full-screen returns the simulated window to the expected size. This does not happen with normal full-screen using F11. The simulated window should keep the same size regardless of full-screen status and match the displayed size in the interface.
The problem can be reproduced since Firefox 79 and exists in the latest Nightly (Build ID 20220206212741). I have tested it on Linux and Windows.
How to reproduce:
- Use any Firefox version since 79.0.
- Open up any video on YouTube.com.
- Open the developer tools and enable responsive design mode.
- Use the full-screen button of the YouTube player to make use of the Fullscreen API.
- When in that type of full-screen the simulated window becomes 2 pixel wider and 2 pixel higher but the dimensions shown in the responsive design interface stay unchanged. You can know the real size by taking a screenshot or by checking the window dimensions in the console (for example by using "[window.innerWidth, window.innerHeight]").
(You can also use the attached file. It has buttons to go into and out of full-screen with the Fullscreen API and automatically shows the real window size.)
When trying to reproduce this bug in versions earlier than Firefox 79.0 the simulated window takes up the entire size of the webpage with the normal developer interface hidden underneath. I tried to find how they made the change to the current behavior since 79.0 as that may be useful to fix the issue, but I haven't found anything myself.
| Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•