Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat(firefox): roll to r1555 (#43081)

microsoft-playwright-automation[bot]2a8ba77a33a5
diff --git a/README.md b/README.md
index 90f5dcf80f..b89dd12717 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# 🎭 Playwright
-[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-156.0.8078.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-156.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-26.6-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop --> [![Join Discord](https://img.shields.io/badge/join-discord-informational)](https://aka.ms/playwright/discord)
+[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-156.0.8078.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-157.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-26.6-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop --> [![Join Discord](https://img.shields.io/badge/join-discord-informational)](https://aka.ms/playwright/discord)
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)
@@ -298,7 +298,7 @@ The [Playwright VS Code extension](https://marketplace.visualstudio.com/items?it
| :--- | :---: | :---: | :---: |
| Chromium<sup>1</sup> <!-- GEN:chromium-version -->156.0.8078.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| WebKit <!-- GEN:webkit-version -->26.6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
-| Firefox <!-- GEN:firefox-version -->156.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
+| Firefox <!-- GEN:firefox-version -->157.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Headless and headed execution on all platforms. <sup>1</sup> Uses [Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing) by default.
diff --git a/browser_patches/firefox/UPSTREAM_CONFIG.sh b/browser_patches/firefox/UPSTREAM_CONFIG.sh
index 95840f644f..a78a24aa6c 100644
--- a/browser_patches/firefox/UPSTREAM_CONFIG.sh
+++ b/browser_patches/firefox/UPSTREAM_CONFIG.sh
@@ -1,3 +1,3 @@
REMOTE_URL="https://github.com/mozilla-firefox/firefox"
BASE_BRANCH="release"
-BASE_REVISION="3bf8f468258c2181f455e23d4ffcd6acb8f4cdb1"
+BASE_REVISION="fdd757a2e09c9471cddf383e64e631e4ce178499"
diff --git a/browser_patches/firefox/patches/bootstrap.diff b/browser_patches/firefox/patches/bootstrap.diff
index b84ebe0a1e..0a18b796d9 100644
--- a/browser_patches/firefox/patches/bootstrap.diff
+++ b/browser_patches/firefox/patches/bootstrap.diff
@@ -1,16 +1,16 @@
diff --git a/browser/app/winlauncher/LauncherProcessWin.cpp b/browser/app/winlauncher/LauncherProcessWin.cpp
-index 8337336dc894b44ea696bb780e448dfbdd8b6357..9eb83f33bb0415f28d1bcf66507d33d0cb9ad605 100644
+index 3734e1d3eba29d4e939bce3346a9e8e7590420ce..c46b5a7670b10e308a4e1096aa710cac90056d55 100644
--- a/browser/app/winlauncher/LauncherProcessWin.cpp
+++ b/browser/app/winlauncher/LauncherProcessWin.cpp
-@@ -18,6 +18,7 @@
- #include "mozilla/WinHeaderOnlyUtils.h"
+@@ -20,6 +20,7 @@
#include "nsWindowsHelpers.h"
+ #include "mozilla/mscom/ProcessRuntime.h"
+#include <io.h>
#include <windows.h>
#include <processthreadsapi.h>
#include <shlwapi.h>
-@@ -490,8 +491,18 @@ Maybe<int> LauncherMain(int& argc, wchar_t* argv[]) {
+@@ -577,8 +578,18 @@ Maybe<int> LauncherMain(int& argc, wchar_t* argv[]) {
HANDLE stdHandles[] = {::GetStdHandle(STD_INPUT_HANDLE),
::GetStdHandle(STD_OUTPUT_HANDLE),
::GetStdHandle(STD_ERROR_HANDLE)};
@@ -109,10 +109,10 @@ index 257e87fe0c618684eb4216c8028ac886ef2d5562..8c13f020100dad9bc4e093d50bd3a1f9
const transportProvider = {
setListener(upgradeListener) {
diff --git a/docshell/base/BrowsingContext.cpp b/docshell/base/BrowsingContext.cpp
-index ec540bce58080a4cb9526d16bdbdce8f92137def..05bc53ad2252abdc796328317a73bfb6470224a7 100644
+index fc3768fa48b374f856c0a75166bf3ec728b25bb4..7345e087f17cc5ea7126babb1d52eed34b1fa58d 100644
--- a/docshell/base/BrowsingContext.cpp
+++ b/docshell/base/BrowsingContext.cpp
-@@ -119,8 +119,11 @@ struct ParamTraits<mozilla::dom::DisplayMode>
+@@ -121,8 +121,11 @@ struct ParamTraits<mozilla::dom::DisplayMode>
template <>
struct ParamTraits<mozilla::dom::PrefersColorSchemeOverride>
@@ -126,7 +126,7 @@ index ec540bce58080a4cb9526d16bdbdce8f92137def..05bc53ad2252abdc796328317a73bfb6
template <>
struct ParamTraits<mozilla::dom::ForcedColorsOverride>
-@@ -484,7 +487,11 @@ already_AddRefed<BrowsingContext> BrowsingContext::CreateDetached(
+@@ -486,7 +489,11 @@ already_AddRefed<BrowsingContext> BrowsingContext::CreateDetached(
fields.Get<IDX_UseErrorPages>() = true;
@@ -139,7 +139,7 @@ index ec540bce58080a4cb9526d16bdbdce8f92137def..05bc53ad2252abdc796328317a73bfb6
fields.Get<IDX_AllowJavascript>() =
inherit ? inherit->GetAllowJavascript() : true;
-@@ -3562,6 +3569,15 @@ void BrowsingContext::DidSet(FieldIndex<IDX_LanguageOverride>,
+@@ -3605,6 +3612,15 @@ void BrowsingContext::DidSet(FieldIndex<IDX_LanguageOverride>,
});
}
@@ -155,7 +155,7 @@ index ec540bce58080a4cb9526d16bdbdce8f92137def..05bc53ad2252abdc796328317a73bfb6
void BrowsingContext::DidSet(FieldIndex<IDX_MediumOverride>,
nsString&& aOldValue) {
MOZ_ASSERT(IsTop());
-@@ -3843,7 +3859,7 @@ void BrowsingContext::SetGeolocationServiceOverride(
+@@ -3886,7 +3902,7 @@ void BrowsingContext::SetGeolocationServiceOverride(
if (aGeolocationOverride.WasPassed()) {
if (!mGeolocationServiceOverride) {
mGeolocationServiceOverride = MakeRefPtr<GeolocationService>();
@@ -165,10 +165,10 @@ index ec540bce58080a4cb9526d16bdbdce8f92137def..05bc53ad2252abdc796328317a73bfb6
mGeolocationServiceOverride->Update(aGeolocationOverride.Value());
} else if (RefPtr<GeolocationService> serviceOverride =
diff --git a/docshell/base/BrowsingContext.h b/docshell/base/BrowsingContext.h
-index c1100f15036ab55b40d3d1e856556709e9c052a7..ab3f514b7e2106a2333b38c93ac5c40613131006 100644
+index e910da61612ded9b45d85baa00dfe34e4fec9332..f83d5ab4f9778914760ca4a608ca41ecd2a2e53f 100644
--- a/docshell/base/BrowsingContext.h
+++ b/docshell/base/BrowsingContext.h
-@@ -211,11 +211,11 @@ struct EmbedderColorSchemes {
+@@ -206,11 +206,11 @@ struct EmbedderColorSchemes {
FIELD(HasScreenAreaOverride, bool) \
/* ScreenOrientation-related APIs */ \
FIELD(CurrentOrientationAngle, float) \
@@ -182,16 +182,16 @@ index c1100f15036ab55b40d3d1e856556709e9c052a7..ab3f514b7e2106a2333b38c93ac5c406
FIELD(EmbedderElementType, Maybe<nsString>) \
FIELD(MessageManagerGroup, nsString) \
FIELD(MaxTouchPointsOverride, uint8_t) \
-@@ -261,6 +261,8 @@ struct EmbedderColorSchemes {
- * <browser> embedder element. */ \
- FIELD(EmbedderColorSchemes, EmbedderColorSchemes) \
+@@ -260,6 +260,8 @@ struct EmbedderColorSchemes {
+ * scrollbars clear the rounded content-area corners. */ \
+ FIELD(EmbedderScrollbarInset, LayoutDeviceIntMargin) \
FIELD(DisplayMode, dom::DisplayMode) \
+ /* playwright addition */ \
+ FIELD(PrefersContrastOverride, dom::PrefersContrastOverride) \
/* The number of entries added to the session history because of this \
* browsing context. */ \
FIELD(HistoryEntryCount, uint32_t) \
-@@ -1123,6 +1125,10 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
+@@ -1122,6 +1124,10 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
return Top()->GetAnimationsPlayBackRateMultiplier();
}
@@ -202,7 +202,7 @@ index c1100f15036ab55b40d3d1e856556709e9c052a7..ab3f514b7e2106a2333b38c93ac5c406
bool IsInBFCache() const;
bool IsEnteringBFCache() const { return mIsEnteringBFCache; }
void DeactivateDocuments();
-@@ -1343,6 +1349,11 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
+@@ -1347,6 +1353,11 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
return IsTop();
}
@@ -214,7 +214,7 @@ index c1100f15036ab55b40d3d1e856556709e9c052a7..ab3f514b7e2106a2333b38c93ac5c406
bool CanSet(FieldIndex<IDX_ForcedColorsOverride>, dom::ForcedColorsOverride,
ContentParent*) {
return IsTop();
-@@ -1383,6 +1394,9 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
+@@ -1390,6 +1401,9 @@ class BrowsingContext : public nsILoadContext, public nsWrapperCache {
void DidSet(FieldIndex<IDX_AnimationsPlayBackRateMultiplier>,
double aOldValue);
@@ -225,7 +225,7 @@ index c1100f15036ab55b40d3d1e856556709e9c052a7..ab3f514b7e2106a2333b38c93ac5c406
void WalkPresContexts(Callback&&);
void PresContextAffectingFieldChanged();
diff --git a/docshell/base/CanonicalBrowsingContext.cpp b/docshell/base/CanonicalBrowsingContext.cpp
-index 1fa976de8af749b5dd8838f298aa1a51ab24bb3d..1d9aa0854dcaf116a91f3e0bd2c1ccce8ab8a5b6 100644
+index 7d9ac5fbccfd345498c5878019d4702bb27532bd..731929432af47d79dc8ad31a0658922ca9f0bb48 100644
--- a/docshell/base/CanonicalBrowsingContext.cpp
+++ b/docshell/base/CanonicalBrowsingContext.cpp
@@ -316,6 +316,11 @@ void CanonicalBrowsingContext::ReplacedBy(
@@ -254,7 +254,7 @@ index 1fa976de8af749b5dd8838f298aa1a51ab24bb3d..1d9aa0854dcaf116a91f3e0bd2c1ccce
}
diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp
-index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef9320ef79410 100644
+index 48be2ce822c12f18f0b54daaef7009e549beb280..971150001a433081a49dc0575fd0769126f5799c 100644
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -16,6 +16,12 @@
@@ -325,7 +325,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
mAllowAuth(mItemType == typeContent),
mAllowKeywordFixup(false),
mDisableMetaRefreshWhenInactive(false),
-@@ -2978,6 +2997,174 @@ nsDocShell::GetMessageManager(ContentFrameMessageManager** aMessageManager) {
+@@ -2981,6 +3000,174 @@ nsDocShell::GetMessageManager(ContentFrameMessageManager** aMessageManager) {
return NS_OK;
}
@@ -500,7 +500,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
NS_IMETHODIMP
nsDocShell::GetIsNavigating(bool* aOut) {
*aOut = mIsNavigating;
-@@ -4671,7 +4858,7 @@ nsDocShell::GetVisibility(bool* aVisibility) {
+@@ -4720,7 +4907,7 @@ nsDocShell::GetVisibility(bool* aVisibility) {
}
void nsDocShell::ActivenessMaybeChanged() {
@@ -509,7 +509,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
if (RefPtr<PresShell> presShell = GetPresShell()) {
presShell->ActivenessMaybeChanged();
}
-@@ -7688,6 +7875,12 @@ nsresult nsDocShell::PerformRetargeting(nsDocShellLoadState* aLoadState) {
+@@ -7737,6 +7924,12 @@ nsresult nsDocShell::PerformRetargeting(nsDocShellLoadState* aLoadState) {
true, // aForceNoOpener
getter_AddRefs(newBC));
MOZ_ASSERT(!newBC);
@@ -522,7 +522,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
return rv;
}
-@@ -8956,6 +9149,16 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState,
+@@ -9014,6 +9207,16 @@ nsresult nsDocShell::InternalLoad(nsDocShellLoadState* aLoadState,
attrs.SetFirstPartyDomain(isTopLevelDoc, aLoadState->URI());
nsCOMPtr<nsIRequest> req;
@@ -539,7 +539,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
rv = DoURILoad(aLoadState, aCacheKey, getter_AddRefs(req));
if (NS_SUCCEEDED(rv)) {
-@@ -12067,6 +12270,9 @@ class OnLinkClickEvent : public CancelableRunnable, public SupportsWeakPtr {
+@@ -12139,6 +12342,9 @@ class OnLinkClickEvent : public CancelableRunnable, public SupportsWeakPtr {
mHandler->OnLinkClickSync(mContent, mLoadState, mNoOpenerImplied,
mTriggeringPrincipal);
}
@@ -549,7 +549,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
return NS_OK;
}
-@@ -12138,6 +12344,11 @@ nsresult nsDocShell::OnFormSubmit(HTMLFormElement* aForm,
+@@ -12210,6 +12416,11 @@ nsresult nsDocShell::OnFormSubmit(HTMLFormElement* aForm,
return OnLinkClickSync(aForm, aLoadState, false, aForm->NodePrincipal());
}
@@ -561,7 +561,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
auto result = OnLinkClickWithLoadState(aForm, aLoadState, false,
aForm->NodePrincipal());
if (result.isErr()) {
-@@ -12276,6 +12487,8 @@ nsresult nsDocShell::OnLinkClick(
+@@ -12348,6 +12559,8 @@ nsresult nsDocShell::OnLinkClick(
ownerDoc->GetScriptTrackingFlags());
loadState->SetHistoryBehavior(NavigationHistoryBehavior::Auto);
@@ -571,7 +571,7 @@ index 6fe906d34382c51d6078f84f0733841841ed3ecb..ac83df4b907caa29f40833f6c0bef932
aTriggeringPrincipal);
return result.isErr() ? result.unwrapErr() : NS_OK;
diff --git a/docshell/base/nsDocShell.h b/docshell/base/nsDocShell.h
-index c3fcd2985a2e3d3f4906dcbfc985b389be6da31a..9b4cc0bdadf182c45790c84e9a5b3d7a74d9cb6d 100644
+index 0568cbf7f78bc3711275773037fd5ba254f083e7..2a89a16b07c2391a65987de6df529c2907d73249 100644
--- a/docshell/base/nsDocShell.h
+++ b/docshell/base/nsDocShell.h
@@ -16,6 +16,7 @@
@@ -615,7 +615,7 @@ index c3fcd2985a2e3d3f4906dcbfc985b389be6da31a..9b4cc0bdadf182c45790c84e9a5b3d7a
// Handles retrieval of subframe session history for nsDocShell::LoadURI. If a
// load is requested in a subframe of the current DocShell, the subframe
// loadType may need to reflect the loadType of the parent document, or in
-@@ -1323,6 +1336,16 @@ class nsDocShell final : public nsDocLoader,
+@@ -1332,6 +1345,16 @@ class nsDocShell final : public nsDocLoader,
bool mAllowDNSPrefetch : 1;
bool mAllowWindowControl : 1;
bool mCSSErrorReportingEnabled : 1;
@@ -633,7 +633,7 @@ index c3fcd2985a2e3d3f4906dcbfc985b389be6da31a..9b4cc0bdadf182c45790c84e9a5b3d7a
bool mAllowKeywordFixup : 1;
bool mDisableMetaRefreshWhenInactive : 1;
diff --git a/docshell/base/nsIDocShell.idl b/docshell/base/nsIDocShell.idl
-index db0721841de3732d297b1ca31ae009e9e6a5356b..2c95a3ebbc437d31d393b5243b923f4f6a1f3483 100644
+index 7cbed1af77c94e97f9f5bda8f6c63c54517300bc..ddc131ca38e8c575b3cd67362104d8824f0eea54 100644
--- a/docshell/base/nsIDocShell.idl
+++ b/docshell/base/nsIDocShell.idl
@@ -43,6 +43,7 @@ interface nsIURI;
@@ -644,7 +644,7 @@ index db0721841de3732d297b1ca31ae009e9e6a5356b..2c95a3ebbc437d31d393b5243b923f4f
interface nsIEditor;
interface nsIEditingSession;
interface nsIInputStream;
-@@ -692,6 +693,41 @@ interface nsIDocShell : nsIDocShellTreeItem
+@@ -684,6 +685,41 @@ interface nsIDocShell : nsIDocShellTreeItem
*/
void synchronizeLayoutHistoryState();
@@ -687,10 +687,10 @@ index db0721841de3732d297b1ca31ae009e9e6a5356b..2c95a3ebbc437d31d393b5243b923f4f
* This attempts to save any applicable layout history state (like
* scroll position) in the nsISHEntry. This is normally done
diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp
-index 3fa58ad22661760494830d2df7b690ba4e4ed253..6d8038a8f45fa3f21e381433b7d3601ababb11f8 100644
+index 5e997a5de5592ab164f61d6ebeb37febd29bbff2..94912990696b922cbc12b56f61b905cb572044cb 100644
--- a/dom/base/Document.cpp
+++ b/dom/base/Document.cpp
-@@ -3850,6 +3850,9 @@ void Document::SendToConsole(nsCOMArray<nsISecurityConsoleMessage>& aMessages) {
+@@ -3851,6 +3851,9 @@ void Document::SendToConsole(nsCOMArray<nsISecurityConsoleMessage>& aMessages) {
}
void Document::ApplySettingsFromCSP(bool aSpeculative) {
@@ -700,7 +700,7 @@ index 3fa58ad22661760494830d2df7b690ba4e4ed253..6d8038a8f45fa3f21e381433b7d3601a
nsresult rv = NS_OK;
if (!aSpeculative) {
nsIContentSecurityPolicy* csp = PolicyContainer::GetCSP(mPolicyContainer);
-@@ -3947,6 +3950,11 @@ nsresult Document::InitCSP(nsIChannel* aChannel) {
+@@ -3948,6 +3951,11 @@ nsresult Document::InitCSP(nsIChannel* aChannel) {
MOZ_ASSERT(mPolicyContainer,
"Policy container must be initialized before CSP!");
@@ -712,7 +712,7 @@ index 3fa58ad22661760494830d2df7b690ba4e4ed253..6d8038a8f45fa3f21e381433b7d3601a
// If this is a data document - no need to set CSP.
if (mLoadedAsData) {
return NS_OK;
-@@ -4928,6 +4936,14 @@ bool Document::HasFocus(ErrorResult& rv) const {
+@@ -4930,6 +4938,14 @@ bool Document::HasFocus(ErrorResult& rv) const {
return false;
}
@@ -728,10 +728,10 @@ index 3fa58ad22661760494830d2df7b690ba4e4ed253..6d8038a8f45fa3f21e381433b7d3601a
return false;
}
diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp
-index 818005d2cf111f84d891d7f4f925fbaa193ad873..ccf2153d03a77e322d9d771cbce2ec4758718ac4 100644
+index 498f48138ceeeaa9a286475e2c21b98ba681d608..ea91e4fe5a88a8ac9860e4892d50fb655aed6a62 100644
--- a/dom/base/Navigator.cpp
+++ b/dom/base/Navigator.cpp
-@@ -2371,7 +2371,8 @@ bool Navigator::Webdriver() {
+@@ -2370,7 +2370,8 @@ bool Navigator::Webdriver() {
}
#endif
@@ -742,10 +742,10 @@ index 818005d2cf111f84d891d7f4f925fbaa193ad873..ccf2153d03a77e322d9d771cbce2ec47
AutoplayPolicy Navigator::GetAutoplayPolicy(AutoplayPolicyMediaType aType) {
diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp
-index ea54b38955411e63260303072a0c1ebb337bcaf6..187dc38bcf336f2fffd2a87e08aa4101eee115fc 100644
+index 95d9e4fa4f057480d5757c28739b6881127cff1c..14d330896302290e595bda2f1f114a3c32f4aea6 100644
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
-@@ -10414,6 +10414,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
+@@ -10430,6 +10430,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
EventMessage msg;
Maybe<WidgetMouseEvent::ExitFrom> exitFrom;
bool contextMenuKey = false;
@@ -753,7 +753,7 @@ index ea54b38955411e63260303072a0c1ebb337bcaf6..187dc38bcf336f2fffd2a87e08aa4101
if (aType.EqualsLiteral("mousedown")) {
msg = eMouseDown;
} else if (aType.EqualsLiteral("mouseup")) {
-@@ -10440,13 +10441,26 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
+@@ -10456,13 +10457,26 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
msg = eMouseHitTest;
} else if (aType.EqualsLiteral("MozMouseExploreByTouch")) {
msg = eMouseExploreByTouch;
@@ -781,7 +781,7 @@ index ea54b38955411e63260303072a0c1ebb337bcaf6..187dc38bcf336f2fffd2a87e08aa4101
if (MOZ_UNLIKELY(aOptions.mIsWidgetEventSynthesized)) {
MOZ_ASSERT_UNREACHABLE(
"The event shouldn't be dispatched as a synthesized event");
-@@ -10474,6 +10488,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
+@@ -10490,6 +10504,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
mozilla::widget::AutoSynthesizedEventCallbackNotifier notifier(callback);
WidgetMouseEvent& mouseOrPointerEvent =
@@ -789,7 +789,7 @@ index ea54b38955411e63260303072a0c1ebb337bcaf6..187dc38bcf336f2fffd2a87e08aa4101
pointerEvent.isSome() ? pointerEvent.ref() : mouseEvent.ref();
mouseOrPointerEvent.pointerId = aMouseEventData.mIdentifier;
mouseOrPointerEvent.mModifiers =
-@@ -10499,6 +10514,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
+@@ -10515,6 +10530,7 @@ Result<bool, nsresult> nsContentUtils::SynthesizeMouseEvent(
aOptions.mIsDOMEventSynthesized;
mouseOrPointerEvent.mExitFrom = std::move(exitFrom);
mouseOrPointerEvent.mCallbackId = notifier.SaveCallback();
@@ -798,7 +798,7 @@ index ea54b38955411e63260303072a0c1ebb337bcaf6..187dc38bcf336f2fffd2a87e08aa4101
nsPresContext* presContext = aPresShell->GetPresContext();
if (!presContext) {
diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp
-index e3d3f4060dc476cb825995f18d771f601e8b12f9..42f5a628ed633b34620aa8637a486a8d9620c6fa 100644
+index 6e736f9f7267846a44ecc92222888a4d9443790e..313d34c5f208a7942fd01d5d76c6ccd0560de8af 100644
--- a/dom/base/nsFocusManager.cpp
+++ b/dom/base/nsFocusManager.cpp
@@ -1885,6 +1885,10 @@ Maybe<uint64_t> nsFocusManager::SetFocusInner(Element* aNewContent,
@@ -844,7 +844,7 @@ index e3d3f4060dc476cb825995f18d771f601e8b12f9..42f5a628ed633b34620aa8637a486a8d
// care of lowering the present active window. This happens in
// a separate runnable to avoid touching multiple windows in
diff --git a/dom/base/nsGlobalWindowOuter.cpp b/dom/base/nsGlobalWindowOuter.cpp
-index 5a764db307231773f501329cea32b4dd0080f896..78aee847176794966a2d4a145b5cae21611cb67b 100644
+index 98d6cf28fe13595ce9904b6a2887a57d9f86296f..de7c5c9496446b06fd14f4cbbb41f48bb342a5fe 100644
--- a/dom/base/nsGlobalWindowOuter.cpp
+++ b/dom/base/nsGlobalWindowOuter.cpp
@@ -2548,10 +2548,16 @@ nsresult nsGlobalWindowOuter::SetNewDocument(Document* aDocument,
@@ -901,7 +901,7 @@ index 6958d974b4416151d1327f98d162c32f84e65e8e..42a5a1d32bde15acc707b2cad06bbb13
// Outer windows only.
virtual void EnsureSizeAndPositionUpToDate() override;
diff --git a/dom/base/nsINode.cpp b/dom/base/nsINode.cpp
-index cee17c4e328a67453faa974ad2862de14708f8f7..e887857a6f3e2dc650a22b9a53dfe1e78b8a5651 100644
+index 5c684f392c8c717be78ea168d2224800d2453e9e..86594f1aae3cacc9e61208a897365082cbaf3f53 100644
--- a/dom/base/nsINode.cpp
+++ b/dom/base/nsINode.cpp
@@ -1980,6 +1980,61 @@ void nsINode::GetBoxQuadsFromWindowOrigin(const BoxQuadOptions& aOptions,
@@ -1014,10 +1014,10 @@ index 7b3dca8a55d75a51bc1bf5c2d4d82e226a863236..51fbda3076e1220542c7d71f9119a62b
* A unique identifier for the browser element that is hosting this
* BrowsingContext tree. Every BrowsingContext in the element's tree will
diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp
-index 881b2b41408deea06dfb4e52d795a1c39a8586bb..a1fa71befbee227afb142672283c52512c3f303e 100644
+index 185901651805f626c553470ef22ee4dfebf5e8bb..701ddf0afb00ff53b3d9697ac1cb06e8a94ee9a6 100644
--- a/dom/events/EventStateManager.cpp
+++ b/dom/events/EventStateManager.cpp
-@@ -2110,6 +2110,25 @@ static BrowserParent* GetBrowserParentAncestor(BrowserParent* aBrowserParent) {
+@@ -2112,6 +2112,25 @@ static BrowserParent* GetBrowserParentAncestor(BrowserParent* aBrowserParent) {
return bbp->Manager();
}
@@ -1043,7 +1043,7 @@ index 881b2b41408deea06dfb4e52d795a1c39a8586bb..a1fa71befbee227afb142672283c5251
static void DispatchCrossProcessMouseExitEvents(WidgetMouseEvent* aMouseEvent,
BrowserParent* aRemoteTarget,
BrowserParent* aStopAncestor,
-@@ -2233,7 +2252,7 @@ void EventStateManager::DispatchCrossProcessEvent(WidgetEvent* aEvent,
+@@ -2235,7 +2254,7 @@ void EventStateManager::DispatchCrossProcessEvent(WidgetEvent* aEvent,
if (mouseEvent->mReason == WidgetMouseEvent::eReal &&
remote != oldRemote) {
MOZ_ASSERT(mouseEvent->mMessage != eMouseExitFromWidget);
@@ -1112,10 +1112,10 @@ index 51efcf97c062e106575b88232a14f1702470fddf..1c68b997e4efd8896ec182e962c9e085
CachedPositionAndAccuracy lastPosition = gs->GetCachedPosition();
if (lastPosition.position) {
diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp
-index c7f99855d5978277f300e59a9ebca5b15e424f3c..efa3124562c0bff47210889656aea1595e4614d3 100644
+index a516105b516c34eef58a6152c5303548fc64e5ce..5f7b15626a4e2d93a34507fe50f50785aa2c02a7 100644
--- a/dom/html/HTMLInputElement.cpp
+++ b/dom/html/HTMLInputElement.cpp
-@@ -60,6 +60,7 @@
+@@ -61,6 +61,7 @@
#include "nsBaseCommandController.h"
#include "nsCRTGlue.h"
#include "nsColorControlFrame.h"
@@ -1123,7 +1123,7 @@ index c7f99855d5978277f300e59a9ebca5b15e424f3c..efa3124562c0bff47210889656aea159
#include "nsError.h"
#include "nsFileControlFrame.h"
#include "nsFocusManager.h"
-@@ -924,6 +925,13 @@ nsresult HTMLInputElement::InitFilePicker(FilePickerType aType) {
+@@ -925,6 +926,13 @@ nsresult HTMLInputElement::InitFilePicker(FilePickerType aType) {
return NS_ERROR_FAILURE;
}
@@ -1569,10 +1569,10 @@ index eaaf69687f669a4859a37f3f97b99e6ca519c420..6f965a110db3a1c86466d72f09ead23b
// No boxes to return
return;
diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp
-index 8b1f69b52380f0606a180c8cfd34cfb24580ccbe..38eb79887df6bb946922fedec1786f20acb6fae5 100644
+index 431379c241b6cfd4d971dc6e0b7b54dfe8d574ae..7fad6714752ad9f435127ad2c1720246529c48ee 100644
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
-@@ -11981,7 +11981,9 @@ bool PresShell::ComputeActiveness() const {
+@@ -11994,7 +11994,9 @@ bool PresShell::ComputeActiveness() const {
if (!browserChild->IsVisible()) {
MOZ_LOG(gLog, LogLevel::Debug,
(" > BrowserChild %p is not visible", browserChild));
@@ -1584,7 +1584,7 @@ index 8b1f69b52380f0606a180c8cfd34cfb24580ccbe..38eb79887df6bb946922fedec1786f20
// If the browser is visible but just due to be preserving layers
diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp
-index 0ef8c469da85cfb99821ad8d079ac5fb33563a22..5922d78d255d202d9a95c5f0a906a53d917f55e2 100644
+index 4f8d895b37612679b9255ac52a6037400fdc9d19..e20b5249f144264f261af079ad3fafb981872bc3 100644
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -701,6 +701,7 @@ bool nsLayoutUtils::AllowZoomingForDocument(const Document* aDocument) {
@@ -1596,10 +1596,10 @@ index 0ef8c469da85cfb99821ad8d079ac5fb33563a22..5922d78d255d202d9a95c5f0a906a53d
// in RDM.
BrowsingContext* bc = aDocument->GetBrowsingContext();
diff --git a/layout/style/GeckoBindings.h b/layout/style/GeckoBindings.h
-index 574c2683cadf77b468ca9a4250bc7bc1fbb5c8f3..30c7a89a6ed08f526089a8ab40124a980fac3089 100644
+index 28659f9e79bf9c39ed7e715c2beea1005c83cb25..f0e03a1d2ae70779045a5d15fe3be47c861cbd24 100644
--- a/layout/style/GeckoBindings.h
+++ b/layout/style/GeckoBindings.h
-@@ -607,6 +607,7 @@ bool Gecko_MediaFeatures_PrefersReducedMotion(const mozilla::dom::Document*);
+@@ -604,6 +604,7 @@ bool Gecko_MediaFeatures_PrefersReducedMotion(const mozilla::dom::Document*);
bool Gecko_MediaFeatures_PrefersReducedTransparency(
const mozilla::dom::Document*);
bool Gecko_MediaFeatures_MacRTL(const mozilla::dom::Document*);
@@ -1633,10 +1633,10 @@ index 1f9613b8cd936fa9d884be010a8dd6167251faa6..0346bccc1c469446376c5bee3250e3dc
return StylePrefersContrast::NoPreference;
}
diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
-index 72a14fae87a715f5d21f848fd79a08c183da9cfb..fa75776299201221e0ba156a8e5b19fe5ef702af 100644
+index b4ea2261c2c9d13f21bbbc0b229acda433321ec2..c6812779e3e8360c2c9996643fb711d171132053 100644
--- a/modules/libpref/init/StaticPrefList.yaml
+++ b/modules/libpref/init/StaticPrefList.yaml
-@@ -13529,18 +13529,20 @@
+@@ -13608,18 +13608,20 @@
# Use the libwebrtc ScreenCaptureKit desktop capture backend on Mac by default.
# When disabled, or on a host where not supported (< macOS 14), the older
# CoreGraphics backend is used instead.
@@ -1660,7 +1660,7 @@ index 72a14fae87a715f5d21f848fd79a08c183da9cfb..fa75776299201221e0ba156a8e5b19fe
# Use the libwebrtc ScreenCaptureKit desktop capture backend on Mac for screen
diff --git a/netwerk/base/LoadInfo.cpp b/netwerk/base/LoadInfo.cpp
-index 18d89d2e1dc35025dd4a81b36a9dc8670edc04d8..957fec909c70f355ab341e730e62b173111ac7a3 100644
+index 8296f069eac2665b29aab2bea81c271431df1bcb..de5d497dc9180a32c7208effbf6a12ec67e07ca8 100644
--- a/netwerk/base/LoadInfo.cpp
+++ b/netwerk/base/LoadInfo.cpp
@@ -754,7 +754,8 @@ LoadInfo::LoadInfo(const LoadInfo& rhs)
@@ -1673,7 +1673,7 @@ index 18d89d2e1dc35025dd4a81b36a9dc8670edc04d8..957fec909c70f355ab341e730e62b173
}
LoadInfo::LoadInfo(
-@@ -2118,4 +2119,16 @@ void LoadInfo::UpdateParentAddressSpaceInfo() {
+@@ -2124,4 +2125,16 @@ void LoadInfo::UpdateParentAddressSpaceInfo() {
}
}
@@ -1691,10 +1691,10 @@ index 18d89d2e1dc35025dd4a81b36a9dc8670edc04d8..957fec909c70f355ab341e730e62b173
+
} // namespace mozilla::net
diff --git a/netwerk/base/LoadInfo.h b/netwerk/base/LoadInfo.h
-index 9e48f631d80ce69318965b35264789d4f4322e75..71cb6d4cacccbd7d1dbeb5866392026f888b0c33 100644
+index 64b79c03e4eb548d53cbc39678db0d6feda7c4c2..c445c186ebe08ba908d80e183672b2b9a1c28a3f 100644
--- a/netwerk/base/LoadInfo.h
+++ b/netwerk/base/LoadInfo.h
-@@ -546,6 +546,8 @@ class LoadInfo final : public nsILoadInfo {
+@@ -543,6 +543,8 @@ class LoadInfo final : public nsILoadInfo {
dom::UserNavigationInvolvement::None;
bool mSkipHTTPSUpgrade = false;
@@ -1704,10 +1704,10 @@ index 9e48f631d80ce69318965b35264789d4f4322e75..71cb6d4cacccbd7d1dbeb5866392026f
// This is exposed solely for testing purposes and should not be used outside of
// LoadInfo
diff --git a/netwerk/base/TRRLoadInfo.cpp b/netwerk/base/TRRLoadInfo.cpp
-index 9a4cf0648708633b6b826312b262df9d3b6c163f..574aceb5700b47325ef9ceafeab647b2d166a609 100644
+index 312dc82bc38599bab6d789307cc057b5cbb69161..bd5f7f37d5b59a0078d68094e770f829c34e6c8b 100644
--- a/netwerk/base/TRRLoadInfo.cpp
+++ b/netwerk/base/TRRLoadInfo.cpp
-@@ -556,5 +556,15 @@ TRRLoadInfo::GetFetchDestination(nsACString& aDestination) {
+@@ -561,5 +561,15 @@ TRRLoadInfo::GetFetchDestination(nsACString& aDestination) {
return NS_ERROR_NOT_IMPLEMENTED;
}
@@ -1724,10 +1724,10 @@ index 9a4cf0648708633b6b826312b262df9d3b6c163f..574aceb5700b47325ef9ceafeab647b2
} // namespace net
} // namespace mozilla
diff --git a/netwerk/base/nsILoadInfo.idl b/netwerk/base/nsILoadInfo.idl
-index 5529ed0ea4c29868fdcfde94b7a98519e84cea96..89601e30154b79f00507027883e398d6053a50ad 100644
+index 1830c86aead68d62fc6294fdee3c148f1fbad415..fcb6ce1e05c8a9ba63ae9cff36c5a4a814955884 100644
--- a/netwerk/base/nsILoadInfo.idl
+++ b/netwerk/base/nsILoadInfo.idl
-@@ -1711,4 +1711,6 @@ interface nsILoadInfo : nsISupports
+@@ -1712,4 +1712,6 @@ interface nsILoadInfo : nsISupports
return static_cast<mozilla::dom::UserNavigationInvolvement>(userNavigationInvolvement);
}
%}
@@ -1756,7 +1756,7 @@ index 3654f3ed20f6b22d36c4238be40417e77e8f6867..f685e7668ad3310cac8bc8425124a6fe
* Set the status and reason for the forthcoming synthesized response.
* Multiple calls overwrite existing values.
diff --git a/netwerk/ipc/DocumentLoadListener.cpp b/netwerk/ipc/DocumentLoadListener.cpp
-index d9783f7852a3d2bcf83bf5c5d1600209e5c657bd..c99d1bb54c3d81e195401f635eeb6b9c5918fb26 100644
+index 6d94893fb0206f62fe8c07eeda0a7623d56fd7e4..1d09ad75209256fb11e3ba71744dcab834bef82f 100644
--- a/netwerk/ipc/DocumentLoadListener.cpp
+++ b/netwerk/ipc/DocumentLoadListener.cpp
@@ -206,6 +206,7 @@ static auto CreateDocumentLoadInfo(CanonicalBrowsingContext* aBrowsingContext,
@@ -1841,7 +1841,7 @@ index ab440756a6745ce3c4785f211db32173c6bd27c5..2ba8db70059b5143e72063ffb588c55d
* InterceptionTimeStamps is used to record the time stamps of the
* interception.
diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp
-index bbbfbd55f10177dfbbc7333eebe0a1354311236a..bb315a47273466538c91ede2cf1220fce742c4a2 100644
+index 0dc74fdcc6428892f21656f82a52897e67c4ea99..0536fe432eede1faa7122077d553beb50c9ff74e 100644
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -942,11 +942,9 @@ nsresult nsHttpChannel::OnBeforeConnect() {
@@ -1868,7 +1868,7 @@ index bbbfbd55f10177dfbbc7333eebe0a1354311236a..bb315a47273466538c91ede2cf1220fc
if (mURI->SchemeIs("https") || aShouldUpgrade || !LoadUseHTTPSSVC() ||
forceOffline) {
-@@ -1541,15 +1537,14 @@ nsresult nsHttpChannel::ContinueConnect() {
+@@ -1543,15 +1539,14 @@ nsresult nsHttpChannel::ContinueConnect() {
"CORS preflight must have been finished by the time we "
"do the rest of ContinueConnect");
@@ -1886,7 +1886,7 @@ index bbbfbd55f10177dfbbc7333eebe0a1354311236a..bb315a47273466538c91ede2cf1220fc
BYPASS_LOCAL_CACHE(mLoadFlags, LoadPreferCacheLoadOverBypass())) {
return NS_ERROR_OFFLINE;
}
-@@ -1591,7 +1586,7 @@ nsresult nsHttpChannel::ContinueConnect() {
+@@ -1593,7 +1588,7 @@ nsresult nsHttpChannel::ContinueConnect() {
}
// We're about to hit the network. Don't if we're forced offline.
@@ -1895,7 +1895,7 @@ index bbbfbd55f10177dfbbc7333eebe0a1354311236a..bb315a47273466538c91ede2cf1220fc
return NS_ERROR_OFFLINE;
}
-@@ -1699,12 +1694,9 @@ void nsHttpChannel::SpeculativeConnect() {
+@@ -1701,12 +1696,9 @@ void nsHttpChannel::SpeculativeConnect() {
// don't speculate if we are offline, when doing http upgrade (i.e.
// websockets bootstrap), or if we can't do keep-alive (because then we
// couldn't reuse the speculative connection anyhow).
@@ -1909,7 +1909,7 @@ index bbbfbd55f10177dfbbc7333eebe0a1354311236a..bb315a47273466538c91ede2cf1220fc
return;
}
-@@ -5045,7 +5037,7 @@ nsresult nsHttpChannel::OpenCacheEntryInternal(bool isHttps) {
+@@ -5047,7 +5039,7 @@ nsresult nsHttpChannel::OpenCacheEntryInternal(bool isHttps) {
return NS_OK;
}
@@ -1918,7 +1918,7 @@ index bbbfbd55f10177dfbbc7333eebe0a1354311236a..bb315a47273466538c91ede2cf1220fc
if (offline || (mLoadFlags & INHIBIT_CACHING) || forceOffline) {
if (BYPASS_LOCAL_CACHE(mLoadFlags, LoadPreferCacheLoadOverBypass()) &&
!offline && !forceOffline) {
-@@ -8524,6 +8516,20 @@ void nsHttpChannel::MaybeStartDNSPrefetch() {
+@@ -8528,6 +8520,20 @@ void nsHttpChannel::MaybeStartDNSPrefetch() {
}
}
@@ -2022,10 +2022,10 @@ index c5c10b0e20fac2c7771a571ecc6dc092d5d77d8f..9f36ca5334fada72ffa2b41ecae3cc1a
const unsigned long CHROME_CENTER_SCREEN = 1 << 27;
diff --git a/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs b/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs
-index 7c5bde49c469a6645e4694bc523dab24302694ba..812311051343beb44883e48d8670545c5beb8d71 100644
+index ac901586b2dcb9279d839cecb62d8e3225a58625..17b44b54510cf3bd151f087e9ac2c1e8d50df353 100644
--- a/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs
+++ b/toolkit/components/enterprisepolicies/EnterprisePoliciesParent.sys.mjs
-@@ -113,7 +113,9 @@ EnterprisePoliciesManager.prototype = {
+@@ -115,7 +115,9 @@ EnterprisePoliciesManager.prototype = {
Services.prefs.clearUserPref(PREF_POLICIES_APPLIED);
}
@@ -2036,7 +2036,7 @@ index 7c5bde49c469a6645e4694bc523dab24302694ba..812311051343beb44883e48d8670545c
if (provider.failed) {
this.status = Ci.nsIEnterprisePolicies.FAILED;
-@@ -760,6 +762,19 @@ class JSONPoliciesProvider extends PoliciesProvider {
+@@ -795,6 +797,19 @@ class JSONPoliciesProvider extends PoliciesProvider {
}
}
@@ -2148,10 +2148,10 @@ index efe8ff5541915c0fc632e75572d1e3968c60139d..e0157515ded811e47d21705f13f475d6
int32_t aMaxSelfProgress,
int32_t aCurTotalProgress,
diff --git a/toolkit/components/windowwatcher/nsWindowWatcher.cpp b/toolkit/components/windowwatcher/nsWindowWatcher.cpp
-index 15e5f4982ddffefbc74910bcd795a1d4c3841a04..01c180961101e02be7b9613422b110483002d49c 100644
+index 1a7068e4d6e9d8731be559b05955898f426d76b5..44829621218ba837040f06f369df601a2cf51a00 100644
--- a/toolkit/components/windowwatcher/nsWindowWatcher.cpp
+++ b/toolkit/components/windowwatcher/nsWindowWatcher.cpp
-@@ -1902,8 +1902,14 @@ uint32_t nsWindowWatcher::CalculateChromeFlagsForContent(
+@@ -1901,8 +1901,14 @@ uint32_t nsWindowWatcher::CalculateChromeFlagsForContent(
return nsIWebBrowserChrome::CHROME_DOCUMENT_PICTURE_IN_PICTURE_FLAGS;
}
*aIsPopupRequested = ShouldOpenPopup(aFeatures);
@@ -2169,10 +2169,10 @@ index 15e5f4982ddffefbc74910bcd795a1d4c3841a04..01c180961101e02be7b9613422b11048
/**
diff --git a/toolkit/mozapps/update/UpdateService.sys.mjs b/toolkit/mozapps/update/UpdateService.sys.mjs
-index 755d82f4831057261af30ccc8240d51e7520e509..b5d98b5d41f2987e3717725ea401326c0a08854f 100644
+index 1166c7b232e502cd2c5bf713c122962c2242216b..c8768ba831dc91f3a3ec5ed2e05b7793c0d4d191 100644
--- a/toolkit/mozapps/update/UpdateService.sys.mjs
+++ b/toolkit/mozapps/update/UpdateService.sys.mjs
-@@ -4038,6 +4038,8 @@ export class UpdateService {
+@@ -4061,6 +4061,8 @@ export class UpdateService {
}
get disabledForTesting() {
@@ -2246,7 +2246,7 @@ index 524451a83e03f8a9a83103b1f3d87850ad411515..a44b3c5da20f6a0bf9c892d4289a07ac
// nsDocumentViewer::LoadComplete that doesn't do various things
// that are not relevant here because this wasn't an actual
diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp
-index 601070dcca72f4cd03ef7bd8595bad5f7d2c8dec..42229d298426e68d1904278b99f5505bcf2446ce 100644
+index ccebdcc8fee746d1c869f0de5308bf830fba1a04..0070c855b5ec10bd71de6e6dc0da26e31ef0357c 100644
--- a/uriloader/exthandler/nsExternalHelperAppService.cpp
+++ b/uriloader/exthandler/nsExternalHelperAppService.cpp
@@ -116,6 +116,7 @@
diff --git a/browser_patches/firefox/preferences/playwright.cfg b/browser_patches/firefox/preferences/playwright.cfg
index f635ae6c8f..d40afefed7 100644
--- a/browser_patches/firefox/preferences/playwright.cfg
+++ b/browser_patches/firefox/preferences/playwright.cfg
@@ -25,6 +25,11 @@ pref("termsofuse.bypassNotification", true);
// Do not show the pre-onboarding splash modal in the first window; it waits
// for Nimbus experiments to load and blocks all mouse input (Firefox 154+).
pref("browser.preonboarding.enabled", false);
+// Do not switch the browser chrome to compact density in small windows
+// (Nova redesign, on by default in Firefox 157+). The switch happens after
+// the window is resized to fit the viewport, changes the toolbar height and
+// shifts the page in the screencast.
+pref("browser.compactmode.auto.threshold", "0");
// Force pdfs into downloads.
pref("pdfjs.disabled", true);
diff --git a/packages/isomorphic/deviceDescriptorsSource.json b/packages/isomorphic/deviceDescriptorsSource.json
index c362b4de56..d12f154fcf 100644
--- a/packages/isomorphic/deviceDescriptorsSource.json
+++ b/packages/isomorphic/deviceDescriptorsSource.json
@@ -2662,7 +2662,7 @@
"defaultBrowserType": "chromium"
},
"Desktop Firefox HiDPI": {
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Gecko/20100101 Firefox/156.0",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:157.0) Gecko/20100101 Firefox/157.0",
"screen": {
"width": 1792,
"height": 1120
@@ -2722,7 +2722,7 @@
"defaultBrowserType": "chromium"
},
"Desktop Firefox": {
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Gecko/20100101 Firefox/156.0",
+ "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:157.0) Gecko/20100101 Firefox/157.0",
"screen": {
"width": 1920,
"height": 1080
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json
index 124e622438..53356fd568 100644
--- a/packages/playwright-core/browsers.json
+++ b/packages/playwright-core/browsers.json
@@ -17,9 +17,9 @@
},
{
"name": "firefox",
- "revision": "1554",
+ "revision": "1555",
"installByDefault": true,
- "browserVersion": "156.0",
+ "browserVersion": "157.0",
"title": "Firefox"
},
{