Changeset 206189 in webkit
- Timestamp:
- Sep 20, 2016, 5:27:17 PM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r206188 r206189 1 2016-09-20 Keith Rollin <krollin@apple.com> 2 3 Add new logging for network resource loading 4 https://bugs.webkit.org/show_bug.cgi?id=162237 5 6 Reviewed by Antti Koivisto. 7 8 Add new logging along the non-main path for resource loading. This 9 logging should allow us to differentiate between lack-of-logging due 10 execution along a path that doesn't have logging statements and 11 lack-of-logging due to a hung process. 12 13 No new tests -- there are no tests for logging. 14 15 * loader/DocumentLoader.cpp: 16 (WebCore::DocumentLoader::startLoadingMainResource): 17 (WebCore::DocumentLoader::isAlwaysOnLoggingAllowed): 18 * loader/DocumentLoader.h: 19 * loader/FrameLoader.cpp: 20 (WebCore::FrameLoader::continueLoadAfterWillSubmitForm): 21 * loader/cache/CachedResource.cpp: 22 (WebCore::CachedResource::load): 23 * loader/cache/CachedResourceLoader.cpp: 24 (WebCore::CachedResourceLoader::requestResource): 25 (WebCore::CachedResourceLoader::isAlwaysOnLoggingAllowed): 26 * loader/cache/CachedResourceLoader.h: 27 * page/Frame.h: 28 1 29 2016-09-20 Zalan Bujtas <zalan@apple.com> 2 30 -
trunk/Source/WebCore/loader/DocumentLoader.cpp
r206016 r206189 82 82 #endif 83 83 84 #define RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - DocumentLoader::" fmt, this, ##__VA_ARGS__) 85 84 86 namespace WebCore { 85 87 … … 1472 1474 m_loadingMainResource = true; 1473 1475 1474 if (maybeLoadEmpty()) 1475 return; 1476 if (maybeLoadEmpty()) { 1477 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Returning empty document (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1478 return; 1479 } 1476 1480 1477 1481 #if ENABLE(CONTENT_FILTERING) … … 1492 1496 1493 1497 // willSendRequest() may lead to our Frame being detached or cancelling the load via nulling the ResourceRequest. 1494 if (!m_frame || m_request.isNull()) 1495 return; 1498 if (!m_frame || m_request.isNull()) { 1499 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Load canceled after willSendRequest (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1500 return; 1501 } 1496 1502 1497 1503 m_applicationCacheHost->maybeLoadMainResource(m_request, m_substituteData); 1498 1504 1499 1505 if (m_substituteData.isValid() && m_frame->page()) { 1506 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Returning cached main resource (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1500 1507 m_identifierForLoadWithoutResourceLoader = m_frame->page()->progress().createUniqueIdentifier(); 1501 1508 frameLoader()->notifier().assignIdentifierToInitialRequest(m_identifierForLoadWithoutResourceLoader, this, m_request); … … 1510 1517 request.makeUnconditional(); 1511 1518 1519 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Starting load (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1520 1512 1521 static NeverDestroyed<ResourceLoaderOptions> mainResourceLoadOptions(SendCallbacks, SniffContent, BufferData, AllowStoredCredentials, ClientCredentialPolicy::MayAskClientForCredentials, FetchOptions::Credentials::Include, SkipSecurityCheck, FetchOptions::Mode::NoCors, IncludeCertificateInfo, ContentSecurityPolicyImposition::DoPolicyCheck, DefersLoadingPolicy::AllowDefersLoading, CachingPolicy::AllowCaching); 1513 1522 m_mainResource = m_cachedResourceLoader->requestMainResource(CachedResourceRequest(ResourceRequest(request), mainResourceLoadOptions)); … … 1515 1524 #if ENABLE(CONTENT_EXTENSIONS) 1516 1525 if (m_mainResource && m_mainResource->errorOccurred() && m_frame->page() && m_mainResource->resourceError().domain() == ContentExtensions::WebKitContentBlockerDomain) { 1526 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Blocked by content blocker error (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1517 1527 cancelMainResourceLoad(frameLoader()->blockedByContentBlockerError(m_request)); 1518 1528 return; … … 1522 1532 if (!m_mainResource) { 1523 1533 if (!m_request.url().isValid()) { 1534 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Unable to load main resource, URL is invalid (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1524 1535 cancelMainResourceLoad(frameLoader()->client().cannotShowURLError(m_request)); 1525 1536 return; 1526 1537 } 1538 1539 RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Unable to load main resource, returning empty document (frame = %p, main = %d)", m_frame, m_frame->isMainFrame()); 1527 1540 1528 1541 setRequest(ResourceRequest()); … … 1712 1725 #endif 1713 1726 1727 bool DocumentLoader::isAlwaysOnLoggingAllowed() const 1728 { 1729 return m_frame ? m_frame->isAlwaysOnLoggingAllowed() : true; 1730 } 1731 1714 1732 } // namespace WebCore -
trunk/Source/WebCore/loader/DocumentLoader.h
r204429 r206189 287 287 #endif 288 288 289 bool isAlwaysOnLoggingAllowed() const; 290 289 291 protected: 290 292 WEBCORE_EXPORT DocumentLoader(const ResourceRequest&, const SubstituteData&); -
trunk/Source/WebCore/loader/FrameLoader.cpp
r206166 r206189 2361 2361 // The load might be cancelled inside of prepareForLoadStart(), nulling out the m_provisionalDocumentLoader, 2362 2362 // so we need to null check it again. 2363 if (!m_provisionalDocumentLoader) 2364 return; 2363 if (!m_provisionalDocumentLoader) { 2364 RELEASE_LOG_IF_ALLOWED("continueLoadAfterWillSubmitForm: Frame load canceled (frame = %p, main = %d)", &m_frame, m_frame.isMainFrame()); 2365 return; 2366 } 2365 2367 2366 2368 DocumentLoader* activeDocLoader = activeDocumentLoader(); 2367 if (activeDocLoader && activeDocLoader->isLoadingMainResource()) 2368 return; 2369 if (activeDocLoader && activeDocLoader->isLoadingMainResource()) { 2370 RELEASE_LOG_IF_ALLOWED("continueLoadAfterWillSubmitForm: Main frame already being loaded (frame = %p, main = %d)", &m_frame, m_frame.isMainFrame()); 2371 return; 2372 } 2369 2373 2370 2374 m_loadingFromCachedPage = false; -
trunk/Source/WebCore/loader/cache/CachedResource.cpp
r206016 r206189 63 63 using namespace WTF; 64 64 65 #define RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(cachedResourceLoader.isAlwaysOnLoggingAllowed(), Network, "%p - CachedResource::" fmt, this, ##__VA_ARGS__) 66 65 67 namespace WebCore { 66 68 … … 264 266 { 265 267 if (!cachedResourceLoader.frame()) { 268 RELEASE_LOG_IF_ALLOWED("load: No associated frame"); 266 269 failBeforeStarting(); 267 270 return; … … 275 278 if (auto* topDocument = frame.mainFrame().document()) { 276 279 if (topDocument->pageCacheState() != Document::NotInPageCache) { 280 RELEASE_LOG_IF_ALLOWED("load: Already in page cache or being added to it (frame = %p)", &frame); 277 281 failBeforeStarting(); 278 282 return; … … 282 286 FrameLoader& frameLoader = frame.loader(); 283 287 if (m_options.securityCheck == DoSecurityCheck && (frameLoader.state() == FrameStateProvisional || !frameLoader.activeDocumentLoader() || frameLoader.activeDocumentLoader()->isStopping())) { 288 if (frameLoader.state() == FrameStateProvisional) 289 RELEASE_LOG_IF_ALLOWED("load: Failed security check -- state is provisional (frame = %p)", &frame); 290 else if (!frameLoader.activeDocumentLoader()) 291 RELEASE_LOG_IF_ALLOWED("load: Failed security check -- not active document (frame = %p)", &frame); 292 else if (frameLoader.activeDocumentLoader()->isStopping()) 293 RELEASE_LOG_IF_ALLOWED("load: Failed security check -- active loader is stopping (frame = %p)", &frame); 284 294 failBeforeStarting(); 285 295 return; … … 338 348 m_loader = platformStrategies()->loaderStrategy()->loadResource(frame, *this, request, m_options); 339 349 if (!m_loader) { 350 RELEASE_LOG_IF_ALLOWED("load: Unable to create SubresourceLoader (frame = %p)", &frame); 340 351 failBeforeStarting(); 341 352 return; -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r206062 r206189 81 81 #define PRELOAD_DEBUG 0 82 82 83 #define RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), Network, "%p - CachedResourceLoader::" fmt, this, ##__VA_ARGS__) 84 83 85 namespace WebCore { 84 86 … … 608 610 url = MemoryCache::removeFragmentIdentifierIfNeeded(url); 609 611 610 if (!url.isValid()) 612 if (!url.isValid()) { 613 RELEASE_LOG_IF_ALLOWED("requestResource: URL is invalid (frame = %p)", frame()); 611 614 return nullptr; 612 613 if (!canRequest(type, url, request.options(), request.forPreload())) 615 } 616 617 if (!canRequest(type, url, request.options(), request.forPreload())) { 618 RELEASE_LOG_IF_ALLOWED("requestResource: Not allowed to request resource (frame = %p)", frame()); 614 619 return nullptr; 620 } 615 621 616 622 #if ENABLE(CONTENT_EXTENSIONS) … … 620 626 applyBlockedStatusToRequest(blockedStatus, resourceRequest); 621 627 if (blockedStatus.blockedLoad) { 628 RELEASE_LOG_IF_ALLOWED("requestResource: Resource blocked by content blocker (frame = %p)", frame()); 622 629 if (type == CachedResource::Type::MainResource) { 623 630 auto resource = createResource(type, WTFMove(request), sessionID()); … … 1291 1298 } 1292 1299 1293 } 1300 bool CachedResourceLoader::isAlwaysOnLoggingAllowed() const 1301 { 1302 return m_documentLoader ? m_documentLoader->isAlwaysOnLoggingAllowed() : true; 1303 } 1304 1305 } -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.h
r206016 r206189 145 145 ResourceTimingInformation& resourceTimingInformation() { return m_resourceTimingInfo; } 146 146 #endif 147 148 bool isAlwaysOnLoggingAllowed() const; 147 149 148 150 private: -
trunk/Source/WebCore/page/Frame.h
r204717 r206189 265 265 266 266 bool isURLAllowed(const URL&) const; 267 bool isAlwaysOnLoggingAllowed() const;267 WEBCORE_EXPORT bool isAlwaysOnLoggingAllowed() const; 268 268 269 269 // ======== -
trunk/Source/WebKit2/ChangeLog
r206176 r206189 1 2016-09-20 Keith Rollin <krollin@apple.com> 2 3 Add new logging for network resource loading 4 https://bugs.webkit.org/show_bug.cgi?id=162237 5 6 Reviewed by Antti Koivisto. 7 8 Add new logging along the non-main path for resource loading. This 9 logging should allow us to differentiate between lack-of-logging due 10 execution along a path that doesn't have logging statements and 11 lack-of-logging due to a hung process. 12 13 * NetworkProcess/NetworkResourceLoader.cpp: 14 (WebKit::NetworkResourceLoader::start): 15 (WebKit::NetworkResourceLoader::startNetworkLoad): 16 (WebKit::NetworkResourceLoader::setDefersLoading): 17 (WebKit::NetworkResourceLoader::abort): 18 (WebKit::NetworkResourceLoader::didReceiveBuffer): 19 * NetworkProcess/NetworkResourceLoader.h: 20 * WebProcess/Network/WebLoaderStrategy.cpp: 21 (WebKit::WebLoaderStrategy::loadResource): 22 (WebKit::WebLoaderStrategy::scheduleLoad): 23 1 24 2016-09-20 Anders Carlsson <andersca@apple.com> 2 25 -
trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp
r206166 r206189 149 149 ASSERT(RunLoop::isMain()); 150 150 151 if (m_defersLoading) 152 return; 151 if (m_defersLoading) { 152 RELEASE_LOG_IF_ALLOWED("start: Loading is deferred (pageID = %llu, frameID = %llu, resourceID = %llu, isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous()); 153 return; 154 } 153 155 154 156 #if ENABLE(NETWORK_CACHE) 155 157 if (canUseCache(originalRequest())) { 158 RELEASE_LOG_IF_ALLOWED("start: Retrieving resource from cache (pageID = %llu, frameID = %llu, resourceID = %llu, isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous()); 156 159 retrieveCacheEntry(originalRequest()); 157 160 return; … … 196 199 void NetworkResourceLoader::startNetworkLoad(const ResourceRequest& request) 197 200 { 201 RELEASE_LOG_IF_ALLOWED("startNetworkLoad: (pageID = %llu, frameID = %llu, resourceID = %llu, isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier, isMainResource(), isSynchronous()); 202 198 203 consumeSandboxExtensions(); 199 204 … … 205 210 m_bufferedDataForCache = SharedBuffer::create(); 206 211 #endif 207 208 RELEASE_LOG_IF_ALLOWED("startNetworkLoad: (pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d)", m_parameters.webPageID, m_parameters.webFrameID, isMainResource(), isSynchronous());209 212 210 213 NetworkLoadParameters parameters = m_parameters; … … 216 219 if (!networkSession) { 217 220 WTFLogAlways("Attempted to create a NetworkLoad with a session (id=%" PRIu64 ") that does not exist.", parameters.sessionID.sessionID()); 221 RELEASE_LOG_IF_ALLOWED("startNetworkLoad: Attempted to create a NetworkLoad with a session that does not exist (pageID = %llu, frameID = %llu, resourceID = %llu, sessionID=%llu)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier, parameters.sessionID.sessionID()); 218 222 didFailLoading(internalError(request.url())); 219 223 return; … … 223 227 m_networkLoad = std::make_unique<NetworkLoad>(*this, WTFMove(parameters)); 224 228 #endif 229 230 if (m_defersLoading) { 231 RELEASE_LOG_IF_ALLOWED("startNetworkLoad: Created, but deferred (pageID = %llu, frameID = %llu, resourceID = %llu)", 232 m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier); 233 } 225 234 } 226 235 … … 230 239 return; 231 240 m_defersLoading = defers; 241 242 if (defers) 243 RELEASE_LOG_IF_ALLOWED("setDefersLoading: Deferring resource load (pageID = %llu, frameID = %llu, resourceID = %llu)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier); 244 else 245 RELEASE_LOG_IF_ALLOWED("setDefersLoading: Resuming deferred resource load (pageID = %llu, frameID = %llu, resourceID = %llu)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier); 232 246 233 247 if (m_networkLoad) { … … 238 252 if (!m_defersLoading) 239 253 start(); 254 else 255 RELEASE_LOG_IF_ALLOWED("setDefersLoading: defers = TRUE, but nothing to stop (pageID = %llu, frameID = %llu, resourceID = %llu)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier); 240 256 } 241 257 … … 273 289 { 274 290 ASSERT(RunLoop::isMain()); 291 292 RELEASE_LOG_IF_ALLOWED("abort: Canceling resource load (pageID = %llu, frameID = %llu, resourceID = %llu)", 293 m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier); 275 294 276 295 if (m_networkLoad && !m_didConvertToDownload) { … … 321 340 if (isSynchronous()) 322 341 m_synchronousLoadData->response = m_response; 323 else { 324 RELEASE_LOG_IF_ALLOWED("didReceiveResponse: Sending didReceiveResponse message to the WebContent process (pageID = %llu, frameID = %llu, isMainResource = %d, isSynchronous = %d)", static_cast<unsigned long long>(m_parameters.webPageID), static_cast<unsigned long long>(m_parameters.webFrameID), isMainResource(), isSynchronous()); 342 else 325 343 send(Messages::WebResourceLoader::DidReceiveResponse(m_response, shouldWaitContinueDidReceiveResponse)); 326 }327 344 } 328 345 … … 344 361 void NetworkResourceLoader::didReceiveBuffer(Ref<SharedBuffer>&& buffer, int reportedEncodedDataLength) 345 362 { 363 if (!m_hasReceivedData) { 364 RELEASE_LOG_IF_ALLOWED("didReceiveBuffer: Started receiving data (pageID = %llu, frameID = %llu, resourceID = %llu)", m_parameters.webPageID, m_parameters.webFrameID, m_parameters.identifier); 365 m_hasReceivedData = true; 366 } 367 346 368 #if ENABLE(NETWORK_CACHE) 347 369 ASSERT(!m_cacheEntryForValidation); -
trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoader.h
r205052 r206189 154 154 bool m_didConsumeSandboxExtensions { false }; 155 155 bool m_defersLoading { false }; 156 bool m_hasReceivedData { false }; 156 157 157 158 WebCore::Timer m_bufferingTimer; -
trunk/Source/WebKit2/WebProcess/Network/WebLoaderStrategy.cpp
r206166 r206189 58 58 using namespace WebCore; 59 59 60 #define RELEASE_LOG_IF_ALLOWED( fmt, ...) RELEASE_LOG_IF(loadParameters.sessionID.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__)61 #define RELEASE_LOG_ERROR_IF_ALLOWED( fmt, ...) RELEASE_LOG_ERROR_IF(loadParameters.sessionID.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__)60 #define RELEASE_LOG_IF_ALLOWED(permissionChecker, fmt, ...) RELEASE_LOG_IF(permissionChecker.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__) 61 #define RELEASE_LOG_ERROR_IF_ALLOWED(permissionChecker, fmt, ...) RELEASE_LOG_ERROR_IF(permissionChecker.isAlwaysOnLoggingAllowed(), Network, "%p - WebLoaderStrategy::" fmt, this, ##__VA_ARGS__) 62 62 63 63 namespace WebKit { … … 77 77 if (loader) 78 78 scheduleLoad(*loader, &resource, frame.document()->referrerPolicy() == ReferrerPolicy::Default); 79 else 80 RELEASE_LOG_ERROR_IF_ALLOWED(frame, "loadResource: Unable to create SubresourceLoader (frame = %p", &frame); 79 81 return loader; 80 82 } … … 150 152 if (resourceLoader.documentLoader()->scheduleArchiveLoad(resourceLoader, resourceLoader.request())) { 151 153 LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be handled as an archive resource.", resourceLoader.url().string().utf8().data()); 154 RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as an archive resource (frame = %p, resourceID = %llu)", resourceLoader.frame(), identifier); 152 155 m_webResourceLoaders.set(identifier, WebResourceLoader::create(resourceLoader, trackingParameters)); 153 156 return; … … 157 160 if (resourceLoader.documentLoader()->applicationCacheHost()->maybeLoadResource(resourceLoader, resourceLoader.request(), resourceLoader.request().url())) { 158 161 LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be loaded from application cache.", resourceLoader.url().string().utf8().data()); 162 RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be loaded from application cache (frame = %p, resourceID = %llu)", resourceLoader.frame(), identifier); 159 163 m_webResourceLoaders.set(identifier, WebResourceLoader::create(resourceLoader, trackingParameters)); 160 164 return; … … 163 167 if (resourceLoader.request().url().protocolIsData()) { 164 168 LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be loaded as data.", resourceLoader.url().string().utf8().data()); 169 RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be loaded as data (frame = %p, resourceID = %llu)", resourceLoader.frame(), identifier); 165 170 startLocalLoad(resourceLoader); 166 171 return; … … 170 175 if (resourceLoader.request().url().protocolIs(QLPreviewProtocol())) { 171 176 LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be handled as a QuickLook resource.", resourceLoader.url().string().utf8().data()); 177 RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as a QuickLook resource (frame = %p, resourceID = %llu)", resourceLoader.frame(), identifier); 172 178 startLocalLoad(resourceLoader); 173 179 return; … … 180 186 if (resourceLoader.request().url().protocolIs("resource")) { 181 187 LOG(NetworkScheduling, "(WebProcess) WebLoaderStrategy::scheduleLoad, url '%s' will be handled as a GResource.", resourceLoader.url().string().utf8().data()); 188 RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: URL will be handled as a GResource (frame = %p, resourceID = %llu)", resourceLoader.frame(), identifier); 182 189 startLocalLoad(resourceLoader); 183 190 return; … … 208 215 209 216 if (!WebProcess::singleton().networkConnection().connection().send(Messages::NetworkConnectionToWebProcess::ScheduleResourceLoad(loadParameters), 0)) { 210 RELEASE_LOG_ERROR_IF_ALLOWED( "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.identifier, loadParameters.webFrameID);217 RELEASE_LOG_ERROR_IF_ALLOWED(resourceLoader, "scheduleLoad: Unable to schedule resource with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.identifier, loadParameters.webFrameID); 211 218 // We probably failed to schedule this load with the NetworkProcess because it had crashed. 212 219 // This load will never succeed so we will schedule it to fail asynchronously. … … 216 223 217 224 auto webResourceLoader = WebResourceLoader::create(resourceLoader, trackingParameters); 218 RELEASE_LOG_IF_ALLOWED( "scheduleLoad: Resource has been queued for scheduling with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu, WebResourceLoader = %p)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.webFrameID, loadParameters.identifier, webResourceLoader.ptr());225 RELEASE_LOG_IF_ALLOWED(resourceLoader, "scheduleLoad: Resource has been queued for scheduling with the NetworkProcess (frame = %p, priority = %d, pageID = %llu, frameID = %llu, resourceID = %llu, WebResourceLoader = %p)", resourceLoader.frame(), static_cast<int>(resourceLoader.request().priority()), loadParameters.webPageID, loadParameters.webFrameID, loadParameters.identifier, webResourceLoader.ptr()); 219 226 m_webResourceLoaders.set(identifier, WTFMove(webResourceLoader)); 220 227 }
Note:
See TracChangeset
for help on using the changeset viewer.