Changeset 150089 in webkit
- Timestamp:
- May 14, 2013, 3:08:53 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 9 edited
- 1 moved
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Configurations/WebCoreTestShim.xcconfig (added)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (18 diffs)
-
Source/WebCore/platform/mac/DynamicLinkerInterposing.h (moved) (moved from trunk/Source/WebKit2/Shared/mac/DyldInterpose.h )
-
Source/WebCore/testing/WebCoreTestShimLibrary.cpp (added)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/PluginProcess/mac/PluginProcessShim.mm (modified) (1 diff)
-
Source/WebKit2/Shared/mac/CookieStorageShimLibrary.cpp (modified) (1 diff)
-
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (modified) (2 diffs)
-
Source/WebKit2/WebProcess/mac/SecItemShimLibrary.mm (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/webkitpy/port/mac.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150088 r150089 1 2013-05-14 Alexey Proskuryakov <ap@apple.com> 2 3 [Mac] Add a testing shim for secure event input functions 4 https://bugs.webkit.org/show_bug.cgi?id=116122 5 6 Reviewed by Mark Rowe. 7 8 Added a new target with a dynamic library that interposes secure event input functions. 9 We need this to avoid interfering with user session state. 10 11 * Configurations/WebCoreTestShim.xcconfig: Added. 12 * WebCore.xcodeproj/project.pbxproj: 13 * platform/mac/DynamicLinkerInterposing.h: Moved from Source/WebKit2/Shared/mac/DyldInterpose.h. 14 * testing/WebCoreTestShimLibrary.cpp: Added. 15 (shimEnableSecureEventInput): 16 (shimDisableSecureEventInput): 17 (shimIsSecureEventInputEnabled): 18 1 19 2013-05-14 Benjamin Poulain <bpoulain@apple.com> 2 20 -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r150053 r150089 16 16 41816F8313859C7A0057AAA4 /* PBXTargetDependency */, 17 17 41816F8513859C7D0057AAA4 /* PBXTargetDependency */, 18 E1BA671C1742CBF800C20251 /* PBXTargetDependency */, 18 19 ); 19 20 name = All; … … 5469 5470 E1B784201639CBBE0007B692 /* SharedWorkerRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */; }; 5470 5471 E1BA003116FB92AC00BA7A35 /* ResourceHandleClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BA003016FB92AC00BA7A35 /* ResourceHandleClient.cpp */; }; 5472 E1BA66F11742BD8600C20251 /* DynamicLinkerInterposing.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BA66F01742BD8600C20251 /* DynamicLinkerInterposing.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5473 E1BA67181742BEE600C20251 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F5C2869402846DCD018635CA /* Carbon.framework */; }; 5474 E1BA671A1742BEF400C20251 /* WebCoreTestShimLibrary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BA67191742BEF400C20251 /* WebCoreTestShimLibrary.cpp */; }; 5471 5475 E1BE512D0CF6C512002EA959 /* XSLTUnicodeSort.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BE512B0CF6C512002EA959 /* XSLTUnicodeSort.cpp */; }; 5472 5476 E1BE512E0CF6C512002EA959 /* XSLTUnicodeSort.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BE512C0CF6C512002EA959 /* XSLTUnicodeSort.h */; }; … … 6082 6086 remoteGlobalIDString = DD041FBE09D9DDBE0010AF2A; 6083 6087 remoteInfo = "Derived Sources"; 6088 }; 6089 E1BA66F51742BDE000C20251 /* PBXContainerItemProxy */ = { 6090 isa = PBXContainerItemProxy; 6091 containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; 6092 proxyType = 1; 6093 remoteGlobalIDString = 93F198A508245E59001E9ABC; 6094 remoteInfo = WebCore; 6095 }; 6096 E1BA671B1742CBF800C20251 /* PBXContainerItemProxy */ = { 6097 isa = PBXContainerItemProxy; 6098 containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; 6099 proxyType = 1; 6100 remoteGlobalIDString = E1BA66F31742BDE000C20251; 6101 remoteInfo = WebCoreTestShim; 6084 6102 }; 6085 6103 /* End PBXContainerItemProxy section */ … … 10409 10427 AA4C3A740B2B1679002334A2 /* StyleElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = StyleElement.cpp; sourceTree = "<group>"; }; 10410 10428 AA4C3A750B2B1679002334A2 /* StyleElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = StyleElement.h; sourceTree = "<group>"; }; 10411 AA5F3B9016CC5BEB00455EB0 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = ../../../../../System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<group>"; };10429 AA5F3B9016CC5BEB00455EB0 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; }; 10412 10430 AA73183C159255B900A93E6E /* InjectedScriptCanvasModule.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedScriptCanvasModule.cpp; sourceTree = "<group>"; }; 10413 10431 AA73183D159255B900A93E6E /* InjectedScriptCanvasModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InjectedScriptCanvasModule.h; sourceTree = "<group>"; }; … … 12283 12301 E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SharedWorkerRepository.cpp; path = workers/SharedWorkerRepository.cpp; sourceTree = "<group>"; }; 12284 12302 E1BA003016FB92AC00BA7A35 /* ResourceHandleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ResourceHandleClient.cpp; sourceTree = "<group>"; }; 12303 E1BA66F01742BD8600C20251 /* DynamicLinkerInterposing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DynamicLinkerInterposing.h; sourceTree = "<group>"; }; 12304 E1BA66F21742BDCC00C20251 /* WebCoreTestShim.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = WebCoreTestShim.xcconfig; sourceTree = "<group>"; }; 12305 E1BA67161742BDE000C20251 /* libWebCoreTestShim.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libWebCoreTestShim.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; 12306 E1BA67191742BEF400C20251 /* WebCoreTestShimLibrary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebCoreTestShimLibrary.cpp; sourceTree = "<group>"; }; 12285 12307 E1BE512B0CF6C512002EA959 /* XSLTUnicodeSort.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XSLTUnicodeSort.cpp; sourceTree = "<group>"; }; 12286 12308 E1BE512C0CF6C512002EA959 /* XSLTUnicodeSort.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XSLTUnicodeSort.h; sourceTree = "<group>"; }; … … 12965 12987 runOnlyForDeploymentPostprocessing = 0; 12966 12988 }; 12989 E1BA670E1742BDE000C20251 /* Frameworks */ = { 12990 isa = PBXFrameworksBuildPhase; 12991 buildActionMask = 2147483647; 12992 files = ( 12993 E1BA67181742BEE600C20251 /* Carbon.framework in Frameworks */, 12994 ); 12995 runOnlyForDeploymentPostprocessing = 0; 12996 }; 12967 12997 /* End PBXFrameworksBuildPhase section */ 12968 12998 … … 12988 13018 417DA6D013734E02007C57FB /* libWebCoreTestSupport.dylib */, 12989 13019 93F19B1A08245E5A001E9ABC /* WebCore.framework */, 13020 E1BA67161742BDE000C20251 /* libWebCoreTestShim.dylib */, 12990 13021 ); 12991 13022 name = Products; … … 13695 13726 1C904DF90BA9D2C80081E9D0 /* Version.xcconfig */, 13696 13727 1CDD45E50BA9C84600F90147 /* WebCore.xcconfig */, 13728 E1BA66F21742BDCC00C20251 /* WebCoreTestShim.xcconfig */, 13697 13729 4181707D1386EDF20057AAA4 /* WebCoreTestSupport.xcconfig */, 13698 13730 ); … … 13959 13991 EB081CD81696084400553730 /* TypeConversions.h */, 13960 13992 EB081CD91696084400553730 /* TypeConversions.idl */, 13993 E1BA67191742BEF400C20251 /* WebCoreTestShimLibrary.cpp */, 13961 13994 ); 13962 13995 path = testing; … … 14602 14635 A795463D0B5C4C80007B438F /* DragDataMac.mm */, 14603 14636 A7CFB3D40B7ED1180070C32D /* DragImageMac.mm */, 14637 E1BA66F01742BD8600C20251 /* DynamicLinkerInterposing.h */, 14604 14638 5DC87EEF11716DF2001C0E6D /* EmptyProtocolDefinitions.h */, 14605 14639 1CA19E030DC255950065A994 /* EventLoopMac.mm */, … … 23800 23834 CECADFCE1537791D00E37068 /* TextInsertionBaseCommand.h in Headers */, 23801 23835 93309E1C099E64920056E581 /* TextIterator.h in Headers */, 23836 E1BA66F11742BD8600C20251 /* DynamicLinkerInterposing.h in Headers */, 23802 23837 BCEF45E90E687767001C1287 /* TextMetrics.h in Headers */, 23803 23838 930FC68A1072B9280045293E /* TextRenderingMode.h in Headers */, … … 24075 24110 runOnlyForDeploymentPostprocessing = 0; 24076 24111 }; 24112 E1BA66F61742BDE000C20251 /* Headers */ = { 24113 isa = PBXHeadersBuildPhase; 24114 buildActionMask = 2147483647; 24115 files = ( 24116 ); 24117 runOnlyForDeploymentPostprocessing = 0; 24118 }; 24077 24119 /* End PBXHeadersBuildPhase section */ 24078 24120 … … 24142 24184 productType = "com.apple.product-type.framework"; 24143 24185 }; 24186 E1BA66F31742BDE000C20251 /* WebCoreTestShim */ = { 24187 isa = PBXNativeTarget; 24188 buildConfigurationList = E1BA67121742BDE000C20251 /* Build configuration list for PBXNativeTarget "WebCoreTestShim" */; 24189 buildPhases = ( 24190 E1BA66F61742BDE000C20251 /* Headers */, 24191 E1BA67021742BDE000C20251 /* Sources */, 24192 E1BA670E1742BDE000C20251 /* Frameworks */, 24193 ); 24194 buildRules = ( 24195 ); 24196 dependencies = ( 24197 E1BA66F41742BDE000C20251 /* PBXTargetDependency */, 24198 ); 24199 name = WebCoreTestShim; 24200 productName = WebCoreTestSupport; 24201 productReference = E1BA67161742BDE000C20251 /* libWebCoreTestShim.dylib */; 24202 productType = "com.apple.product-type.library.dynamic"; 24203 }; 24144 24204 /* End PBXNativeTarget section */ 24145 24205 … … 24175 24235 5D87BB6411E3EBC100702B6F /* WebCoreExportFileGenerator Generator */, 24176 24236 417DA6CF13734E02007C57FB /* WebCoreTestSupport */, 24237 E1BA66F31742BDE000C20251 /* WebCoreTestShim */, 24177 24238 ); 24178 24239 }; … … 27032 27093 runOnlyForDeploymentPostprocessing = 0; 27033 27094 }; 27095 E1BA67021742BDE000C20251 /* Sources */ = { 27096 isa = PBXSourcesBuildPhase; 27097 buildActionMask = 2147483647; 27098 files = ( 27099 E1BA671A1742BEF400C20251 /* WebCoreTestShimLibrary.cpp in Sources */, 27100 ); 27101 runOnlyForDeploymentPostprocessing = 0; 27102 }; 27034 27103 /* End PBXSourcesBuildPhase section */ 27035 27104 … … 27064 27133 target = DD041FBE09D9DDBE0010AF2A /* Derived Sources */; 27065 27134 targetProxy = DD041FF009D9E3250010AF2A /* PBXContainerItemProxy */; 27135 }; 27136 E1BA66F41742BDE000C20251 /* PBXTargetDependency */ = { 27137 isa = PBXTargetDependency; 27138 target = 93F198A508245E59001E9ABC /* WebCore */; 27139 targetProxy = E1BA66F51742BDE000C20251 /* PBXContainerItemProxy */; 27140 }; 27141 E1BA671C1742CBF800C20251 /* PBXTargetDependency */ = { 27142 isa = PBXTargetDependency; 27143 target = E1BA66F31742BDE000C20251 /* WebCoreTestShim */; 27144 targetProxy = E1BA671B1742CBF800C20251 /* PBXContainerItemProxy */; 27066 27145 }; 27067 27146 /* End PBXTargetDependency section */ … … 27262 27341 name = Production; 27263 27342 }; 27343 E1BA67131742BDE000C20251 /* Debug */ = { 27344 isa = XCBuildConfiguration; 27345 baseConfigurationReference = E1BA66F21742BDCC00C20251 /* WebCoreTestShim.xcconfig */; 27346 buildSettings = { 27347 }; 27348 name = Debug; 27349 }; 27350 E1BA67141742BDE000C20251 /* Release */ = { 27351 isa = XCBuildConfiguration; 27352 baseConfigurationReference = E1BA66F21742BDCC00C20251 /* WebCoreTestShim.xcconfig */; 27353 buildSettings = { 27354 }; 27355 name = Release; 27356 }; 27357 E1BA67151742BDE000C20251 /* Production */ = { 27358 isa = XCBuildConfiguration; 27359 baseConfigurationReference = E1BA66F21742BDCC00C20251 /* WebCoreTestShim.xcconfig */; 27360 buildSettings = { 27361 }; 27362 name = Production; 27363 }; 27264 27364 /* End XCBuildConfiguration section */ 27265 27365 … … 27335 27435 defaultConfigurationName = Production; 27336 27436 }; 27437 E1BA67121742BDE000C20251 /* Build configuration list for PBXNativeTarget "WebCoreTestShim" */ = { 27438 isa = XCConfigurationList; 27439 buildConfigurations = ( 27440 E1BA67131742BDE000C20251 /* Debug */, 27441 E1BA67141742BDE000C20251 /* Release */, 27442 E1BA67151742BDE000C20251 /* Production */, 27443 ); 27444 defaultConfigurationIsVisible = 0; 27445 defaultConfigurationName = Production; 27446 }; 27337 27447 /* End XCConfigurationList section */ 27338 27448 }; -
trunk/Source/WebKit2/ChangeLog
r150079 r150089 1 2013-05-14 Alexey Proskuryakov <ap@apple.com> 2 3 [Mac] Add a testing shim for secure event input functions 4 https://bugs.webkit.org/show_bug.cgi?id=116122 5 6 Reviewed by Mark Rowe. 7 8 Moved DyldInterpose.h to WebCore, as we now use it there too. 9 10 * PluginProcess/mac/PluginProcessShim.mm: 11 * Shared/mac/CookieStorageShimLibrary.cpp: 12 * Shared/mac/DyldInterpose.h: Removed. 13 * WebKit2.xcodeproj/project.pbxproj: 14 * WebProcess/mac/SecItemShimLibrary.mm: 15 1 16 2013-05-14 Jocelyn Turcotte <jocelyn.turcotte@digia.com> 2 17 -
trunk/Source/WebKit2/PluginProcess/mac/PluginProcessShim.mm
r149074 r150089 27 27 #import "PluginProcessShim.h" 28 28 29 #import "DYLDInterpose.h"30 29 #import <AppKit/AppKit.h> 31 30 #import <Carbon/Carbon.h> 31 #import <WebCore/DynamicLinkerInterposing.h> 32 32 #import <WebKitSystemInterface.h> 33 33 #import <stdio.h> -
trunk/Source/WebKit2/Shared/mac/CookieStorageShimLibrary.cpp
r149107 r150089 29 29 #if ENABLE(NETWORK_PROCESS) 30 30 31 #include "DyldInterpose.h"31 #include <WebCore/DynamicLinkerInterposing.h> 32 32 33 33 extern "C" CFDictionaryRef _CFHTTPCookieStorageCopyRequestHeaderFieldsForURL(CFAllocatorRef inAllocator, CFHTTPCookieStorageRef inCookieStorage, CFURLRef inRequestURL); -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r149919 r150089 2613 2613 C574A57F12E66681002DFE98 /* PasteboardTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PasteboardTypes.h; sourceTree = "<group>"; }; 2614 2614 C574A58012E66681002DFE98 /* PasteboardTypes.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PasteboardTypes.mm; sourceTree = "<group>"; }; 2615 CD471F5B1721B99900D65CDA /* DyldInterpose.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DyldInterpose.h; sourceTree = "<group>"; };2616 2615 CD471F5C1721BC3E00D65CDA /* libWTF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libWTF.a; path = ../../../../../../../../usr/local/lib/libWTF.a; sourceTree = "<group>"; }; 2617 2616 CD5C669E134B9D36004FE2A8 /* InjectedBundlePageFullScreenClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundlePageFullScreenClient.cpp; sourceTree = "<group>"; }; … … 4322 4321 CDC3830D1721242D008A2FC3 /* CookieStorageShim.cpp */, 4323 4322 CDC3830E1721242D008A2FC3 /* CookieStorageShim.h */, 4324 CD471F5B1721B99900D65CDA /* DyldInterpose.h */,4325 4323 1A92DC1212F8BAB90017AF65 /* LayerTreeContextMac.mm */, 4326 4324 C02BFF1D1251502E009CCBEA /* NativeWebKeyboardEventMac.mm */, -
trunk/Source/WebKit2/WebProcess/mac/SecItemShimLibrary.mm
r149107 r150089 25 25 #import "SecItemShimLibrary.h" 26 26 27 #import "DyldInterpose.h"28 27 #import <Security/SecItem.h> 28 #import <WebCore/DynamicLinkerInterposing.h> 29 29 #import <wtf/Platform.h> 30 30 -
trunk/Tools/ChangeLog
r150080 r150089 1 2013-05-14 Alexey Proskuryakov <ap@apple.com> 2 3 [Mac] Add a testing shim for secure event input functions 4 https://bugs.webkit.org/show_bug.cgi?id=116122 5 6 Reviewed by Mark Rowe. 7 8 * Scripts/webkitpy/port/mac.py: (MacPort.setup_environ_for_server): 9 Inject WebCore testing shim library to override system framework functions. 10 1 11 2013-05-14 Brent Fulgham <bfulgham@apple.com> 2 12 -
trunk/Tools/Scripts/webkitpy/port/mac.py
r149967 r150089 95 95 env['MallocStackLogging'] = '1' 96 96 if self.get_option('guard_malloc'): 97 env['DYLD_INSERT_LIBRARIES'] = '/usr/lib/libgmalloc.dylib' 97 env['DYLD_INSERT_LIBRARIES'] = '/usr/lib/libgmalloc.dylib:' + self._build_path("libWebCoreTestShim.dylib") 98 else: 99 env['DYLD_INSERT_LIBRARIES'] = self._build_path("libWebCoreTestShim.dylib") 98 100 env['XML_CATALOG_FILES'] = '' # work around missing /etc/catalog <rdar://problem/4292995> 99 101 return env
Note:
See TracChangeset
for help on using the changeset viewer.