Skip to content

Commit

Permalink
Chrome/Edge 119
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 4, 2023
1 parent 89360f5 commit 60954b7
Show file tree
Hide file tree
Showing 15 changed files with 215 additions and 239 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.8.0" date="November xx, 2023" description="Bugfixes, Documentation updates">
<release version="3.8.0" date="November xx, 2023" description="Chrome/Edge 119, Bugfixes">
<action type="update" dev="rbri" issue="#658">"
Internal method HtmlInput.setType(String, boolean) renamed to changeType(String, boolean) and
a return value added. Please check the javadoc if you use this.
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/org/htmlunit/BrowserVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ public final class BrowserVersion implements Serializable {
public static final BrowserVersion INTERNET_EXPLORER = new BrowserVersion(11, "IE");

/** Latest Edge. */
public static final BrowserVersion EDGE = new BrowserVersion(118, "Edge");
public static final BrowserVersion EDGE = new BrowserVersion(119, "Edge");

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

/**
* Array with all supported browsers.
Expand Down Expand Up @@ -252,9 +252,9 @@ public final class BrowserVersion implements Serializable {
CHROME.imgAcceptHeader_ = "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8";
CHROME.cssAcceptHeader_ = "text/css,*/*;q=0.1";
CHROME.scriptAcceptHeader_ = "*/*";
CHROME.secClientHintUserAgentHeader_ = "\"Chromium\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\", \"Google Chrome\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\", \"Not=A?Brand\";v=\"99\"";
CHROME.secClientHintUserAgentHeader_ = "\"Google Chrome\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\", \"Chromium\";v=\""
+ CHROME.getBrowserVersionNumeric() + "\", \"Not?A_Brand\";v=\"24\"";
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 All @@ -266,10 +266,10 @@ public final class BrowserVersion implements Serializable {
// EDGE (Win10 64bit)
EDGE.applicationVersion_ = "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/"
+ EDGE.getBrowserVersionNumeric() + ".0.0.0 Safari/537.36 Edg/"
+ EDGE.getBrowserVersionNumeric() + ".0.2088.46";
+ EDGE.getBrowserVersionNumeric() + ".0.0.0";
EDGE.userAgent_ = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/"
+ EDGE.getBrowserVersionNumeric() + ".0.0.0 Safari/537.36 Edg/"
+ EDGE.getBrowserVersionNumeric() + ".0.2088.46";
+ EDGE.getBrowserVersionNumeric() + ".0.0.0";

EDGE.applicationCodeName_ = "Mozilla";
EDGE.vendor_ = "Google Inc.";
Expand Down Expand Up @@ -299,9 +299,9 @@ public final class BrowserVersion implements Serializable {
EDGE.imgAcceptHeader_ = "image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8";
EDGE.cssAcceptHeader_ = "text/css,*/*;q=0.1";
EDGE.scriptAcceptHeader_ = "*/*";
EDGE.secClientHintUserAgentHeader_ = "\"Chromium\";v=\""
+ EDGE.getBrowserVersionNumeric() + "\", \"Microsoft Edge\";v=\""
+ EDGE.getBrowserVersionNumeric() + "\", \"Not=A?Brand\";v=\"99\"";
EDGE.secClientHintUserAgentHeader_ = "\"Microsoft Edge\";v=\""
+ EDGE.getBrowserVersionNumeric() + "\", \"Chromium\";v=\""
+ EDGE.getBrowserVersionNumeric() + "\", \"Not?A_Brand\";v=\"24\"";
EDGE.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
4 changes: 2 additions & 2 deletions src/test/java/org/htmlunit/BrowserVersionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class BrowserVersionTest {
public void getBrowserVersionNumeric() {
assertEquals(119, BrowserVersion.FIREFOX.getBrowserVersionNumeric());
assertEquals(109, BrowserVersion.FIREFOX_ESR.getBrowserVersionNumeric());
assertEquals(118, BrowserVersion.CHROME.getBrowserVersionNumeric());
assertEquals(118, BrowserVersion.EDGE.getBrowserVersionNumeric());
assertEquals(119, BrowserVersion.CHROME.getBrowserVersionNumeric());
assertEquals(119, BrowserVersion.EDGE.getBrowserVersionNumeric());
assertEquals(11, BrowserVersion.INTERNET_EXPLORER.getBrowserVersionNumeric());
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/htmlunit/ExternalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public class ExternalTest {
static String MAVEN_REPO_URL_ = "https://repo1.maven.org/maven2/";

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

static String EDGE_DRIVER_ = "118.0.2088.76";
static String EDGE_DRIVER_ = "119.0.2151.44";
static String EDGE_DRIVER_URL_ = "https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/";

/** Gecko driver. */
Expand Down
33 changes: 17 additions & 16 deletions src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ public void htmlElement() throws Exception {
+ "requestFullscreen(),requestPointerLock(),role[GSCE],scroll(),scrollBy(),scrollHeight[GCE],"
+ "scrollIntoView(),scrollIntoViewIfNeeded(),scrollLeft[GSCE],scrollTo(),scrollTop[GSCE],"
+ "scrollWidth[GCE],setAttribute(),setAttributeNode(),setAttributeNodeNS(),setAttributeNS(),"
+ "setHTML(),setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "webkitMatchesSelector(),webkitRequestFullScreen(),"
+ "webkitRequestFullscreen()",
EDGE = "after(),animate(),append(),ariaAtomic[GSCE],ariaAutoComplete[GSCE],ariaBrailleLabel[GSCE],"
Expand Down Expand Up @@ -575,7 +575,7 @@ public void htmlElement() throws Exception {
+ "requestFullscreen(),requestPointerLock(),role[GSCE],scroll(),scrollBy(),scrollHeight[GCE],"
+ "scrollIntoView(),scrollIntoViewIfNeeded(),scrollLeft[GSCE],scrollTo(),scrollTop[GSCE],"
+ "scrollWidth[GCE],setAttribute(),setAttributeNode(),setAttributeNodeNS(),setAttributeNS(),"
+ "setHTML(),setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "webkitMatchesSelector(),webkitRequestFullScreen(),"
+ "webkitRequestFullscreen()",
FF = "after(),animate(),append(),ariaAtomic[GSCE],ariaAutoComplete[GSCE],ariaBusy[GSCE],"
Expand Down Expand Up @@ -743,7 +743,7 @@ public void element() throws Exception {
+ "requestFullscreen(),requestPointerLock(),role[GSCE],scroll(),scrollBy(),scrollHeight[GCE],"
+ "scrollIntoView(),scrollIntoViewIfNeeded(),scrollLeft[GSCE],scrollTo(),scrollTop[GSCE],"
+ "scrollWidth[GCE],setAttribute(),setAttributeNode(),setAttributeNodeNS(),setAttributeNS(),"
+ "setHTML(),setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "webkitMatchesSelector(),webkitRequestFullScreen(),"
+ "webkitRequestFullscreen()",
EDGE = "after(),animate(),append(),ariaAtomic[GSCE],ariaAutoComplete[GSCE],ariaBrailleLabel[GSCE],"
Expand Down Expand Up @@ -772,7 +772,7 @@ public void element() throws Exception {
+ "requestFullscreen(),requestPointerLock(),role[GSCE],scroll(),scrollBy(),scrollHeight[GCE],"
+ "scrollIntoView(),scrollIntoViewIfNeeded(),scrollLeft[GSCE],scrollTo(),scrollTop[GSCE],"
+ "scrollWidth[GCE],setAttribute(),setAttributeNode(),setAttributeNodeNS(),setAttributeNS(),"
+ "setHTML(),setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "setPointerCapture(),shadowRoot[GCE],slot[GSCE],tagName[GCE],toggleAttribute(),"
+ "webkitMatchesSelector(),webkitRequestFullScreen(),"
+ "webkitRequestFullscreen()",
FF = "after(),animate(),append(),ariaAtomic[GSCE],ariaAutoComplete[GSCE],ariaBusy[GSCE],"
Expand Down Expand Up @@ -15866,9 +15866,9 @@ public void slot() throws Exception {
+ "fragmentDirective[GCE],fullscreen[GSCE],fullscreenElement[GSCE],fullscreenEnabled[GSCE],"
+ "getAnimations(),getElementById(),getElementsByClassName(),getElementsByName(),"
+ "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],"
+ "hasRedemptionRecord(),hasStorageAccess(),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],"
Expand Down Expand Up @@ -15896,12 +15896,13 @@ public void slot() throws Exception {
+ "pictureInPictureElement[GCE],pictureInPictureEnabled[GCE],plugins[GCE],pointerLockElement[GCE],"
+ "prepend(),prerendering[GCE],queryCommandEnabled(),queryCommandIndeterm(),queryCommandState(),"
+ "queryCommandSupported(),queryCommandValue(),querySelector(),querySelectorAll(),readyState[GCE],"
+ "referrer[GCE],releaseEvents(),replaceChildren(),rootElement[GCE],scripts[GCE],"
+ "scrollingElement[GCE],startViewTransition(),styleSheets[GCE],timeline[GCE],title[GSCE],URL[GCE],"
+ "visibilityState[GCE],vlinkColor[GSCE],wasDiscarded[GCE],webkitCancelFullScreen(),"
+ "webkitCurrentFullScreenElement[GCE],webkitExitFullscreen(),webkitFullscreenElement[GCE],"
+ "webkitFullscreenEnabled[GCE],webkitHidden[GCE],webkitIsFullScreen[GCE],"
+ "webkitVisibilityState[GCE],write(),writeln(),xmlEncoding[GCE],xmlStandalone[GSCE],"
+ "referrer[GCE],releaseEvents(),replaceChildren(),requestStorageAccess(),requestStorageAccessFor(),"
+ "rootElement[GCE],scripts[GCE],scrollingElement[GCE],startViewTransition(),styleSheets[GCE],"
+ "timeline[GCE],title[GSCE],URL[GCE],visibilityState[GCE],vlinkColor[GSCE],wasDiscarded[GCE],"
+ "webkitCancelFullScreen(),webkitCurrentFullScreenElement[GCE],webkitExitFullscreen(),"
+ "webkitFullscreenElement[GCE],webkitFullscreenEnabled[GCE],webkitHidden[GCE],"
+ "webkitIsFullScreen[GCE],webkitVisibilityState[GCE],write(),writeln(),xmlEncoding[GCE],"
+ "xmlStandalone[GSCE],"
+ "xmlVersion[GSCE]",
EDGE = "activeElement[GCE],adoptedStyleSheets[GSCE],adoptNode(),alinkColor[GSCE],all[GCE],anchors[GCE],"
+ "append(),applets[GCE],bgColor[GSCE],body[GSCE],captureEvents(),caretRangeFromPoint(),"
Expand Down Expand Up @@ -15947,9 +15948,9 @@ public void slot() throws Exception {
+ "pictureInPictureElement[GCE],pictureInPictureEnabled[GCE],plugins[GCE],pointerLockElement[GCE],"
+ "prepend(),prerendering[GCE],queryCommandEnabled(),queryCommandIndeterm(),queryCommandState(),"
+ "queryCommandSupported(),queryCommandValue(),querySelector(),querySelectorAll(),readyState[GCE],"
+ "referrer[GCE],releaseEvents(),replaceChildren(),requestStorageAccess(),rootElement[GCE],"
+ "scripts[GCE],scrollingElement[GCE],startViewTransition(),styleSheets[GCE],timeline[GCE],"
+ "title[GSCE],URL[GCE],visibilityState[GCE],vlinkColor[GSCE],wasDiscarded[GCE],"
+ "referrer[GCE],releaseEvents(),replaceChildren(),requestStorageAccess(),requestStorageAccessFor(),"
+ "rootElement[GCE],scripts[GCE],scrollingElement[GCE],startViewTransition(),styleSheets[GCE],"
+ "timeline[GCE],title[GSCE],URL[GCE],visibilityState[GCE],vlinkColor[GSCE],wasDiscarded[GCE],"
+ "webkitCancelFullScreen(),webkitCurrentFullScreenElement[GCE],webkitExitFullscreen(),"
+ "webkitFullscreenElement[GCE],webkitFullscreenEnabled[GCE],webkitHidden[GCE],"
+ "webkitIsFullScreen[GCE],webkitVisibilityState[GCE],write(),writeln(),xmlEncoding[GCE],"
Expand Down
Loading

0 comments on commit 60954b7

Please sign in to comment.