Changeset 208286 in webkit
- Timestamp:
- Nov 2, 2016 9:57:33 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r208281 r208286 1 2016-11-02 David Kilzer <ddkilzer@apple.com> 2 3 Add logging for "WebKit encountered an internal error" messages 4 <https://webkit.org/b/164272> 5 <rdar://problem/28546064> 6 7 Reviewed by Alex Christensen. 8 9 * page/DiagnosticLoggingKeys.cpp: 10 (WebCore::DiagnosticLoggingKeys::internalErrorKey): 11 (WebCore::DiagnosticLoggingKeys::invalidSessionIDKey): 12 (WebCore::DiagnosticLoggingKeys::createSharedBufferFailedKey): 13 (WebCore::DiagnosticLoggingKeys::synchronousMessageFailedKey): 14 - Add implementations for new key methods. 15 16 * page/DiagnosticLoggingKeys.h: 17 (WebCore::DiagnosticLoggingKeys::internalErrorKey): 18 (WebCore::DiagnosticLoggingKeys::invalidSessionIDKey): 19 (WebCore::DiagnosticLoggingKeys::createSharedBufferFailedKey): 20 (WebCore::DiagnosticLoggingKeys::synchronousMessageFailedKey): 21 - Add declarations for new key methods. 22 1 23 2016-11-02 Zalan Bujtas <zalan@apple.com> 2 24 -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.cpp
r193756 r208286 234 234 } 235 235 236 String DiagnosticLoggingKeys::internalErrorKey() 237 { 238 return ASCIILiteral("internalError"); 239 } 240 241 String DiagnosticLoggingKeys::invalidSessionIDKey() 242 { 243 return ASCIILiteral("invalidSessionID"); 244 } 245 236 246 String DiagnosticLoggingKeys::isAttachmentKey() 237 247 { … … 289 299 } 290 300 301 String DiagnosticLoggingKeys::createSharedBufferFailedKey() 302 { 303 return ASCIILiteral("createSharedBufferFailed"); 304 } 305 291 306 String DiagnosticLoggingKeys::deltaKey() 292 307 { … … 444 459 } 445 460 461 String DiagnosticLoggingKeys::synchronousMessageFailedKey() 462 { 463 return ASCIILiteral("synchronousMessageFailed"); 464 } 465 446 466 String DiagnosticLoggingKeys::uncacheableStatusCodeKey() 447 467 { -
trunk/Source/WebCore/page/DiagnosticLoggingKeys.h
r208179 r208286 39 39 static String canCacheKey(); 40 40 static String cannotSuspendActiveDOMObjectsKey(); 41 WEBCORE_EXPORT static String createSharedBufferFailedKey(); 41 42 WEBCORE_EXPORT static String deltaKey(); 42 43 static String deniedByClientKey(); … … 56 57 static String imageKey(); 57 58 static String inMemoryCacheKey(); 59 WEBCORE_EXPORT static String internalErrorKey(); 60 WEBCORE_EXPORT static String invalidSessionIDKey(); 58 61 WEBCORE_EXPORT static String isAttachmentKey(); 59 62 WEBCORE_EXPORT static String isConditionalRequestKey(); … … 120 123 WEBCORE_EXPORT static String successfulSpeculativeWarmupWithoutRevalidationKey(); 121 124 static String svgDocumentKey(); 125 WEBCORE_EXPORT static String synchronousMessageFailedKey(); 122 126 WEBCORE_EXPORT static String uncacheableStatusCodeKey(); 123 127 static String underMemoryPressureKey(); -
trunk/Source/WebKit2/ChangeLog
r208285 r208286 1 2016-11-02 David Kilzer <ddkilzer@apple.com> 2 3 Add logging for "WebKit encountered an internal error" messages 4 <https://webkit.org/b/164272> 5 <rdar://problem/28546064> 6 7 Reviewed by Alex Christensen. 8 9 * NetworkProcess/NetworkResourceLoader.cpp: 10 (WebKit::NetworkResourceLoader::startNetworkLoad): 11 * WebProcess/Network/WebLoaderStrategy.cpp: 12 (WebKit::WebLoaderStrategy::loadResourceSynchronously): 13 * WebProcess/Network/WebResourceLoader.cpp: 14 (WebKit::WebResourceLoader::didReceiveResource): 15 - Add logging for various internalError() events. 16 1 17 2016-11-02 Carlos Garcia Campos <cgarcia@igalia.com> 2 18 -
trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp
r208174 r208286 41 41 #include <WebCore/BlobDataFileReference.h> 42 42 #include <WebCore/CertificateInfo.h> 43 #include <WebCore/DiagnosticLoggingKeys.h> 43 44 #include <WebCore/HTTPHeaderNames.h> 44 45 #include <WebCore/ProtectionSpace.h> … … 223 224 WTFLogAlways("Attempted to create a NetworkLoad with a session (id=%" PRIu64 ") that does not exist.", parameters.sessionID.sessionID()); 224 225 RELEASE_LOG_ERROR_IF_ALLOWED("startNetworkLoad: Attempted to create a NetworkLoad with a session that does not exist (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ", sessionID=%" PRIu64 ")", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier, parameters.sessionID.sessionID()); 226 NetworkProcess::singleton().logDiagnosticMessage(m_parameters.webPageID, WebCore::DiagnosticLoggingKeys::internalErrorKey(), WebCore::DiagnosticLoggingKeys::invalidSessionIDKey(), WebCore::ShouldSample::No); 225 227 didFailLoading(internalError(request.url())); 226 228 return; -
trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp
r207414 r208286 43 43 #include <WebCore/ApplicationCacheHost.h> 44 44 #include <WebCore/CachedResource.h> 45 #include <WebCore/DiagnosticLoggingClient.h> 46 #include <WebCore/DiagnosticLoggingKeys.h> 45 47 #include <WebCore/Document.h> 46 48 #include <WebCore/DocumentLoader.h> … … 341 343 if (!WebProcess::singleton().networkConnection().connection().sendSync(Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad(loadParameters), Messages::NetworkConnectionToWebProcess::PerformSynchronousLoad::Reply(error, response, data), 0)) { 342 344 RELEASE_LOG_ERROR_IF_ALLOWED(loadParameters.sessionID, "loadResourceSynchronously: failed sending synchronous network process message (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", loadParameters.webPageID, loadParameters.webFrameID, loadParameters.identifier); 345 if (auto* page = webPage->corePage()) 346 page->diagnosticLoggingClient().logDiagnosticMessage(WebCore::DiagnosticLoggingKeys::internalErrorKey(), WebCore::DiagnosticLoggingKeys::synchronousMessageFailedKey(), WebCore::ShouldSample::No); 343 347 response = ResourceResponse(); 344 348 error = internalError(request.url()); -
trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp
r206762 r208286 36 36 #include <WebCore/ApplicationCacheHost.h> 37 37 #include <WebCore/CertificateInfo.h> 38 #include <WebCore/DiagnosticLoggingClient.h> 39 #include <WebCore/DiagnosticLoggingKeys.h> 38 40 #include <WebCore/DocumentLoader.h> 41 #include <WebCore/Frame.h> 42 #include <WebCore/Page.h> 39 43 #include <WebCore/ResourceError.h> 40 44 #include <WebCore/ResourceLoader.h> … … 201 205 LOG_ERROR("Unable to create buffer from ShareableResource sent from the network process."); 202 206 RELEASE_LOG_IF_ALLOWED("didReceiveResource: Unable to create SharedBuffer (pageID = %" PRIu64 ", frameID = %" PRIu64 ", resourceID = %" PRIu64 ")", m_trackingParameters.pageID, m_trackingParameters.frameID, m_trackingParameters.resourceID); 207 if (auto* frame = m_coreLoader->frame()) { 208 if (auto* page = frame->page()) 209 page->diagnosticLoggingClient().logDiagnosticMessage(WebCore::DiagnosticLoggingKeys::internalErrorKey(), WebCore::DiagnosticLoggingKeys::createSharedBufferFailedKey(), WebCore::ShouldSample::No); 210 } 203 211 m_coreLoader->didFail(internalError(m_coreLoader->request().url())); 204 212 return;
Note: See TracChangeset
for help on using the changeset viewer.