Changeset 273286 in webkit
- Timestamp:
- Feb 22, 2021 4:03:08 PM (3 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r273283 r273286 1 2021-02-22 Per Arne Vollan <pvollan@apple.com> 2 3 [Cocoa] Send sandbox extensions for Network Extension services in load parameters 4 https://bugs.webkit.org/show_bug.cgi?id=222284 5 <rdar://problem/74402532> 6 7 Reviewed by Brent Fulgham. 8 9 Currently, sandbox extensions for Network Extension services are sent from the UI process to the WebContent process when the 10 policy decision is made, but that is not soon enough in all cases. They should also be sent as part of the load parameters. 11 12 * Shared/Cocoa/LoadParametersCocoa.mm: 13 (WebKit::LoadParameters::platformEncode const): 14 (WebKit::LoadParameters::platformDecode): 15 * Shared/LoadParameters.h: 16 * UIProcess/Cocoa/WebPageProxyCocoa.mm: 17 (WebKit::WebPageProxy::addPlatformLoadParameters): 18 * WebProcess/WebPage/Cocoa/WebPageCocoa.mm: 19 (WebKit::WebPage::platformDidReceiveLoadParameters): 20 1 21 2021-02-22 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebKit/Shared/Cocoa/LoadParametersCocoa.mm
r271469 r273286 38 38 IPC::encode(encoder, dataDetectionContext.get()); 39 39 40 encoder << networkExtensionSandboxExtensionHandles; 40 41 #if PLATFORM(IOS) 41 42 encoder << contentFilterExtensionHandle; … … 49 50 return false; 50 51 52 Optional<SandboxExtension::HandleArray> networkExtensionSandboxExtensionHandles; 53 decoder >> networkExtensionSandboxExtensionHandles; 54 if (!networkExtensionSandboxExtensionHandles) 55 return false; 56 parameters.networkExtensionSandboxExtensionHandles = WTFMove(*networkExtensionSandboxExtensionHandles); 57 51 58 #if PLATFORM(IOS) 52 59 Optional<Optional<SandboxExtension::Handle>> contentFilterExtensionHandle; -
trunk/Source/WebKit/Shared/LoadParameters.h
r271469 r273286 75 75 #if PLATFORM(COCOA) 76 76 RetainPtr<NSDictionary> dataDetectionContext; 77 SandboxExtension::HandleArray networkExtensionSandboxExtensionHandles; 77 78 #endif 78 79 #if PLATFORM(IOS) -
trunk/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm
r273102 r273286 166 166 loadParameters.dataDetectionContext = m_uiClient->dataDetectionContext(); 167 167 168 loadParameters.networkExtensionSandboxExtensionHandles = createNetworkExtensionsSandboxExtensions(process); 169 168 170 #if PLATFORM(IOS) 169 171 if (!process.hasManagedSessionSandboxAccess() && [getWebFilterEvaluatorClass() isManagedSession]) { -
trunk/Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm
r273075 r273286 82 82 m_dataDetectionContext = parameters.dataDetectionContext; 83 83 84 consumeNetworkExtensionSandboxExtensions(parameters.networkExtensionSandboxExtensionHandles); 85 84 86 #if PLATFORM(IOS) 85 87 if (parameters.contentFilterExtensionHandle)
Note: See TracChangeset
for help on using the changeset viewer.