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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>187922</bug_id>
          
          <creation_ts>2018-07-23 13:52:48 -0700</creation_ts>
          <short_desc>WebCore::primaryScreenDisplayID() always return 0</short_desc>
          <delta_ts>2018-07-30 08:43:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ggaren</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1444400</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-07-23 13:52:48 -0700</bug_when>
    <thetext>This function should return a valid display ID.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444402</commentid>
    <comment_count>1</comment_count>
      <attachid>345604</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-07-23 13:54:59 -0700</bug_when>
    <thetext>Created attachment 345604
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444404</commentid>
    <comment_count>2</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-07-23 13:56:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/42286933&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444411</commentid>
    <comment_count>3</comment_count>
      <attachid>345604</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2018-07-23 14:19:46 -0700</bug_when>
    <thetext>Comment on attachment 345604
Patch

r=me

You could probably test this in an automated way if you added a function or property in window.internals to override screenProperties().primaryDisplayID. That would at least test the fact that primaryScreenDisplayID() no longer unconditionally returns 0. (You just need the test harness to remember to</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444412</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2018-07-23 14:20:01 -0700</bug_when>
    <thetext>...reset the value when it&apos;s done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444421</commentid>
    <comment_count>5</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-07-23 14:46:56 -0700</bug_when>
    <thetext>(In reply to Geoffrey Garen from comment #4)
&gt; ...reset the value when it&apos;s done.

Thanks for reviewing! I added https://bugs.webkit.org/show_bug.cgi?id=187922 to track adding a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444438</commentid>
    <comment_count>6</comment_count>
      <attachid>345604</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-07-23 15:16:38 -0700</bug_when>
    <thetext>Comment on attachment 345604
Patch

Clearing flags on attachment: 345604

Committed r234113: &lt;https://trac.webkit.org/changeset/234113&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444439</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-07-23 15:16:40 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1446212</commentid>
    <comment_count>8</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2018-07-30 08:43:15 -0700</bug_when>
    <thetext>(In reply to Per Arne Vollan from comment #5)
&gt; (In reply to Geoffrey Garen from comment #4)
&gt; &gt; ...reset the value when it&apos;s done.
&gt; 
&gt; Thanks for reviewing! I added https://bugs.webkit.org/show_bug.cgi?id=187922
&gt; to track adding a test.

Sorry, that was not the correct bug. It should be https://bugs.webkit.org/show_bug.cgi?id=187925.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>345604</attachid>
            <date>2018-07-23 13:54:59 -0700</date>
            <delta_ts>2018-07-23 15:16:38 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-187922-20180723135459.patch</filename>
            <type>text/plain</type>
            <size>1438</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDIzNDExMCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDE4LTA3LTIzICBQZXIgQXJu
ZSBWb2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNvbT4KKworICAgICAgICBXZWJDb3JlOjpwcmltYXJ5
U2NyZWVuRGlzcGxheUlEKCkgYWx3YXlzIHJldHVybiAwCisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xODc5MjIKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVt
LzQyMjg2OTMzPgorCis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