Reputation: 21
In Safari the values of window.screen.height
and window.screen.availHeight
differ between normal and private modes, but not between each other, in these conditions:
Only one tab is open,
The window is stretched across the entire display, and
The developer console is in a separate window
Externally, the browser control panel does not differ in size, and the dock is hidden.
Why do these values differ between normal and private modes, but not between each other?
For those who are lazy to look at the screenshot:
Safari in normal mode console.log(window.screen.availHeight) gives 1068 console.log(window.screen.height)gives 1112
Safari in incognito mode console.log(window.screen.availHeight)gives 1001 console.log(window.screen.height)gives 1001
Who knows why?
Upvotes: 2
Views: 24