Changeset 225597 in webkit
- Timestamp:
- Dec 6, 2017 2:24:30 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r225596 r225597 1 2017-12-06 Per Arne Vollan <pvollan@apple.com> 2 3 The WebProcess should use the NSRunLoop runloop type. 4 https://bugs.webkit.org/show_bug.cgi?id=179804 5 <rdar://problem/14012823> 6 7 Reviewed by Brent Fulgham. 8 9 No new tests. 10 11 * platform/mac/EventLoopMac.mm: 12 (WebCore::EventLoop::cycle): 13 1 14 2017-12-06 Antti Koivisto <antti@apple.com> 2 15 -
trunk/Source/WebCore/platform/mac/EventLoopMac.mm
r222940 r225597 31 31 void EventLoop::cycle() 32 32 { 33 if (![NSApp isRunning]) { 34 [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]]; 35 return; 36 } 33 37 [NSApp setWindowsNeedUpdate:YES]; 34 38 if (NSEvent *event = [NSApp nextEventMatchingMask:NSEventMaskAny untilDate:[NSDate dateWithTimeIntervalSinceNow:0.05] inMode:NSDefaultRunLoopMode dequeue:YES]) -
trunk/Source/WebKit/ChangeLog
r225592 r225597 1 2017-12-06 Per Arne Vollan <pvollan@apple.com> 2 3 The WebProcess should use the NSRunLoop runloop type. 4 https://bugs.webkit.org/show_bug.cgi?id=179804 5 <rdar://problem/14012823> 6 7 Reviewed by Brent Fulgham. 8 9 * Platform/IPC/mac/ConnectionMac.mm: 10 (IPC::AccessibilityProcessSuspendedNotification): 11 * Shared/ChildProcess.h: 12 * Shared/mac/ChildProcessMac.mm: 13 (WebKit::ChildProcess::launchServicesCheckIn): 14 * UIProcess/Launcher/mac/ProcessLauncherMac.mm: 15 (WebKit::shouldLeakBoost): 16 * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist: 17 * WebProcess/WebProcess.cpp: 18 (WebKit::WebProcess::initializeProcess): 19 1 20 2017-12-06 Nan Wang <n_wang@apple.com> 2 21 -
trunk/Source/WebKit/Platform/IPC/mac/ConnectionMac.mm
r224728 r225597 587 587 { 588 588 #if PLATFORM(MAC) 589 // Calling _AXUIElementNotifyProcessSuspendStatus will crash if the NSApplication event loop is not running. 590 if (![NSApp isRunning]) 591 return; 589 592 _AXUIElementNotifyProcessSuspendStatus(suspended ? AXSuspendStatusSuspended : AXSuspendStatusRunning); 590 593 #elif PLATFORM(IOS) -
trunk/Source/WebKit/Shared/ChildProcess.h
r219050 r225597 71 71 #if PLATFORM(COCOA) 72 72 void setApplicationIsDaemon(); 73 void launchServicesCheckIn(); 73 74 void setQOS(int latencyQOS, int throughputQOS); 74 75 #endif -
trunk/Source/WebKit/Shared/mac/ChildProcessMac.mm
r224371 r225597 71 71 ASSERT_UNUSED(error, error == noErr); 72 72 73 launchServicesCheckIn(); 74 } 75 76 void ChildProcess::launchServicesCheckIn() 77 { 73 78 _LSSetApplicationLaunchServicesServerConnectionStatus(0, 0); 74 79 RetainPtr<CFDictionaryRef> unused = _LSApplicationCheckIn(-2, CFBundleGetInfoDictionary(CFBundleGetMainBundle())); -
trunk/Source/WebKit/UIProcess/Launcher/mac/ProcessLauncherMac.mm
r225087 r225597 78 78 #else 79 79 // On Mac, leak a boost onto the NetworkProcess. 80 return launchOptions.processType == ProcessLauncher::ProcessType::Network; 80 return launchOptions.processType == ProcessLauncher::ProcessType::Network 81 || launchOptions.processType == ProcessLauncher::ProcessType::Web; 81 82 #endif 82 83 } -
trunk/Source/WebKit/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist
r219002 r225597 46 46 <string>Application</string> 47 47 <key>RunLoopType</key> 48 <string> _NSApplicationMain</string>48 <string>NSRunLoop</string> 49 49 <key>_MultipleInstances</key> 50 50 <true/> -
trunk/Source/WebKit/WebProcess/WebProcess.cpp
r225592 r225597 217 217 void WebProcess::initializeProcess(const ChildProcessInitializationParameters& parameters) 218 218 { 219 #if PLATFORM(COCOA) && !PLATFORM(IOS) 220 // This call is needed when the WebProcess is not running the NSApplication event loop. 221 // Otherwise, calling enableSandboxStyleFileQuarantine() will fail. 222 launchServicesCheckIn(); 223 #endif 219 224 platformInitializeProcess(parameters); 220 225 }
Note: See TracChangeset
for help on using the changeset viewer.