This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://drafts.csswg.org/cssom-view/#dom-window-screenx [[ The screenX attribute must return the x-coordinate, relative to the origin of the screen of the output device, of the left of the client window as number of pixels, or zero if there is no such thing. The screenY attribute must return the y-coordinate, relative to the origin of the screen of the output device, of the top of the client window as number of pixels, or zero if there is no such thing. ]] As a user, I don't feel that webpages have any business knowing where their window is located on my screen. I would like the spec to allow privacy-conscious browsers to pretend that all windows are always at the top-left of the screen, thus plugging this information leak.
(This could even be discussed in the "Privacy Considerations" section of the spec that bikeshed keeps telling you to create.)
Privacy considerations section is https://www.w3.org/Bugs/Public/show_bug.cgi?id=29533
There's also mouseevent.screenX, screen.availWidth, screen.width (and heights). I agree we should allow browsers to lie about the screen, but we should probably do so across the board; e.g. also the 'device-width' media feature. For window.open()ed windows, where the author has given position and size in the "features" argument, the browser can also adjust the position and size so that the window will fit in the screen, which again would leak the size of the available space of the screen...
Ah you had filed bugs about those also, thanks! https://www.w3.org/Bugs/Public/show_bug.cgi?id=29578 https://www.w3.org/Bugs/Public/show_bug.cgi?id=29579 https://www.w3.org/Bugs/Public/show_bug.cgi?id=29580
https://github.com/w3c/csswg-drafts/commit/dc36ecd7a46b173f958dafa736a84eb9753afb7b
Any thoughts about whether window.open() should use the new concepts?
(In reply to Simon Pieters from comment #3) > e.g. also the 'device-width' media feature. https://github.com/w3c/csswg-drafts/issues/426
(In reply to Simon Pieters from comment #6) > Any thoughts about whether window.open() should use the new concepts? Sounds reasonable. Would be less vague than the current "the available space" wording.