Skip to content

Commit

Permalink
chrome 118
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Oct 13, 2023
1 parent f4810b0 commit f62c66f
Show file tree
Hide file tree
Showing 18 changed files with 247 additions and 257 deletions.
2 changes: 1 addition & 1 deletion src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</properties>

<body>
<release version="3.7.0" date="October xx, 2023" description="Firefox 118, Bugfixes, Documentation updates">
<release version="3.7.0" date="October xx, 2023" description="Firefox 118, Chrome 118, Bugfixes, Documentation updates">
<action type="remove" dev="rbri">
test-javadoc removed from the website.
</action>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/htmlunit/BrowserVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public final class BrowserVersion implements Serializable {
public static final BrowserVersion EDGE = new BrowserVersion(116, "Edge");

/** Latest Chrome. */
public static final BrowserVersion CHROME = new BrowserVersion(116, "Chrome");
public static final BrowserVersion CHROME = new BrowserVersion(118, "Chrome");

/**
* Array with all supported browsers.
Expand Down Expand Up @@ -253,8 +253,8 @@ public final class BrowserVersion implements Serializable {
CHROME.cssAcceptHeader_ = "text/css,*/*;q=0.1";
CHROME.scriptAcceptHeader_ = "*/*";
CHROME.secClientHintUserAgentHeader_ = "\"Chromium\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\"";
+ CHROME.getBrowserVersionNumeric() + "\", \"Google Chrome\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\", \"Not=A?Brand\";v=\"99\"";
CHROME.fontHeights_ = new int[] {
0, 1, 2, 4, 5, 5, 6, 8, 9, 10, 11, 12, 15, 16, 16, 17, 18, 20, 21, 22, 23, 25, 26, 26,
27, 28, 30, 31, 32, 33, 34, 36, 37, 37, 38, 40, 42, 43, 44, 45, 47, 48, 48, 49, 51, 52, 53, 54, 55, 57,
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/htmlunit/BrowserVersionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class BrowserVersionTest {
public void getBrowserVersionNumeric() {
assertEquals(116, BrowserVersion.FIREFOX.getBrowserVersionNumeric());
assertEquals(102, BrowserVersion.FIREFOX_ESR.getBrowserVersionNumeric());
assertEquals(116, BrowserVersion.CHROME.getBrowserVersionNumeric());
assertEquals(118, BrowserVersion.CHROME.getBrowserVersionNumeric());
assertEquals(116, BrowserVersion.EDGE.getBrowserVersionNumeric());
assertEquals(11, BrowserVersion.INTERNET_EXPLORER.getBrowserVersionNumeric());
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/htmlunit/ExternalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class ExternalTest {
static String MAVEN_REPO_URL_ = "https://repo1.maven.org/maven2/";

/** Chrome driver. */
static String CHROME_DRIVER_ = "116.0.5845.96";
static String CHROME_DRIVER_ = "118.0.5993.70";
static String CHROME_DRIVER_URL_ =
"https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json";

Expand Down
18 changes: 9 additions & 9 deletions src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7020,8 +7020,8 @@ public void html() throws Exception {
@Alerts(CHROME = "align[GSCE],allow[GSCE],allowFullscreen[GSCE],allowPaymentRequest[GSCE],constructor(),"
+ "contentDocument[GCE],contentWindow[GCE],credentialless[GSCE],csp[GSCE],featurePolicy[GCE],"
+ "frameBorder[GSCE],getSVGDocument(),height[GSCE],loading[GSCE],longDesc[GSCE],marginHeight[GSCE],"
+ "marginWidth[GSCE],name[GSCE],referrerPolicy[GSCE],sandbox[GSCE],scrolling[GSCE],src[GSCE],"
+ "srcdoc[GSCE],"
+ "marginWidth[GSCE],name[GSCE],privateToken[GSCE],referrerPolicy[GSCE],sandbox[GSCE],"
+ "scrolling[GSCE],src[GSCE],srcdoc[GSCE],"
+ "width[GSCE]",
EDGE = "align[GSCE],allow[GSCE],allowFullscreen[GSCE],allowPaymentRequest[GSCE],constructor(),"
+ "contentDocument[GCE],contentWindow[GCE],credentialless[GSCE],csp[GSCE],featurePolicy[GCE],"
Expand Down Expand Up @@ -15761,13 +15761,13 @@ public void slot() throws Exception {
+ "featurePolicy[GCE],fgColor[GSCE],firstElementChild[GCE],fonts[GCE],forms[GCE],"
+ "fragmentDirective[GCE],fullscreen[GSCE],fullscreenElement[GSCE],fullscreenEnabled[GSCE],"
+ "getAnimations(),getElementById(),getElementsByClassName(),getElementsByName(),"
+ "getElementsByTagName(),getElementsByTagNameNS(),getSelection(),hasFocus(),head[GCE],hidden[GCE],"
+ "images[GCE],implementation[GCE],importNode(),inputEncoding[GCE],lastElementChild[GCE],"
+ "lastModified[GCE],linkColor[GSCE],links[GCE],onabort[GSCE],onanimationend[GSCE],"
+ "onanimationiteration[GSCE],onanimationstart[GSCE],onauxclick[GSCE],onbeforecopy[GSCE],"
+ "onbeforecut[GSCE],onbeforeinput[GSCE],onbeforematch[GSCE],onbeforepaste[GSCE],"
+ "onbeforetoggle[GSCE],onbeforexrselect[GSCE],onblur[GSCE],oncancel[GSCE],oncanplay[GSCE],"
+ "oncanplaythrough[GSCE],onchange[GSCE],onclick[GSCE],onclose[GSCE],"
+ "getElementsByTagName(),getElementsByTagNameNS(),getSelection(),hasFocus(),hasPrivateToken(),"
+ "hasRedemptionRecord(),head[GCE],hidden[GCE],images[GCE],implementation[GCE],importNode(),"
+ "inputEncoding[GCE],lastElementChild[GCE],lastModified[GCE],linkColor[GSCE],links[GCE],"
+ "onabort[GSCE],onanimationend[GSCE],onanimationiteration[GSCE],onanimationstart[GSCE],"
+ "onauxclick[GSCE],onbeforecopy[GSCE],onbeforecut[GSCE],onbeforeinput[GSCE],onbeforematch[GSCE],"
+ "onbeforepaste[GSCE],onbeforetoggle[GSCE],onbeforexrselect[GSCE],onblur[GSCE],oncancel[GSCE],"
+ "oncanplay[GSCE],oncanplaythrough[GSCE],onchange[GSCE],onclick[GSCE],onclose[GSCE],"
+ "oncontentvisibilityautostatechange[GSCE],oncontextlost[GSCE],oncontextmenu[GSCE],"
+ "oncontextrestored[GSCE],oncopy[GSCE],oncuechange[GSCE],oncut[GSCE],ondblclick[GSCE],ondrag[GSCE],"
+ "ondragend[GSCE],ondragenter[GSCE],ondragleave[GSCE],ondragover[GSCE],ondragstart[GSCE],"
Expand Down
Loading

0 comments on commit f62c66f

Please sign in to comment.