<?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>193979</bug_id>
          
          <creation_ts>2019-01-29 13:38:34 -0800</creation_ts>
          <short_desc>REGRESSION(r240541): WebKit.WebsitePoliciesCustomJavaScriptUserAgent is failing since introduction on iOS</short_desc>
          <delta_ts>2019-01-30 19:57:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</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="Truitt Savell">tsavell</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ap</cc>
    
    <cc>jlewis3</cc>
    
    <cc>lforschler</cc>
    
    <cc>rniwa</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1499692</commentid>
    <comment_count>0</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2019-01-29 13:38:34 -0800</bug_when>
    <thetext>WebKit.WebsitePoliciesCustomJavaScriptUserAgent is failing on iOS after being introduced in https://trac.webkit.org/changeset/240541/webkit

Failed

    TestWebKitAPI.WebKit.WebsitePoliciesCustomJavaScriptUserAgent
        Received data during response processing, queuing it.
        Received data during response processing, queuing it.
        Received data during response processing, queuing it.
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1142
        Value of: [userAgentString hasPrefix:@&quot;Mozilla/5.0 (Macintosh;&quot;]
          Actual: false
        Expected: true
        
        
        /Volumes/Data/slave/ios-simulator-12-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:1143
        Value of: [userAgentString hasSuffix:@&quot;(KHTML, like Gecko)&quot;]
          Actual: false
        Expected: true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1500058</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2019-01-30 10:29:49 -0800</bug_when>
    <thetext>Ryosuke, can you look into this today, or should the change be rolled back?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1500320</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-01-30 17:45:03 -0800</bug_when>
    <thetext>Ugh... of course. iOS has a different UA string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1500325</commentid>
    <comment_count>3</comment_count>
      <attachid>360660</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-01-30 17:51:36 -0800</bug_when>
    <thetext>Created attachment 360660
Fixes the test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1500380</commentid>
    <comment_count>4</comment_count>
      <attachid>360660</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-01-30 19:56:20 -0800</bug_when>
    <thetext>Comment on attachment 360660
Fixes the test

Clearing flags on attachment: 360660

Committed r240756: &lt;https://trac.webkit.org/changeset/240756&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1500381</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-01-30 19:56:22 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1500382</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-30 19:57:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/47691812&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>360660</attachid>
            <date>2019-01-30 17:51:36 -0800</date>
            <delta_ts>2019-01-30 19:56:20 -0800</delta_ts>
            <desc>Fixes the test</desc>
            <filename>fix193979.patch</filename>
            <type>text/plain</type>
            <size>1755</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCA4OGYx
YzJhNDY5My4uZDY2YjE4YWY0NGMgMTAwNjQ0Ci0tLSBhL1Rvb2xzL0NoYW5nZUxvZworKysgYi9U
b29scy9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAxOS0wMS0zMCAgUnlvc3VrZSBOaXdh
ICA8cm5pd2FAd2Via2l0Lm9yZz4KKworICAgICAgICBSRUdSRVNTSU9OKHIyNDA1NDEpOiBXZWJL
aXQuV2Vic2l0ZVBvbGljaWVzQ3VzdG9tSmF2YVNjcmlwdFVzZXJBZ2VudCBpcyBmYWlsaW5nIHNp
bmNlIGludHJvZHVjdGlvbiBvbiBpT1MKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv
c2hvd19idWcuY2dpP2lkPTE5Mzk3OQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09Q
UyEpLgorCisgICAgICAgIEZpeCB0aGUgdGVzdCBmb3IgaU9TLiBNYWtlIHRoZSB0ZXN0IHdvcmsg
d2l0aC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