From 6c1d3f65b5bd11a9d673ee22b38f1f756f31ca8c Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Sat, 27 Mar 2021 00:44:31 +0800 Subject: [PATCH] browser(webkit): refresh embedder UI on macOS (#5957) --- browser_patches/webkit/BUILD_NUMBER | 4 +- .../Playwright.xcodeproj/project.pbxproj | 4 ++ .../embedder/Playwright/mac/BrowserWindow.xib | 68 +++++++++++++----- .../Playwright/mac/BrowserWindowController.h | 1 + .../Playwright/mac/BrowserWindowController.m | 70 ++++++++++++++++++- 5 files changed, 126 insertions(+), 21 deletions(-) diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER index 84772226f1..f6bc9fe8ab 100644 --- a/browser_patches/webkit/BUILD_NUMBER +++ b/browser_patches/webkit/BUILD_NUMBER @@ -1,2 +1,2 @@ -1449 -Changed: yurys@chromium.org Tue 23 Mar 2021 11:19:43 AM PDT +1450 +Changed: pavel.feldman@gmail.com Thu Mar 25 22:36:32 PDT 2021 diff --git a/browser_patches/webkit/embedder/Playwright/Playwright.xcodeproj/project.pbxproj b/browser_patches/webkit/embedder/Playwright/Playwright.xcodeproj/project.pbxproj index 75a945e72d..913b63c812 100644 --- a/browser_patches/webkit/embedder/Playwright/Playwright.xcodeproj/project.pbxproj +++ b/browser_patches/webkit/embedder/Playwright/Playwright.xcodeproj/project.pbxproj @@ -9,6 +9,7 @@ /* Begin PBXBuildFile section */ 256AC3DA0F4B6AC300CF336A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 256AC3D90F4B6AC300CF336A /* AppDelegate.m */; }; 51E244FA11EFCE07008228D2 /* MBToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E244F911EFCE07008228D2 /* MBToolbarItem.m */; }; + 5C9332AF24C1349C0036DECF /* SecurityInterface.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C9332AE24C1349C0036DECF /* SecurityInterface.framework */; }; BC329487116A92E2008635D1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BC329486116A92E2008635D1 /* main.m */; }; BC329498116A941B008635D1 /* BrowserWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC329497116A941B008635D1 /* BrowserWindowController.m */; }; BC72B89511E57E07001EB4EB /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58150DA1D0A300B3202A /* MainMenu.xib */; }; @@ -27,6 +28,7 @@ 37BAF90620218053000EA87A /* Playwright.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Playwright.entitlements; sourceTree = ""; }; 51E244F811EFCE07008228D2 /* MBToolbarItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MBToolbarItem.h; sourceTree = ""; }; 51E244F911EFCE07008228D2 /* MBToolbarItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MBToolbarItem.m; sourceTree = ""; }; + 5C9332AE24C1349C0036DECF /* SecurityInterface.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SecurityInterface.framework; path = System/Library/Frameworks/SecurityInterface.framework; sourceTree = SDKROOT; }; 8D1107320486CEB800E47091 /* Playwright.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Playwright.app; sourceTree = BUILT_PRODUCTS_DIR; }; A1B89B95221E027A00EB4CEB /* SDKVariant.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = SDKVariant.xcconfig; sourceTree = ""; }; BC329486116A92E2008635D1 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = mac/main.m; sourceTree = ""; }; @@ -44,6 +46,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 5C9332AF24C1349C0036DECF /* SecurityInterface.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -111,6 +114,7 @@ children = ( 1058C7A2FEA54F0111CA2CBC /* Other Frameworks */, 1AFFEF761860EE6800DA465F /* Cocoa.framework */, + 5C9332AE24C1349C0036DECF /* SecurityInterface.framework */, ); name = Frameworks; sourceTree = ""; diff --git a/browser_patches/webkit/embedder/Playwright/mac/BrowserWindow.xib b/browser_patches/webkit/embedder/Playwright/mac/BrowserWindow.xib index f6f3d8e3a0..3634203bf2 100644 --- a/browser_patches/webkit/embedder/Playwright/mac/BrowserWindow.xib +++ b/browser_patches/webkit/embedder/Playwright/mac/BrowserWindow.xib @@ -1,8 +1,8 @@ - + - - + + @@ -10,6 +10,7 @@ + @@ -21,16 +22,16 @@ - - + + - + - + - + @@ -40,7 +41,7 @@ - + + + + + + + + + + + + + - +