<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29577</bug_id>
          
          <creation_ts>2016-04-19 23:38:34 +0000</creation_ts>
          <short_desc>&quot;The screenX attribute must return the x-coordin...&quot;</short_desc>
          <delta_ts>2016-08-28 06:20:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM View</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Rebert">w3bugs</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125931</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2016-04-19 23:38:34 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125932</commentid>
    <comment_count>1</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2016-04-19 23:48:51 +0000</bug_when>
    <thetext>(This could even be discussed in the &quot;Privacy Considerations&quot; section of the spec that bikeshed keeps telling you to create.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126146</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-26 09:11:48 +0000</bug_when>
    <thetext>Privacy considerations section is https://www.w3.org/Bugs/Public/show_bug.cgi?id=29533</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126147</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-26 09:30:46 +0000</bug_when>
    <thetext>There&apos;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 &apos;device-width&apos; media feature.

For window.open()ed windows, where the author has given position and size in the &quot;features&quot; 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...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126148</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-26 09:46:20 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127228</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-08-25 12:23:26 +0000</bug_when>
    <thetext>https://github.com/w3c/csswg-drafts/commit/dc36ecd7a46b173f958dafa736a84eb9753afb7b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127232</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-08-25 12:27:24 +0000</bug_when>
    <thetext>Any thoughts about whether window.open() should use the new concepts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127233</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-08-25 12:32:12 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #3)
&gt; e.g. also the &apos;device-width&apos; media feature.

https://github.com/w3c/csswg-drafts/issues/426</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127250</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Rebert">w3bugs</who>
    <bug_when>2016-08-28 06:20:56 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #6)
&gt; Any thoughts about whether window.open() should use the new concepts?

Sounds reasonable. Would be less vague than the current &quot;the available space&quot; wording.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>