Skip to content

Commit eb1f666

Browse files
committed
Chrome/Edge 138, Firefox 140
1 parent 612dfb4 commit eb1f666

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public final class BrowserVersion implements Serializable {
189189
HttpHeader.ACCEPT_ENCODING,
190190
HttpHeader.ACCEPT_LANGUAGE,
191191
HttpHeader.COOKIE};
192-
CHROME.acceptLanguageHeader_ = "en-US;q=0.9";
192+
CHROME.acceptLanguageHeader_ = "en-US,en;q=0.9";
193193
CHROME.htmlAcceptHeader_ = "text/html,application/xhtml+xml,application/xml;"
194194
+ "q=0.9,image/avif,image/webp,image/apng,*/*;"
195195
+ "q=0.8,application/signed-exchange;v=b3;q=0.7";
@@ -263,7 +263,7 @@ public final class BrowserVersion implements Serializable {
263263
HttpHeader.ACCEPT_ENCODING,
264264
HttpHeader.ACCEPT_LANGUAGE,
265265
HttpHeader.COOKIE};
266-
EDGE.acceptLanguageHeader_ = "en-US;q=0.9";
266+
EDGE.acceptLanguageHeader_ = "en-US,en;q=0.9";
267267
EDGE.htmlAcceptHeader_ = "text/html,application/xhtml+xml,application/xml;"
268268
+ "q=0.9,image/avif,image/webp,image/apng,*/*;"
269269
+ "q=0.8,application/signed-exchange;v=b3;q=0.7";

src/test/java/org/htmlunit/WebClient3Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ private void encodingCharset(final String title,
614614
@Alerts(DEFAULT = {"en-US", "en-US"},
615615
FF = {"en-US", "en-US,en"},
616616
FF_ESR = {"en-US", "en-US,en"})
617+
@HtmlUnitNYI(CHROME = {"en-US", "en-US,en"},
618+
EDGE = {"en-US", "en-US,en"})
617619
public void language() throws Exception {
618620
final String html = DOCTYPE_HTML
619621
+ "<html><head><script>\n"

src/test/java/org/htmlunit/html/HtmlFrame2Test.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public void crossFrameJavascript() throws Exception {
6666
*/
6767
@Test
6868
@Alerts(DEFAULT = "1",
69-
CHROME = {"1", "1"},
70-
EDGE = {"1", "1"})
69+
CHROME = {"2", "1", "1"},
70+
EDGE = {"2", "1", "1"})
7171
@HtmlUnitNYI(CHROME = "1",
7272
EDGE = "1")
7373
public void iframeOnloadCalledOnlyOnce() throws Exception {
@@ -87,7 +87,11 @@ public void iframeOnloadCalledOnlyOnce() throws Exception {
8787
* @throws Exception if an error occurs
8888
*/
8989
@Test
90-
@Alerts("1")
90+
@Alerts(DEFAULT = {"2", "1"},
91+
FF = "1",
92+
FF_ESR = "1")
93+
@HtmlUnitNYI(CHROME = "1",
94+
EDGE = "1")
9195
public void iframeOnloadAboutBlank() throws Exception {
9296
final String html = DOCTYPE_HTML
9397
+ "<html><body>\n"

src/test/java/org/htmlunit/javascript/host/NavigatorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import org.htmlunit.WebDriverTestCase;
1818
import org.htmlunit.junit.annotation.Alerts;
19+
import org.htmlunit.junit.annotation.HtmlUnitNYI;
1920
import org.junit.jupiter.api.Test;
2021

2122
/**
@@ -343,6 +344,8 @@ public void language() throws Exception {
343344
@Alerts(DEFAULT = "en-US",
344345
FF = "en-US,en",
345346
FF_ESR = "en-US,en")
347+
@HtmlUnitNYI(CHROME = "en-US,en",
348+
EDGE = "en-US,en")
346349
public void languages() throws Exception {
347350
final String html = DOCTYPE_HTML
348351
+ "<html><head>\n"

0 commit comments

Comments
 (0)