Skip to content

Commit 1896e8e

Browse files
authored
browser(webkit): send Playwright.pageProxyDestroyed for crashed tabs when deleting context (#2986)
1 parent 89ccf99 commit 1896e8e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1307
2-
Changed: [email protected] Wed Jul 15 10:44:00 PDT 2020
1+
1308
2+
Changed: [email protected] Thu Jul 16 15:39:22 PDT 2020

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9803,10 +9803,10 @@ index 0000000000000000000000000000000000000000..f356c613945fd263889bc74166bef2b2
98039803
+} // namespace WebKit
98049804
diff --git a/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp
98059805
new file mode 100644
9806-
index 0000000000000000000000000000000000000000..012629e3d4e4b892a8c23c3984ab30409b9c2b1a
9806+
index 0000000000000000000000000000000000000000..d9218841c5ca436d291e5c0918906be084146cb8
98079807
--- /dev/null
98089808
+++ b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp
9809-
@@ -0,0 +1,821 @@
9809+
@@ -0,0 +1,823 @@
98109810
+/*
98119811
+ * Copyright (C) 2019 Microsoft Corporation.
98129812
+ *
@@ -10007,7 +10007,9 @@ index 0000000000000000000000000000000000000000..012629e3d4e4b892a8c23c3984ab3040
1000710007
+
1000810008
+Vector<WebPageProxy*> BrowserContext::pages() const {
1000910009
+ Vector<WebPageProxy*> pages;
10010-
+ for (auto& process : processPool->processes()) {
10010+
+ for (auto* process : WebProcessProxy::allProcessesForInspector()) {
10011+
+ if (process->processPoolIfExists() != processPool)
10012+
+ continue;
1001110013
+ for (auto* page : process->pages())
1001210014
+ pages.append(page);
1001310015
+ }

0 commit comments

Comments
 (0)