WebKit Bugzilla
Attachment 347297 Details for
Bug 188601
: Add script to generate WebContent service resource files and change XPC service main SPI to have it's own header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for landing
bug-188601-20180816133307.patch (text/plain), 6.50 KB, created by
Ben Richards
on 2018-08-16 13:33:08 PDT
(
hide
)
Description:
Patch for landing
Filename:
MIME Type:
Creator:
Ben Richards
Created:
2018-08-16 13:33:08 PDT
Size:
6.50 KB
patch
obsolete
>Subversion Revision: 234891 >diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog >index 65b78a253c9de6d06d570c6bdfef158d67ac774b..8b48cd5a72ea939199ba2db042536fb324d055e0 100644 >--- a/Source/WebKit/ChangeLog >+++ b/Source/WebKit/ChangeLog >@@ -1,3 +1,16 @@ >+2018-08-16 Ben Richards <benton_richards@apple.com> >+ >+ Add script to generate WebContent service resource files >+ https://bugs.webkit.org/show_bug.cgi?id=188601 >+ >+ Reviewed by Dan Bernstein. >+ >+ Added new build phase to WebContent service to copy resource files to WebKit.framework/PrivateHeaders/CustomWebContentResource. >+ These resources are intended to be used by a client to create a custom WebContent service. >+ >+ * Scripts/copy-webcontent-resources-to-private-headers.sh: Added. >+ * WebKit.xcodeproj/project.pbxproj: >+ > 2018-08-15 Michael Catanzaro <mcatanzaro@igalia.com> > > [WPE][GTK] WaylandCompositor fails to properly remove surface from its page map >diff --git a/Source/WebKit/Scripts/copy-webcontent-resources-to-private-headers.sh b/Source/WebKit/Scripts/copy-webcontent-resources-to-private-headers.sh >new file mode 100755 >index 0000000000000000000000000000000000000000..de2d96189d7d3fe97a0874b53837a27a23d23541 >--- /dev/null >+++ b/Source/WebKit/Scripts/copy-webcontent-resources-to-private-headers.sh >@@ -0,0 +1,31 @@ >+#!/bin/sh >+set -e >+ >+WEB_CONTENT_RESOURCES_PATH="${BUILT_PRODUCTS_DIR}/WebKit.framework/PrivateHeaders/CustomWebContentResources" >+mkdir -p "${WEB_CONTENT_RESOURCES_PATH}" >+ >+echo "Copying WebContent entitlements to ${WEB_CONTENT_RESOURCES_PATH}" >+ENTITLEMENTS_FILE="${TEMP_FILE_DIR}/${FULL_PRODUCT_NAME}.xcent" >+ditto "${ENTITLEMENTS_FILE}" "${WEB_CONTENT_RESOURCES_PATH}/WebContent.entitlements" >+ >+echo "Copying WebContentProcess.xib to ${WEB_CONTENT_RESOURCES_PATH}" >+WEBCONTENT_XIB="${SRCROOT}/Resources/WebContentProcess.xib" >+ditto "${WEBCONTENT_XIB}" "${WEB_CONTENT_RESOURCES_PATH}/WebContentProcess.xib" >+ >+echo "Copying Info.plist to ${WEB_CONTENT_RESOURCES_PATH}" >+PROCESSED_INFOPLIST="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}" >+UNPROCESSED_INFOPLIST="${INFOPLIST_FILE}" >+COPIED_INFOPLIST="${WEB_CONTENT_RESOURCES_PATH}/Info.plist" >+ditto "${UNPROCESSED_INFOPLIST}" "${COPIED_INFOPLIST}" >+ >+echo "Setting fixed entry values for ${COPIED_INFOPLIST}" >+if [[ ${WK_PLATFORM_NAME} == "macosx" ]]; then >+ FIXED_ENTRIES=( ":XPCService:RunLoopType" ) >+else >+ FIXED_ENTRIES=() >+fi >+ >+for ((i = 0; i < ${#FIXED_ENTRIES[@]}; ++i)); do >+ ENTRY_VALUE=$(/usr/libexec/PlistBuddy -c "Print ${FIXED_ENTRIES[$i]}" "${PROCESSED_INFOPLIST}") >+ /usr/libexec/PlistBuddy -c "Set ${FIXED_ENTRIES[$i]} ${ENTRY_VALUE}" "${COPIED_INFOPLIST}" >+done >diff --git a/Source/WebKit/WebKit.xcodeproj/project.pbxproj b/Source/WebKit/WebKit.xcodeproj/project.pbxproj >index c833c1fee5b333a6a57a1f213946975309605754..2909c7af8709f25e747e84d37397e08bd08a4e51 100644 >--- a/Source/WebKit/WebKit.xcodeproj/project.pbxproj >+++ b/Source/WebKit/WebKit.xcodeproj/project.pbxproj >@@ -3443,6 +3443,7 @@ > 4135FBCF1F4FB7F20074C47B /* CacheStorageEngineCaches.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CacheStorageEngineCaches.cpp; sourceTree = "<group>"; }; > 4135FBD01F4FB7F20074C47B /* CacheStorageEngineCaches.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CacheStorageEngineCaches.h; sourceTree = "<group>"; }; > 413CCD4F20DEBC2F0065A21A /* com.google.googletalkbrowserplugin.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = com.google.googletalkbrowserplugin.sb; sourceTree = "<group>"; }; >+ 413E67632125E75400C0F09E /* copy-webcontent-resources-to-private-headers.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "copy-webcontent-resources-to-private-headers.sh"; sourceTree = "<group>"; }; > 4143751B20EAEA1E00FAD06C /* cn.microdone.cmb.safari.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = cn.microdone.cmb.safari.sb; sourceTree = "<group>"; }; > 414DD37820BF43EA006959FB /* com.cisco.webex.plugin.gpc64.sb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = com.cisco.webex.plugin.gpc64.sb; sourceTree = "<group>"; }; > 414DEDD51F9EDDDF0047C40D /* ServiceWorkerProcessProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ServiceWorkerProcessProxy.h; sourceTree = "<group>"; }; >@@ -8653,6 +8654,7 @@ > children = ( > 7CDE73A21F9DA59700390312 /* PreferencesTemplates */, > 0FC0856E187CE0A900780D86 /* __init__.py */, >+ 413E67632125E75400C0F09E /* copy-webcontent-resources-to-private-headers.sh */, > C0CE73361247F70E00BC0EC4 /* generate-message-receiver.py */, > C0CE73371247F70E00BC0EC4 /* generate-messages-header.py */, > 7CDE73A11F9DA41400390312 /* GeneratePreferences.rb */, >@@ -10142,6 +10144,7 @@ > BCDC308D15FDB99A006B6695 /* Frameworks */, > BC3DE46415A91763008D26FC /* Resources */, > 7AFCBD5420B8911D00F55C9C /* Process WebContent entitlements */, >+ 413E67622125E6E800C0F09E /* Copy Custom WebContent Resources to Framework Private Headers */, > ); > buildRules = ( > ); >@@ -10492,6 +10495,27 @@ > shellPath = /bin/sh; > shellScript = "if [[ \"${WK_MANUAL_SANDBOXING_ENABLED}\" != \"YES\" || \"${WK_PLATFORM_NAME}\" == \"macosx\" || \"${WK_PLATFORM_NAME}\" == \"iosmac\" ]]; then\n exit\nfi\n\nif [[ \"${ACTION}\" == \"build\" || \"${ACTION}\" == \"install\" ]]; then\n for ((i = 0; i < ${SCRIPT_INPUT_FILE_COUNT}; ++i)); do\n eval SANDBOX_PROFILE=\\${SCRIPT_INPUT_FILE_${i}}\n ditto \"${SANDBOX_PROFILE}\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/${SANDBOX_PROFILE##*/}\"\n done\nfi\n"; > }; >+ 413E67622125E6E800C0F09E /* Copy Custom WebContent Resources to Framework Private Headers */ = { >+ isa = PBXShellScriptBuildPhase; >+ buildActionMask = 2147483647; >+ files = ( >+ ); >+ inputFileListPaths = ( >+ ); >+ inputPaths = ( >+ "$(TEMP_FILE_DIR)/$(FULL_PRODUCT_NAME).xcent", >+ "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", >+ "$(SRCROOT)/Resources/WebContentProcess.xib", >+ ); >+ name = "Copy Custom WebContent Resources to Framework Private Headers"; >+ outputFileListPaths = ( >+ ); >+ outputPaths = ( >+ ); >+ runOnlyForDeploymentPostprocessing = 0; >+ shellPath = /bin/sh; >+ shellScript = "Scripts/copy-webcontent-resources-to-private-headers.sh\n"; >+ }; > 5DF408C5131DD46700130071 /* Check For Weak VTables and Externals */ = { > isa = PBXShellScriptBuildPhase; > buildActionMask = 2147483647;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 188601
:
347162
|
347166
|
347178
|
347228
|
347285
|
347297
|
347371
|
347405
|
347418
|
349958
|
350038
|
350047