Skip to content

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

browser(webkit): do not clear existing contexts from map when exiting (#3750)

Yury Semikhatsky6b085a349c5e
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER
index 4c57270ce8..fcb8a855b7 100644
--- a/browser_patches/webkit/BUILD_NUMBER
+++ b/browser_patches/webkit/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1337
-Changed: [email protected] Tue Sep 1 13:26:04 PDT 2020
+1338
+Changed: [email protected] Wed Sep 2 18:07:53 PDT 2020
diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff
index f8069f8ef4..d5733989ab 100644
--- a/browser_patches/webkit/patches/bootstrap.diff
+++ b/browser_patches/webkit/patches/bootstrap.diff
@@ -10010,10 +10010,10 @@ index 0000000000000000000000000000000000000000..f356c613945fd263889bc74166bef2b2
+} // namespace WebKit
diff --git a/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp
new file mode 100644
-index 0000000000000000000000000000000000000000..8e3989ef7f9947c685dcbe30d58561dab7f5ea5b
+index 0000000000000000000000000000000000000000..1af880600f7a0b4034ea88be0ace8b8408870970
--- /dev/null
+++ b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp
-@@ -0,0 +1,855 @@
+@@ -0,0 +1,854 @@
+/*
+ * Copyright (C) 2019 Microsoft Corporation.
+ *
@@ -10499,7 +10499,6 @@ index 0000000000000000000000000000000000000000..8e3989ef7f9947c685dcbe30d58561da
+ if (!callback->isActive())
+ return;
+
-+ m_browserContexts.clear();
+ if (m_client == nullptr) {
+ callback->sendFailure("no platform delegate to close browser");
+ } else {