Changeset 233414 in webkit


Ignore:
Timestamp:
Jul 1, 2018 6:52:14 PM (6 years ago)
Author:
Fujii Hironori
Message:

[WK2] fast/parser/document-open-in-unload.html makes the following test crash
https://bugs.webkit.org/show_bug.cgi?id=98345
<rdar://problem/12474923>

Reviewed by Ryosuke Niwa.

Source/WebCore:

m_documentLoader can become null in the middle of
FrameLoader::commitProvisionalLoad by stopping the loading.

No new tests (Covered by existing tests).

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::commitProvisionalLoad): Do null check of m_documentLoader.

LayoutTests:

  • platform/wk2/TestExpectations: Unskipped fast/parser/document-open-in-unload.html.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r233413 r233414  
     12018-07-01  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WK2] fast/parser/document-open-in-unload.html makes the following test crash
     4        https://bugs.webkit.org/show_bug.cgi?id=98345
     5        <rdar://problem/12474923>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        * platform/wk2/TestExpectations: Unskipped fast/parser/document-open-in-unload.html.
     10
    1112018-07-01  Myles C. Maxfield  <mmaxfield@apple.com>
    212
  • trunk/LayoutTests/platform/wk2/TestExpectations

    r233205 r233414  
    157157
    158158webkit.org/b/105952 fast/loader/submit-form-while-parsing-2.html [ Pass Failure ]
    159 
    160 # Causes next test to crash only on WebKit2
    161 webkit.org/b/98345 fast/parser/document-open-in-unload.html [ Skip ]
    162159
    163160webkit.org/b/141122 editing/selection/programmatic-selection-on-mac-is-directionless.html [ Pass Failure ]
  • trunk/Source/WebCore/ChangeLog

    r233413 r233414  
     12018-07-01  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WK2] fast/parser/document-open-in-unload.html makes the following test crash
     4        https://bugs.webkit.org/show_bug.cgi?id=98345
     5        <rdar://problem/12474923>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        m_documentLoader can become null in the middle of
     10        FrameLoader::commitProvisionalLoad by stopping the loading.
     11
     12        No new tests (Covered by existing tests).
     13
     14        * loader/FrameLoader.cpp:
     15        (WebCore::FrameLoader::commitProvisionalLoad): Do null check of m_documentLoader.
     16
    1172018-07-01  Myles C. Maxfield  <mmaxfield@apple.com>
    218
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r233387 r233414  
    20122012        m_frame.document() ? m_frame.document()->url().stringCenterEllipsizedToLength().utf8().data() : "");
    20132013
    2014     if (m_loadType == FrameLoadType::Standard && m_documentLoader->isClientRedirect())
     2014    if (m_loadType == FrameLoadType::Standard && m_documentLoader && m_documentLoader->isClientRedirect())
    20152015        history().updateForClientRedirect();
    20162016
Note: See TracChangeset for help on using the changeset viewer.