Changeset 186969 in webkit


Ignore:
Timestamp:
Jul 17, 2015 4:05:27 PM (9 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r186964): Crash in WebKit2.CloseFromWithinCreatePage
https://bugs.webkit.org/show_bug.cgi?id=147055

Reviewed by Alex Christensen.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::createNewPage): Grab the main frame’s URL before calling out to the
client, who may destroy the frame.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r186964 r186969  
     12015-07-17  Dan Bernstein  <mitz@apple.com>
     2
     3        REGRESSION (r186964): Crash in WebKit2.CloseFromWithinCreatePage
     4        https://bugs.webkit.org/show_bug.cgi?id=147055
     5
     6        Reviewed by Alex Christensen.
     7
     8        * UIProcess/WebPageProxy.cpp:
     9        (WebKit::WebPageProxy::createNewPage): Grab the main frame’s URL before calling out to the
     10        client, who may destroy the frame.
     11
    1122015-07-17  Dan Bernstein  <mitz@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r186964 r186969  
    35273527    MESSAGE_CHECK(frame);
    35283528
     3529    auto mainFrameURL = m_mainFrame->url();
     3530
    35293531    RefPtr<WebPageProxy> newPage = m_uiClient->createNewPage(this, frame, securityOriginData, request, windowFeatures, navigationActionData);
    35303532    if (!newPage) {
     
    35373539
    35383540    WebsiteDataStore::cloneSessionData(*this, *newPage);
    3539     newPage->m_shouldSuppressAppLinksInNextNavigationPolicyDecision = protocolHostAndPortAreEqual(URL(ParsedURLString, m_mainFrame->url()), request.url());
     3541    newPage->m_shouldSuppressAppLinksInNextNavigationPolicyDecision = protocolHostAndPortAreEqual(URL(ParsedURLString, mainFrameURL), request.url());
    35403542}
    35413543   
Note: See TracChangeset for help on using the changeset viewer.