Skip to content

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

browser(firefox): fix build on Windows (#14500)

Andrey Lushnikovda55afa5847d
diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER
index 2289263c5d..406718af34 100644
--- a/browser_patches/firefox/BUILD_NUMBER
+++ b/browser_patches/firefox/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1324
-Changed: [email protected] Tue May 31 10:52:04 +03 2022
+1325
+Changed: [email protected] Tue May 31 12:42:47 +03 2022
diff --git a/browser_patches/firefox/patches/bootstrap.diff b/browser_patches/firefox/patches/bootstrap.diff
index 695f4fba6b..789a8a117a 100644
--- a/browser_patches/firefox/patches/bootstrap.diff
+++ b/browser_patches/firefox/patches/bootstrap.diff
@@ -2808,6 +2808,21 @@ index a9ba98c048b51eece158b9a04ff2770f4c7afa76..de8d25ffd94ff92dde3ece18e9b6d7df
private:
~HeadlessWidget();
bool mEnabled;
+diff --git a/widget/windows/nsAppShell.cpp b/widget/windows/nsAppShell.cpp
+index 9f87a4b8af0ef2cdd2eead57551dff7355e927aa..1f9b5d41a890ce0c12b43580c73eed7ea9022f1c 100644
+--- a/widget/windows/nsAppShell.cpp
++++ b/widget/windows/nsAppShell.cpp
+@@ -17,7 +17,9 @@
+ #include "WinIMEHandler.h"
+ #include "mozilla/widget/AudioSession.h"
+ #include "mozilla/BackgroundHangMonitor.h"
+-#include "mozilla/BackgroundTasks.h"
++#ifdef MOZ_BACKGROUNDTASKS
++# include "mozilla/BackgroundTasks.h"
++#endif
+ #include "mozilla/Hal.h"
+ #include "nsIDOMWakeLockListener.h"
+ #include "nsIPowerManagerService.h"
diff --git a/xpcom/reflect/xptinfo/xptinfo.h b/xpcom/reflect/xptinfo/xptinfo.h
index efee881c142175c29d15f7ceaaebf852f39e44cd..014bf4b39b99eaf2fba6fb08827e7d2f964bab33 100644
--- a/xpcom/reflect/xptinfo/xptinfo.h