Changeset 179958 in webkit


Ignore:
Timestamp:
Feb 11, 2015 2:15:31 PM (9 years ago)
Author:
Chris Dumez
Message:

Turn recent assertions into release assertions to help track down crash in DocumentLoader::stopLoadingForPolicyChange()
https://bugs.webkit.org/show_bug.cgi?id=141484
<rdar://problem/13811738>

Reviewed by Andy Estes.

Turn recent assertions into release assertions to help track down crash in
DocumentLoader::stopLoadingForPolicyChange(). This should increase the
likelyhood of tripping them so that we better understand why this happens.

  • loader/DocumentLoader.cpp:

(WebCore::DocumentLoader::~DocumentLoader):
(WebCore::DocumentLoader::detachFromFrame):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r179956 r179958  
     12015-02-11  Chris Dumez  <cdumez@apple.com>
     2
     3        Turn recent assertions into release assertions to help track down crash in DocumentLoader::stopLoadingForPolicyChange()
     4        https://bugs.webkit.org/show_bug.cgi?id=141484
     5        <rdar://problem/13811738>
     6
     7        Reviewed by Andy Estes.
     8
     9        Turn recent assertions into release assertions to help track down crash in
     10        DocumentLoader::stopLoadingForPolicyChange(). This should increase the
     11        likelyhood of tripping them so that we better understand why this happens.
     12
     13        * loader/DocumentLoader.cpp:
     14        (WebCore::DocumentLoader::~DocumentLoader):
     15        (WebCore::DocumentLoader::detachFromFrame):
     16
    1172015-02-11  Jer Noble  <jer.noble@apple.com>
    218
  • trunk/Source/WebCore/loader/DocumentLoader.cpp

    r179895 r179958  
    162162{
    163163    ASSERT(!m_frame || frameLoader()->activeDocumentLoader() != this || !isLoading());
    164     ASSERT(!m_waitingForContentPolicy);
     164    RELEASE_ASSERT_WITH_MESSAGE(!m_waitingForContentPolicy, "The content policy callback should never outlive its DocumentLoader.");
    165165    if (m_iconLoadDecisionCallback)
    166166        m_iconLoadDecisionCallback->invalidate();
     
    676676void DocumentLoader::continueAfterContentPolicy(PolicyAction policy)
    677677{
    678     ASSERT(m_waitingForContentPolicy);
     678    RELEASE_ASSERT(m_waitingForContentPolicy);
    679679    m_waitingForContentPolicy = false;
    680680    if (isStopping())
     
    953953    m_frame = nullptr;
    954954    // The call to stopLoading() above should have canceled any pending content policy check.
    955     ASSERT_WITH_MESSAGE(!m_waitingForContentPolicy, "The content policy callback needs a valid frame.");
     955    RELEASE_ASSERT_WITH_MESSAGE(!m_waitingForContentPolicy, "The content policy callback needs a valid frame.");
    956956}
    957957
Note: See TracChangeset for help on using the changeset viewer.