Changeset 191249 in webkit
- Timestamp:
- Oct 17, 2015 2:32:28 PM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r191247 r191249 1 2015-10-17 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Stop using WKAXRegisterRemoteApp 4 https://bugs.webkit.org/show_bug.cgi?id=150283 5 6 Reviewed by Alexey Proskuryakov. 7 8 * platform/spi/ios/GraphicsServicesSPI.h: Added declaration of GSSystemRootDirectory. 9 1 10 2015-10-17 Chris Dumez <cdumez@apple.com> 2 11 -
trunk/Source/WebCore/platform/spi/ios/GraphicsServicesSPI.h
r187032 r191249 41 41 void GSInitialize(void); 42 42 uint64_t GSCurrentEventTimestamp(void); 43 CFStringRef GSSystemRootDirectory(void); 43 44 44 45 WTF_EXTERN_C_END -
trunk/Source/WebKit2/ChangeLog
r191243 r191249 1 2015-10-17 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Stop using WKAXRegisterRemoteApp 4 https://bugs.webkit.org/show_bug.cgi?id=150283 5 6 Reviewed by Alexey Proskuryakov. 7 8 * Platform/spi/mac: Added. 9 * Platform/spi/mac/AppKitSPI.h: Added. Includes declaration of 10 +[NSAccessibilityRemoteUIElement setRemoteUIApp:]. 11 12 * WebKit2.xcodeproj/project.pbxproj: Added reference to new header. Also changed the path of 13 the Platform/spi/Cocoa group to the corresponding path in the source tree. 14 15 * WebProcess/cocoa/WebProcessCocoa.mm: 16 (WebKit::registerWithAccessibility): Added. 17 (WebKit::WebProcess::platformInitializeProcess): Use new registerWithAccessibility instead 18 of WKAXRegisterRemoteApp. 19 1 20 2015-10-16 Simon Fraser <simon.fraser@apple.com> 2 21 -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r191228 r191249 316 316 1A81B38118BD66AD0007FDAC /* _WKVisitedLinkStore.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A81B37F18BD66AD0007FDAC /* _WKVisitedLinkStore.h */; settings = {ATTRIBUTES = (Private, ); }; }; 317 317 1A81B38518BD673A0007FDAC /* _WKVisitedLinkStoreInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A81B38418BD673A0007FDAC /* _WKVisitedLinkStoreInternal.h */; }; 318 1A8B66B01BC43C860082DF77 /* PageLoadStateObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A8B66AE1BC43C860082DF77 /* PageLoadStateObserver.h */; settings = {ASSET_TAGS = (); };};319 1A8B66B31BC45B010082DF77 /* WKBundleMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A8B66B11BC45B010082DF77 /* WKBundleMac.mm */; settings = {ASSET_TAGS = (); };};318 1A8B66B01BC43C860082DF77 /* PageLoadStateObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A8B66AE1BC43C860082DF77 /* PageLoadStateObserver.h */; }; 319 1A8B66B31BC45B010082DF77 /* WKBundleMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A8B66B11BC45B010082DF77 /* WKBundleMac.mm */; }; 320 320 1A8B66B41BC45B010082DF77 /* WKBundleMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A8B66B21BC45B010082DF77 /* WKBundleMac.h */; settings = {ATTRIBUTES = (Private, ); }; }; 321 321 1A8C728C1738477C000A6554 /* LocalStorageDatabaseTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A8C728A1738477C000A6554 /* LocalStorageDatabaseTracker.cpp */; }; … … 786 786 37716A5A195B910500EE8B1B /* ProcessAssertion.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 37716A59195B910500EE8B1B /* ProcessAssertion.cpp */; }; 787 787 377216B81A4E6BE000DCA718 /* _WKRenderingProgressEvents.h in Headers */ = {isa = PBXBuildFile; fileRef = 377216B71A4E6BE000DCA718 /* _WKRenderingProgressEvents.h */; settings = {ATTRIBUTES = (Private, ); }; }; 788 37777A0E1BD2CA11007F74B5 /* AppKitSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 37777A0D1BD2CA11007F74B5 /* AppKitSPI.h */; }; 788 789 377EAD4517E2C51A002D193D /* WKDeclarationSpecifiers.h in Headers */ = {isa = PBXBuildFile; fileRef = 377EAD4417E2C51A002D193D /* WKDeclarationSpecifiers.h */; settings = {ATTRIBUTES = (Private, ); }; }; 789 790 377EAD4817E2C77B002D193D /* WKUserContentInjectedFrames.h in Headers */ = {isa = PBXBuildFile; fileRef = 377EAD4617E2C77B002D193D /* WKUserContentInjectedFrames.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 2937 2938 3743925718BC4C60001C8675 /* WKUIDelegatePrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKUIDelegatePrivate.h; sourceTree = "<group>"; }; 2938 2939 374436871820E7240049579F /* WKObject.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKObject.mm; sourceTree = "<group>"; }; 2939 3754D5441B3A29FD003A4C7F /* NSInvocationSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSInvocationSPI.h; path = Cocoa/NSInvocationSPI.h; sourceTree = "<group>"; };2940 3754D5441B3A29FD003A4C7F /* NSInvocationSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSInvocationSPI.h; sourceTree = "<group>"; }; 2940 2941 375FB4731883415600BE34D4 /* Info-iOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-iOS.plist"; sourceTree = "<group>"; }; 2941 2942 3760881C150413E900FC82C7 /* WebRenderObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebRenderObject.cpp; sourceTree = "<group>"; }; … … 2949 2950 37716A59195B910500EE8B1B /* ProcessAssertion.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ProcessAssertion.cpp; sourceTree = "<group>"; }; 2950 2951 377216B71A4E6BE000DCA718 /* _WKRenderingProgressEvents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _WKRenderingProgressEvents.h; sourceTree = "<group>"; }; 2952 37777A0D1BD2CA11007F74B5 /* AppKitSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppKitSPI.h; sourceTree = "<group>"; }; 2951 2953 377EAD4417E2C51A002D193D /* WKDeclarationSpecifiers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKDeclarationSpecifiers.h; sourceTree = "<group>"; }; 2952 2954 377EAD4617E2C77B002D193D /* WKUserContentInjectedFrames.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKUserContentInjectedFrames.h; sourceTree = "<group>"; }; … … 5295 5297 3754D5441B3A29FD003A4C7F /* NSInvocationSPI.h */, 5296 5298 ); 5297 name = Cocoa; 5299 path = Cocoa; 5300 sourceTree = "<group>"; 5301 }; 5302 37777A0C1BD2C9D6007F74B5 /* mac */ = { 5303 isa = PBXGroup; 5304 children = ( 5305 37777A0D1BD2CA11007F74B5 /* AppKitSPI.h */, 5306 ); 5307 path = mac; 5298 5308 sourceTree = "<group>"; 5299 5309 }; … … 7374 7384 3754D5411B3A2998003A4C7F /* Cocoa */, 7375 7385 CE1A0BCB1A48E6C60054EF74 /* ios */, 7386 37777A0C1BD2C9D6007F74B5 /* mac */, 7376 7387 ); 7377 7388 path = spi; … … 7501 7512 E19BDA8A193686A400B97F57 /* SandboxUtilities.h in Headers */, 7502 7513 1A7284471959ED100007BCE5 /* SessionStateConversion.h in Headers */, 7514 37777A0E1BD2CA11007F74B5 /* AppKitSPI.h in Headers */, 7503 7515 1AF459321946559500F9D4A2 /* WKError.h in Headers */, 7504 7516 1ADAE12E1919A5B400F48E21 /* WKPreferences.h in Headers */, -
trunk/Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm
r191014 r191249 62 62 #import <wtf/RAMSize.h> 63 63 64 #if USE(APPKIT) 65 #import "AppKitSPI.h" 66 #endif 67 68 #if PLATFORM(IOS) 69 #import <WebCore/GraphicsServicesSPI.h> 70 #endif 71 64 72 using namespace WebCore; 65 73 … … 191 199 } 192 200 201 static void registerWithAccessibility() 202 { 203 #if USE(APPKIT) 204 [NSAccessibilityRemoteUIElement setRemoteUIApp:YES]; 205 #endif 206 #if PLATFORM(IOS) 207 NSString *accessibilityBundlePath = [(NSString *)GSSystemRootDirectory() stringByAppendingString:@"/System/Library/AccessibilityBundles/WebProcessLoader.axbundle"]; 208 NSError *error; 209 if (![[NSBundle bundleWithPath:accessibilityBundlePath] loadAndReturnError:&error]) 210 LOG_ERROR("Failed to load accessibility bundle at %@: %@", accessibilityBundlePath, error); 211 #endif 212 } 213 193 214 void WebProcess::platformInitializeProcess(const ChildProcessInitializationParameters&) 194 215 { 195 WKAXRegisterRemoteApp();216 registerWithAccessibility(); 196 217 197 218 #if ENABLE(SEC_ITEM_SHIM)
Note: See TracChangeset
for help on using the changeset viewer.