<?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>305422</bug_id>
          
          <creation_ts>2026-01-13 13:55:48 -0800</creation_ts>
          <short_desc>tiktok.com: [macOS] Please upgrade to the latest version of your browser - message on upload</short_desc>
          <delta_ts>2026-01-14 12:20:49 -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>New Bugs</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="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2171557</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2026-01-13 13:55:48 -0800</bug_when>
    <thetext>We have the unfortunate architecture of two separate “Custom User Agent” values governing page loads and the Navigator API (see Bug 305420). One is called customUserAgent, and was the field we populated when fixing the iOS version of this bug.

There is also a customUserAgentAsSiteSpecificQuirks field, which happens to be used in the macOS case. Because this value was present, the Navigator API was using it in preference to the customUserAgent field set in WebsitePolicies.

This caused my attempted fix in Bug 291113 to start failing as soon as a quirks-level custom URL scheme was set on macOS.

For now, I’m just applying the same fix to customUserAgentAsSiteSpecificQuirks (if it exists) so that whichever flavor of custom URL is in place, it is tweaked with the necessary like Chrome/136 string.

I will see if we can streamline and simplify the handling of custom User Agent separately in Bug 305420.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171558</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2026-01-13 13:56:01 -0800</bug_when>
    <thetext>rdar://166837052</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171569</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2026-01-13 14:34:31 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56522</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171903</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-14 12:20:47 -0800</bug_when>
    <thetext>Committed 305598@main (f4cfd452ee0a): &lt;https://commits.webkit.org/305598@main&gt;

Reviewed commits have been landed. Closing PR #56522 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>