Why in Safari do the values of window.screen.height and window.screen.availHeight differ between normal and private modes?

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:

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? diff between two windows

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

Answers (0)

Related Questions