Skip to content

Commit 736cbc5

Browse files
committed
Firefox 149, Chrome 147
1 parent 40704b3 commit 736cbc5

9 files changed

Lines changed: 135 additions & 88 deletions

File tree

src/changes/changes.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
</properties>
88

99
<body>
10-
<release version="5.0.0" date="April 31, 2026" description="jdk17, Bugfixes, Chrome 147">
10+
<release version="5.0.0" date="April 31, 2026" description="jdk17, Firefox 149, Chrome 147, Bugfixes">
11+
<action type="fix" dev="rbri">
12+
XMLHttpRequest adds the origin header to patch requests.
13+
</action>
14+
<action type="update" dev="rbri">
15+
ChromeEdgeFF: document.createElement tagName character validation adjusted.
16+
</action>
17+
<action type="update" dev="rbri">
18+
ChromeEdge: willValidate returns true for readonly buttons.
19+
</action>
1120
<action type="fix" dev="rbri">
1221
Fix toString result for Intl.Collator, Intl.DateTimeFormat, Intl.NumberFormat, and Intl.v8BreakIterator.
1322
</action>

src/main/java/org/htmlunit/BrowserVersion.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
public final class BrowserVersion implements Serializable {
6666

6767
/** Latest Firefox. */
68-
public static final BrowserVersion FIREFOX = new BrowserVersion(146, "FF");
68+
public static final BrowserVersion FIREFOX = new BrowserVersion(149, "FF");
6969

7070
private static final int FIREFOX_ESR_NUMERIC = 140;
7171

@@ -151,7 +151,7 @@ public final class BrowserVersion implements Serializable {
151151
HttpHeader.SEC_FETCH_USER,
152152
HttpHeader.PRIORITY};
153153
FIREFOX.htmlAcceptHeader_ = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
154-
FIREFOX.acceptLanguageHeader_ = "en-US,en;q=0.5";
154+
FIREFOX.acceptLanguageHeader_ = "en-US,en;q=0.9";
155155
FIREFOX.xmlHttpRequestAcceptHeader_ = "*/*";
156156
FIREFOX.imgAcceptHeader_ = "image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5";
157157
FIREFOX.cssAcceptHeader_ = "text/css,*/*;q=0.1";
@@ -236,7 +236,7 @@ public final class BrowserVersion implements Serializable {
236236
HttpHeader.ACCEPT_ENCODING,
237237
HttpHeader.ACCEPT_LANGUAGE,
238238
HttpHeader.COOKIE};
239-
EDGE.acceptLanguageHeader_ = "en-US,en;q=0.9";
239+
EDGE.acceptLanguageHeader_ = "en-US,en;q=0.5";
240240
EDGE.htmlAcceptHeader_ = "text/html,application/xhtml+xml,application/xml;"
241241
+ "q=0.9,image/avif,image/webp,image/apng,*/*;"
242242
+ "q=0.8,application/signed-exchange;v=b3;q=0.7";
@@ -245,8 +245,8 @@ public final class BrowserVersion implements Serializable {
245245
EDGE.scriptAcceptHeader_ = "*/*";
246246

247247
EDGE.secClientHintUserAgentHeader_ = "\"Microsoft Edge\";v=\""
248-
+ EDGE.getBrowserVersionNumeric() + "\", \"Chromium\";v=\""
249-
+ EDGE.getBrowserVersionNumeric() + "\", \"Not A(Brand\";v=\"24\"";
248+
+ EDGE.getBrowserVersionNumeric() + "\", \"Not.A/Brand\";v=\"8\", \"Chromium\";v=\""
249+
+ EDGE.getBrowserVersionNumeric() + "\"";
250250

251251
EDGE.fontHeights_ = new int[] {
252252
0, 1, 2, 4, 5, 5, 6, 8, 9, 10, 11, 12, 15, 16, 16, 17, 18, 20, 21, 22, 23, 25, 26, 26,

src/test/java/org/htmlunit/HttpWebConnection3Test.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public void queryString() throws Exception {
366366
"Host: localhost:§§PORT§§",
367367
"User-Agent: §§USER_AGENT§§",
368368
"Accept: §§ACCEPT§§",
369-
"Accept-Language: en-US,en;q=0.5",
369+
"Accept-Language: en-US,en;q=0.9",
370370
"Accept-Encoding: gzip, deflate, br, zstd",
371371
"Connection: keep-alive",
372372
"Referer: http://localhost:§§PORT§§/",
@@ -544,7 +544,7 @@ public void formGet() throws Exception {
544544
"Host: localhost:§§PORT§§",
545545
"User-Agent: §§USER_AGENT§§",
546546
"Accept: §§ACCEPT§§",
547-
"Accept-Language: en-US,en;q=0.5",
547+
"Accept-Language: en-US,en;q=0.9",
548548
"Accept-Encoding: gzip, deflate, br, zstd",
549549
"Content-Type: application/x-www-form-urlencoded",
550550
"Content-Length: 48",
@@ -743,7 +743,7 @@ public void formPost() throws Exception {
743743
"Host: localhost:§§PORT§§",
744744
"User-Agent: §§USER_AGENT§§",
745745
"Accept: §§ACCEPT§§",
746-
"Accept-Language: en-US,en;q=0.5",
746+
"Accept-Language: en-US,en;q=0.9",
747747
"Accept-Encoding: gzip, deflate, br, zstd",
748748
"Connection: keep-alive",
749749
"Referer: http://localhost:§§PORT§§/",
@@ -903,7 +903,7 @@ public void anchor() throws Exception {
903903
"Host: localhost:§§PORT§§",
904904
"User-Agent: §§USER_AGENT§§",
905905
"Accept: §§ACCEPT§§",
906-
"Accept-Language: en-US,en;q=0.5",
906+
"Accept-Language: en-US,en;q=0.9",
907907
"Accept-Encoding: gzip, deflate, br, zstd",
908908
"Connection: keep-alive",
909909
"Referer: http://localhost:§§PORT§§/",
@@ -1061,7 +1061,7 @@ public void locationSetHref() throws Exception {
10611061
"Host: localhost:§§PORT§§",
10621062
"User-Agent: §§USER_AGENT§§",
10631063
"Accept: §§ACCEPT§§",
1064-
"Accept-Language: en-US,en;q=0.5",
1064+
"Accept-Language: en-US,en;q=0.9",
10651065
"Accept-Encoding: gzip, deflate, br, zstd",
10661066
"Connection: keep-alive",
10671067
"Referer: http://localhost:§§PORT§§/",
@@ -1215,7 +1215,7 @@ public void locationSetSearch() throws Exception {
12151215
"Host: localhost:§§PORT§§",
12161216
"User-Agent: §§USER_AGENT§§",
12171217
"Accept: §§ACCEPT§§",
1218-
"Accept-Language: en-US,en;q=0.5",
1218+
"Accept-Language: en-US,en;q=0.9",
12191219
"Accept-Encoding: gzip, deflate, br, zstd",
12201220
"Connection: keep-alive",
12211221
"Referer: http://localhost:§§PORT§§/",
@@ -1367,7 +1367,7 @@ public void loadJavascript() throws Exception {
13671367
"Host: localhost:§§PORT§§",
13681368
"User-Agent: §§USER_AGENT§§",
13691369
"Accept: §§ACCEPT§§",
1370-
"Accept-Language: en-US,en;q=0.5",
1370+
"Accept-Language: en-US,en;q=0.9",
13711371
"Accept-Encoding: gzip, deflate, br, zstd",
13721372
"Connection: keep-alive",
13731373
"Referer: http://localhost:§§PORT§§/",

0 commit comments

Comments
 (0)