<?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>280666</bug_id>
          
          <creation_ts>2024-09-30 22:51:03 -0700</creation_ts>
          <short_desc>Add Quirks for changing the navigator.Language because of fingerprinting for logging</short_desc>
          <delta_ts>2026-04-07 21:37:56 -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>WebKit 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>https://bestbuy.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>280667</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2064450</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-30 22:51:03 -0700</bug_when>
    <thetext>When a user is trying to log in on the bestbuy.com website 
with Safari set as Japanese (Accept-Language: ja) or French-France (Accept-Language: fr-FR), 
the login is not working.

While at the same time this is working for Chrome and Firefox. 
Also some other languages will be accepted, even things such as French-Canada


Safari:

PASS Accept-Language: en-US,en;q=0.9
PASS Accept-Language: pt-BR,pt;q=0.9
PASS Accept-Language: fr-CA,fr;q=0.9

FAIL Accept-Language: fr-FR,fr;q=0.9
FAIL Accept-Language: ja


Firefox:
PASS Accept-Language: en-US,en;q=0.8,fr-FR;q=0.5,ja;q=0.3
PASS Accept-Language: fr-FR
PASS Accept-Language: ja



We also tried with Safari and overriding the User-Agent to be Firefox.

Not working:
* Accept-Language: ja
* User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0


And it fails on Firefox with a Safari UA override.

* Accept-Language: fr-FR
* User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15


bestbuy.com doesn&apos;t send a spanish speaking version of the site to users with 
Accept-Language: es-US,es-419;q=0.9,es;q=0.8

So we can probably test a Accept-Language override in English without issues. 



In parallel, an outreach effort will be started to contact Best Buy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064453</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-30 22:58:09 -0700</bug_when>
    <thetext>&lt;rdar://136235936&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064474</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-10-01 03:08:40 -0700</bug_when>
    <thetext>Outreach effort at https://github.com/webcompat/web-bugs/issues/142261</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197495</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-04-06 22:31:32 -0700</bug_when>
    <thetext>I initially though it was Accept-Language, but that&apos;s more complex.

There is language detection everywhere on the client side.
So one solution would be to override the navigator.Language.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197496</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-04-06 22:32:32 -0700</bug_when>
    <thetext>Override navigator.language and navigator.languages to return English values for bestbuy.com. This:

Fixes the getBrowserLocale() call returning &quot;ja&quot; → now returns &quot;en-US&quot;
Fixes the environment initialization matching &quot;en-US&quot; correctly
Fixes the fingerprint hash including the correct language value
Fixes all downstream navigator.language reads (analytics, device info, etc.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197508</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-04-06 23:23:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/62170</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197867</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-07 21:37:55 -0700</bug_when>
    <thetext>Committed 310760@main (8655616b4d00): &lt;https://commits.webkit.org/310760@main&gt;

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

    </bug>

</bugzilla>