<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[277135] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/277135">277135</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2021-05-06 16:01:17 -0700 (Thu, 06 May 2021)</dd>
</dl>

<h3>Log Message</h3>
<pre>Regression(<a href="http://trac.webkit.org/projects/webkit/changeset/254389">r254389</a>?) navigator.languages returns all lowercase languages for ports using CF
https://bugs.webkit.org/show_bug.cgi?id=225461

Reviewed by Darin Adler.

Source/WTF:

Stop lowercasing the languages returned by navigator.language / navigator.languages
as this does not match the specification [1][2] or other Web browsers. The proper format is
'en-US', not 'en-us'.

[1] https://html.spec.whatwg.org/#dom-navigator-language
[2] https://tools.ietf.org/html/bcp47

* wtf/cf/LanguageCF.cpp:
(WTF::httpStyleLanguageCode):

Tools:

Update existing API tests to reflect behavior change.

* TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm:
(TEST):
(TEST_F):

LayoutTests:

Update existing tests to reflect behavior change.

* fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-en-GB.html:
* fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-en-US.html:
* fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-en.html:
* fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-es-ES.html:
* fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-es-MX.html:
* fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-es.html:
* fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html:
* fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-fr.html:
* fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-hi.html:
* fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html:
* fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html:
* fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-ru.html:
* fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html:
* fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html:
* fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html:
* fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html:
* fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt:
* fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html:
* js/dom/navigator-language.html:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt:
* platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt:
* platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenGBexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenGBhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUSexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUShtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesESexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesEShtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageeshtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrCAexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrCAhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehiexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehihtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptPTexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptPThtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHKexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHKhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHansexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHanshtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantHKexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantHKhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHanthtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhTWexpectedtxt">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhTWhtml">trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html</a></li>
<li><a href="#trunkLayoutTestsjsdomnavigatorlanguagehtml">trunk/LayoutTests/js/dom/navigator-language.html</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUSexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesESexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehiexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruexpectedtxt">trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUSexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagees419expectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesESexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehiexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagejaexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHKexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantHKexpectedtxt">trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfcfLanguageCFcpp">trunk/Source/WTF/wtf/cf/LanguageCF.cpp</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWebKitOverrideAppleLanguagesPreferencemm">trunk/Tools/TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/ChangeLog 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,3 +1,70 @@
</span><ins>+2021-05-06  Chris Dumez  <cdumez@apple.com>
+
+        Regression(r254389?) navigator.languages returns all lowercase languages for ports using CF
+        https://bugs.webkit.org/show_bug.cgi?id=225461
+
+        Reviewed by Darin Adler.
+
+        Update existing tests to reflect behavior change.
+
+        * fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-en-GB.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-en-US.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-en.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-es-ES.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-es-MX.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-es.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-fr.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-hi.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-ru.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt:
+        * fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html:
+        * js/dom/navigator-language.html:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt:
+        * platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt:
+        * platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt:
+
</ins><span class="cx"> 2021-05-06  Lauro Moura  <lmoura@igalia.com>
</span><span class="cx"> 
</span><span class="cx">         [WPE] Garden accessibility failure and merge other expectations with glib one
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenGBexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "en-gb"
</del><ins>+PASS navigator.language is "en-GB"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenGBhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-GB.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "en-gb");
</del><ins>+shouldBeEqualToString("navigator.language", "en-GB");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUSexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "en-us"
</del><ins>+PASS navigator.language is "en-US"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUShtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-US.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "en-us");
</del><ins>+shouldBeEqualToString("navigator.language", "en-US");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "en-us"
</del><ins>+PASS navigator.language is "en-US"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en.html  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-en.html     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "en-us");
</del><ins>+shouldBeEqualToString("navigator.language", "en-US");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesESexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "es-es"
</del><ins>+PASS navigator.language is "es-ES"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesEShtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-ES.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "es-es");
</del><ins>+shouldBeEqualToString("navigator.language", "es-ES");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "es-mx"
</del><ins>+PASS navigator.language is "es-MX"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-MX.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "es-mx");
</del><ins>+shouldBeEqualToString("navigator.language", "es-MX");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "es-es"
</del><ins>+PASS navigator.language is "es-ES"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageeshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es.html  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-es.html     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "es-es");
</del><ins>+shouldBeEqualToString("navigator.language", "es-ES");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrCAexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "fr-ca"
</del><ins>+PASS navigator.language is "fr-CA"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrCAhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-CA.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "fr-ca");
</del><ins>+shouldBeEqualToString("navigator.language", "fr-CA");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "fr-fr"
</del><ins>+PASS navigator.language is "fr-FR"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr.html  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-fr.html     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "fr-fr");
</del><ins>+shouldBeEqualToString("navigator.language", "fr-FR");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehiexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "hi-in"
</del><ins>+PASS navigator.language is "hi-IN"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehihtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi.html  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-hi.html     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "hi-in");
</del><ins>+shouldBeEqualToString("navigator.language", "hi-IN");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "pt-br"
</del><ins>+PASS navigator.language is "pt-BR"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-BR.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "pt-br");
</del><ins>+shouldBeEqualToString("navigator.language", "pt-BR");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptPTexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "pt-pt"
</del><ins>+PASS navigator.language is "pt-PT"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptPThtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-pt-PT.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "pt-pt");
</del><ins>+shouldBeEqualToString("navigator.language", "pt-PT");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "ru-ru"
</del><ins>+PASS navigator.language is "ru-RU"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru.html  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-ru.html     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "ru-ru");
</del><ins>+shouldBeEqualToString("navigator.language", "ru-RU");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHKexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "zh-hk"
</del><ins>+PASS navigator.language is "zh-HK"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHKhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-HK.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "zh-hk");
</del><ins>+shouldBeEqualToString("navigator.language", "zh-HK");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHansexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt     2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans-expected.txt        2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "zh-cn"
</del><ins>+PASS navigator.language is "zh-CN"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHanshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html     2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hans.html        2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "zh-cn");
</del><ins>+shouldBeEqualToString("navigator.language", "zh-CN");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantHKexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "zh-hk"
</del><ins>+PASS navigator.language is "zh-HK"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantHKhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK.html     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "zh-hk");
</del><ins>+shouldBeEqualToString("navigator.language", "zh-HK");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt     2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-expected.txt        2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "zh-tw"
</del><ins>+PASS navigator.language is "zh-TW"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHanthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html     2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant.html        2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "zh-tw");
</del><ins>+shouldBeEqualToString("navigator.language", "zh-TW");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhTWexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW-expected.txt  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "zh-tw"
</del><ins>+PASS navigator.language is "zh-TW"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhTWhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/fast/text/international/system-language/navigator-language/navigator-language-zh-TW.html  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> </head>
</span><span class="cx"> <body>
</span><span class="cx"> <script>
</span><del>-shouldBeEqualToString("navigator.language", "zh-tw");
</del><ins>+shouldBeEqualToString("navigator.language", "zh-TW");
</ins><span class="cx"> </script>
</span><span class="cx"> </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsjsdomnavigatorlanguagehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/dom/navigator-language.html (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/dom/navigator-language.html 2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/js/dom/navigator-language.html    2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -15,7 +15,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> var language = navigator.language;
</span><del>-if (language == "en" || language == "en-us" || language == "en-US")
</del><ins>+if (language == "en" || language == "en-US")
</ins><span class="cx">     testPassed("");
</span><span class="cx"> else
</span><span class="cx">     testFailed("");
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUSexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt 2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt    2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be en-us. Was en.
</del><ins>+FAIL navigator.language should be en-US. Was en.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt    2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt       2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be en-us. Was en.
</del><ins>+FAIL navigator.language should be en-US. Was en.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesESexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt 2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt    2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be es-es. Was es.
</del><ins>+FAIL navigator.language should be es-ES. Was es.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt 2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt    2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be es-mx. Was es-419.
</del><ins>+FAIL navigator.language should be es-MX. Was es-419.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt    2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt       2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be es-es. Was es.
</del><ins>+FAIL navigator.language should be es-ES. Was es.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt    2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt       2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be fr-fr. Was fr.
</del><ins>+FAIL navigator.language should be fr-FR. Was fr.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehiexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt    2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt       2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be hi-in. Was hi.
</del><ins>+FAIL navigator.language should be hi-IN. Was hi.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt 2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt    2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be pt-br. Was pt.
</del><ins>+FAIL navigator.language should be pt-BR. Was pt.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmaccatalinafasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt    2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-catalina/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt       2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be ru-ru. Was ru.
</del><ins>+FAIL navigator.language should be ru-RU. Was ru.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenUSexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt   2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-US-expected.txt      2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "en-us"
</del><ins>+PASS navigator.language is "en-US"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageenexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-en-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "en-us"
</del><ins>+PASS navigator.language is "en-US"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagees419expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt  2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-419-expected.txt     2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be es-419. Was es-xl.
</del><ins>+FAIL navigator.language should be es-419. Was es-XL.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesESexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt   2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-ES-expected.txt      2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "es-es"
</del><ins>+PASS navigator.language is "es-ES"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesMXexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt   2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-MX-expected.txt      2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be es-mx. Was es-xl.
</del><ins>+FAIL navigator.language should be es-MX. Was es-XL.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-es-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "es-es"
</del><ins>+PASS navigator.language is "es-ES"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagefrexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-fr-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "fr-fr"
</del><ins>+PASS navigator.language is "fr-FR"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagehiexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-hi-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "hi-in"
</del><ins>+PASS navigator.language is "hi-IN"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagejaexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ja-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be ja. Was ja-jp.
</del><ins>+FAIL navigator.language should be ja. Was ja-JP.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageptBRexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt   2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-pt-BR-expected.txt      2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "pt-br"
</del><ins>+PASS navigator.language is "pt-BR"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguageruexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-ru-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-PASS navigator.language is "ru-ru"
</del><ins>+PASS navigator.language is "ru-RU"
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHKexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt   2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-HK-expected.txt      2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be zh-hk. Was zh-tw.
</del><ins>+FAIL navigator.language should be zh-HK. Was zh-TW.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacmojavefasttextinternationalsystemlanguagenavigatorlanguagenavigatorlanguagezhHantHKexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt      2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/LayoutTests/platform/mac-mojave/fast/text/international/system-language/navigator-language/navigator-language-zh-Hant-HK-expected.txt 2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><del>-FAIL navigator.language should be zh-hk. Was zh-tw.
</del><ins>+FAIL navigator.language should be zh-HK. Was zh-TW.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> Some tests failed.
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/Source/WTF/ChangeLog  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2021-05-06  Chris Dumez  <cdumez@apple.com>
+
+        Regression(r254389?) navigator.languages returns all lowercase languages for ports using CF
+        https://bugs.webkit.org/show_bug.cgi?id=225461
+
+        Reviewed by Darin Adler.
+
+        Stop lowercasing the languages returned by navigator.language / navigator.languages
+        as this does not match the specification [1][2] or other Web browsers. The proper format is
+        'en-US', not 'en-us'.
+
+        [1] https://html.spec.whatwg.org/#dom-navigator-language
+        [2] https://tools.ietf.org/html/bcp47
+
+        * wtf/cf/LanguageCF.cpp:
+        (WTF::httpStyleLanguageCode):
+
</ins><span class="cx"> 2021-05-06  Filip Pizlo  <fpizlo@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Remove old and unused memory barrier abstractions
</span></span></pre></div>
<a id="trunkSourceWTFwtfcfLanguageCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/cf/LanguageCF.cpp (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/cf/LanguageCF.cpp   2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/Source/WTF/wtf/cf/LanguageCF.cpp      2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -85,9 +85,7 @@
</span><span class="cx">     if (CFStringGetLength(mutableLanguageCode.get()) >= 3 && CFStringGetCharacterAtIndex(mutableLanguageCode.get(), 2) == '_')
</span><span class="cx">         CFStringReplace(mutableLanguageCode.get(), CFRangeMake(2, 1), CFSTR("-"));
</span><span class="cx"> 
</span><del>-    CFStringLowercase(mutableLanguageCode.get(), nullptr);
</del><span class="cx">     return mutableLanguageCode.get();
</span><del>-
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void platformLanguageDidChange()
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog    2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/Tools/ChangeLog       2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2021-05-06  Chris Dumez  <cdumez@apple.com>
+
+        Regression(r254389?) navigator.languages returns all lowercase languages for ports using CF
+        https://bugs.webkit.org/show_bug.cgi?id=225461
+
+        Reviewed by Darin Adler.
+
+        Update existing API tests to reflect behavior change.
+
+        * TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm:
+        (TEST):
+        (TEST_F):
+
</ins><span class="cx"> 2021-05-06  Devin Rousso  <drousso@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Sampled Page Top Color: make hit tests consider elements with `pointer-events: none`
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWebKitOverrideAppleLanguagesPreferencemm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm (277134 => 277135)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm       2021-05-06 22:31:46 UTC (rev 277134)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm  2021-05-06 23:01:17 UTC (rev 277135)
</span><span class="lines">@@ -49,7 +49,7 @@
</span><span class="cx">         return [webView stringByEvaluatingJavaScript:@"window.internals.userPreferredLanguages()[0]"];
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    ASSERT_TRUE([preferredLanguage() isEqual:@"en-gb"]);
</del><ins>+    ASSERT_TRUE([preferredLanguage() isEqual:@"en-GB"]);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #endif // WK_HAVE_C_SPI
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx">     auto preferredLanguage = [&] {
</span><span class="cx">         return [webView stringByEvaluatingJavaScript:@"navigator.language"];
</span><span class="cx">     };
</span><del>-    EXPECT_WK_STREQ(@"en-gb", preferredLanguage());
</del><ins>+    EXPECT_WK_STREQ(@"en-GB", preferredLanguage());
</ins><span class="cx"> 
</span><span class="cx">     __block bool done = false;
</span><span class="cx">     [webView evaluateJavaScript:@"onlanguagechange = () => { webkit.messageHandlers.testHandler.postMessage(navigator.language); }; true;" completionHandler:^(id value, NSError *error) {
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">     done = false;
</span><span class="cx">     __block bool didChangeLanguage = false;
</span><span class="cx">     [webView performAfterReceivingAnyMessage:^(NSString *newLanguage) {
</span><del>-        EXPECT_WK_STREQ(@"en-us", newLanguage);
</del><ins>+        EXPECT_WK_STREQ(@"en-US", newLanguage);
</ins><span class="cx">         didChangeLanguage = true;
</span><span class="cx">         done = true;
</span><span class="cx">     }];
</span></span></pre>
</div>
</div>

</body>
</html>