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

This commit is contained in:
Yury Semikhatsky 2020-09-02 18:13:03 -07:00 committed by GitHub
parent 7671e8e8be
commit 6b085a349c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -1,2 +1,2 @@
1337 1338
Changed: pavel.feldman@gmail.com Tue Sep 1 13:26:04 PDT 2020 Changed: yurys@chromium.org Wed Sep 2 18:07:53 PDT 2020

View File

@ -10010,10 +10010,10 @@ index 0000000000000000000000000000000000000000..f356c613945fd263889bc74166bef2b2
+} // namespace WebKit +} // namespace WebKit
diff --git a/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp diff --git a/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp
new file mode 100644 new file mode 100644
index 0000000000000000000000000000000000000000..8e3989ef7f9947c685dcbe30d58561dab7f5ea5b index 0000000000000000000000000000000000000000..1af880600f7a0b4034ea88be0ace8b8408870970
--- /dev/null --- /dev/null
+++ b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp +++ b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp
@@ -0,0 +1,855 @@ @@ -0,0 +1,854 @@
+/* +/*
+ * Copyright (C) 2019 Microsoft Corporation. + * Copyright (C) 2019 Microsoft Corporation.
+ * + *
@ -10499,7 +10499,6 @@ index 0000000000000000000000000000000000000000..8e3989ef7f9947c685dcbe30d58561da
+ if (!callback->isActive()) + if (!callback->isActive())
+ return; + return;
+ +
+ m_browserContexts.clear();
+ if (m_client == nullptr) { + if (m_client == nullptr) {
+ callback->sendFailure("no platform delegate to close browser"); + callback->sendFailure("no platform delegate to close browser");
+ } else { + } else {