Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
browser(webkit): do not crash when opening web inspector (#3631)
Yury Semikhatsky80cf7e9fac97
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBERindex 22e17168d0..1867dfc519 100644--- a/browser_patches/webkit/BUILD_NUMBER+++ b/browser_patches/webkit/BUILD_NUMBER@@ -1,2 +1,2 @@-1333-Changed: [email protected] Tue Aug 25 15:39:47 PDT 2020+1334+Changed: [email protected] Tue Aug 25 18:01:13 PDT 2020diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diffindex 5a8c50d438..b79b0ef8b7 100644--- a/browser_patches/webkit/patches/bootstrap.diff+++ b/browser_patches/webkit/patches/bootstrap.diff@@ -9999,10 +9999,10 @@ index 0000000000000000000000000000000000000000..f356c613945fd263889bc74166bef2b2+} // namespace WebKitdiff --git a/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cppnew file mode 100644-index 0000000000000000000000000000000000000000..2c5e2bc04b51b39ae4f3128c86afb29e0042b968+index 0000000000000000000000000000000000000000..8e3989ef7f9947c685dcbe30d58561dab7f5ea5b--- /dev/null+++ b/Source/WebKit/UIProcess/InspectorPlaywrightAgent.cpp-@@ -0,0 +1,848 @@+@@ -0,0 +1,855 @@+/*+ * Copyright (C) 2019 Microsoft Corporation.+ *@@ -10043,6 +10043,7 @@ index 0000000000000000000000000000000000000000..2c5e2bc04b51b39ae4f3128c86afb29e+#include "WebAutomationSession.h"+#include "WebGeolocationManagerProxy.h"+#include "WebGeolocationPosition.h"++#include "WebInspectorUtilities.h"+#include "WebPageInspectorController.h"+#include "WebPageInspectorTarget.h"+#include "WebPageProxy.h"@@ -10327,6 +10328,9 @@ index 0000000000000000000000000000000000000000..2c5e2bc04b51b39ae4f3128c86afb29e+ if (!m_isEnabled)+ return;+++ if (isInspectorProcessPool(page.process().processPool()))++ return;+++ ASSERT(m_frontendChannel);++ String browserContextID = toBrowserContextIDProtocolString(page.sessionID());@@ -10354,6 +10358,9 @@ index 0000000000000000000000000000000000000000..2c5e2bc04b51b39ae4f3128c86afb29e+ if (!m_isEnabled)+ return;+++ if (isInspectorProcessPool(page.process().processPool()))++ return;+++ String browserContextID = toBrowserContextIDProtocolString(page.sessionID());+ BrowserContext* browserContext = getExistingBrowserContext(browserContextID);+ browserContext->pages.remove(&page);