Changeset 167638 in webkit
- Timestamp:
- Apr 21, 2014, 5:23:04 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/WebKit2/ChangeLog ¶
r167635 r167638 1 2014-04-21 Simon Fraser <simon.fraser@apple.com> 2 3 Don't try to use a null connection()->xpcConnection() 4 https://bugs.webkit.org/show_bug.cgi?id=131961 5 6 Reviewed by Dan Bernstein. 7 8 If running with -WebKit2UseXPCServiceForWebProcess NO, connection()->xpcConnection() 9 is null and xpc_connection_get_pid() would crash, so null-check the xpcConnection. 10 11 * UIProcess/Network/NetworkProcessProxy.cpp: 12 (WebKit::NetworkProcessProxy::didFinishLaunching): 13 1 14 2014-04-21 Dan Bernstein <mitz@apple.com> 2 15 -
TabularUnified trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp ¶
r167410 r167638 202 202 203 203 #if PLATFORM(IOS) && USE(XPC_SERVICES) 204 m_assertion = std::make_unique<ProcessAssertion>(xpc_connection_get_pid(connection()->xpcConnection()), AssertionState::Foreground); 204 if (xpc_connection_t connection = this->connection()->xpcConnection()) 205 m_assertion = std::make_unique<ProcessAssertion>(xpc_connection_get_pid(connection), AssertionState::Foreground); 205 206 #endif 206 207 }
Note:
See TracChangeset
for help on using the changeset viewer.