<?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>162613</bug_id>
          
          <creation_ts>2016-09-27 08:27:28 -0700</creation_ts>
          <short_desc>[GTK] Improve OS X UA quirk</short_desc>
          <delta_ts>2016-10-05 13:23:57 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>
          
          <blocked>142074</blocked>
    
    <blocked>162610</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1233863</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-27 08:27:28 -0700</bug_when>
    <thetext>Add a fake OS X version number to the Macintosh quirk user agent, in order to more convincingly pretend to be OS X.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1233905</commentid>
    <comment_count>1</comment_count>
      <attachid>289956</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-27 09:43:57 -0700</bug_when>
    <thetext>Created attachment 289956
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234323</commentid>
    <comment_count>2</comment_count>
      <attachid>289956</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-28 03:40:35 -0700</bug_when>
    <thetext>Comment on attachment 289956
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=289956&amp;action=review

&gt; Source/WebCore/platform/gtk/UserAgentGtk.cpp:134
&gt; -        uaString.appendLiteral(&quot; Mac OS X&quot;);
&gt; +        uaString.appendLiteral(&quot; Mac OS X 10_12&quot;);

is there any website broken because of this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234346</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-28 05:38:06 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; is there any website broken because of this?

Not that I know of. Consider that this is a quirk that was previously only used at yahoo.com; I am just improving the quirk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234363</commentid>
    <comment_count>4</comment_count>
      <attachid>289956</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-09-28 06:25:00 -0700</bug_when>
    <thetext>Comment on attachment 289956
Patch

Ok, update the unit tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1234370</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-09-28 07:27:44 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Comment on attachment 289956 [details]
&gt; Patch
&gt; 
&gt; Ok, update the unit tests.

I don&apos;t want to, because (a) updating the test would not accomplish much, as it would be difficult to unintentionally remove the hardcoded version, and (b) I want to change the version string here without having to modify the test. I will update the unit tests for the other two patches, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236288</commentid>
    <comment_count>6</comment_count>
      <attachid>289956</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-10-04 11:37:50 -0700</bug_when>
    <thetext>Comment on attachment 289956
Patch

Rejecting attachment 289956 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.webkit.org&apos;, &apos;--bot-id=webkit-cq-03&apos;, &apos;apply-attachment&apos;, &apos;--no-update&apos;, &apos;--non-interactive&apos;, 289956, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
&quot; exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 2 diffs from patch file(s).
patching file Source/WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebCore/platform/gtk/UserAgentGtk.cpp
Hunk #1 FAILED at 131.
1 out of 1 hunk FAILED -- saving rejects to file Source/WebCore/platform/gtk/UserAgentGtk.cpp.rej

Failed to run &quot;[u&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply&apos;, &apos;--force&apos;, &apos;--reviewer&apos;, u&apos;Carlos Garcia Campos&apos;]&quot; exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/2218936</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236769</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-10-05 13:23:57 -0700</bug_when>
    <thetext>Committed r206826: &lt;http://trac.webkit.org/changeset/206826&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>289956</attachid>
            <date>2016-09-27 09:43:57 -0700</date>
            <delta_ts>2016-10-04 11:37:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-162613-20160927184058.patch</filename>
            <type>text/plain</type>
            <size>1432</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjog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i9Tb3VyY2UvV2ViQ29yZS9wbGF0Zm9ybS9ndGsvVXNlckFnZW50R3RrLmNwcApp
bmRleCA3NDNlYmEwMDExY2NiNTQ4NGZmNmY2MzZiNjVlMmQ1ZWIyYWY3OTM4Li5jMDUxYmY0OTFj
MjczMGFhYTQyOTEyYjAwMmJjNGYyZWYwYmZhYTZkIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9wbGF0Zm9ybS9ndGsvVXNlckFnZW50R3RrLmNwcAorKysgYi9Tb3VyY2UvV2ViQ29yZS9wbGF0
Zm9ybS9ndGsvVXNlckFnZW50R3RrLmNwcApAQCAtMTMxLDcgKzEzMSw3IEBAIHN0YXRpYyBTdHJp
bmcgYnVpbGRVc2VyQWdlbnRTdHJpbmcoY29uc3QgVXNlckFnZW50UXVpcmtzJiBxdWlya3MpCiAK
ICAgICBpZiAocXVpcmtzLmNvbnRhaW5zKFVzZXJBZ2VudFF1aXJrczo6TmVlZHNNYWNpbnRvc2hQ
bGF0Zm9ybSkpIHsKICAgICAgICAgdWFTdHJpbmcuYXBwZW5kKGNwdURlc2NyaXB0aW9uRm9yVUFT
dHJpbmcoKSk7Ci0gICAgICAgIHVhU3RyaW5nLmFwcGVuZExpdGVyYWwoIiBNYWMgT1MgWCIpOwor
ICAgICAgICB1YVN0cmluZy5hcHBlbmRMaXRlcmFsKCIgTWFjIE9TIFggMTBfMTIiKTsKICAgICB9
IGVsc2UKICAgICAgICAgdWFTdHJpbmcuYXBwZW5kKHBsYXRmb3JtVmVyc2lvbkZvclVBU3RyaW5n
KCkpOwogCg==
</data>
<flag name="review"
          id="313152"
          type_id="1"
          status="+"
          setter="cgarcia"
    />
    <flag name="commit-queue"
          id="313285"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>