Changeset 206224 in webkit


Ignore:
Timestamp:
Sep 21, 2016 11:41:07 AM (8 years ago)
Author:
Chris Dumez
Message:

New DocumentLoader logging causes crashes
https://bugs.webkit.org/show_bug.cgi?id=162348
<rdar://problem/28404744>

Patch by Keith Rollin <Keith Rollin> on 2016-09-21
Reviewed by Chris Dumez

Check for NULL m_frame before using it.

No new tests -- no tests for logging, though this issue was found by
contentfiltering/block-after-will-send-request-then-allow-unblock.html

  • loader/DocumentLoader.cpp:

(WebCore::DocumentLoader::startLoadingMainResource):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206223 r206224  
     12016-09-21  Keith Rollin  <krollin@apple.com>
     2
     3        New DocumentLoader logging causes crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=162348
     5        <rdar://problem/28404744>
     6
     7        Reviewed by Chris Dumez
     8
     9        Check for NULL m_frame before using it.
     10
     11        No new tests -- no tests for logging, though this issue was found by
     12        contentfiltering/block-after-will-send-request-then-allow-unblock.html
     13
     14        * loader/DocumentLoader.cpp:
     15        (WebCore::DocumentLoader::startLoadingMainResource):
     16
    1172016-09-21  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/loader/DocumentLoader.cpp

    r206203 r206224  
    14751475
    14761476    if (maybeLoadEmpty()) {
    1477         RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Returning empty document (frame = %p, main = %d)", m_frame, m_frame->isMainFrame());
     1477        RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Returning empty document (frame = %p, main = %d)", m_frame, m_frame ? m_frame->isMainFrame() : false);
    14781478        return;
    14791479    }
     
    14971497    // willSendRequest() may lead to our Frame being detached or cancelling the load via nulling the ResourceRequest.
    14981498    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());
     1499        RELEASE_LOG_IF_ALLOWED("startLoadingMainResource: Load canceled after willSendRequest (frame = %p, main = %d)", m_frame, m_frame ? m_frame->isMainFrame() : false);
    15001500        return;
    15011501    }
Note: See TracChangeset for help on using the changeset viewer.