Changeset 249142 in webkit


Ignore:
Timestamp:
Aug 27, 2019 9:08:48 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Do not clear the pending api request when there's no navigation ID
https://bugs.webkit.org/show_bug.cgi?id=201175

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-08-27
Reviewed by Chris Dumez.

After r247851, the pending API request URL is cleared for subresources in some cases.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didStartProvisionalLoadForFrameShared):
(WebKit::WebPageProxy::decidePolicyForNavigationAction):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r249138 r249142  
     12019-08-27  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Do not clear the pending api request when there's no navigation ID
     4        https://bugs.webkit.org/show_bug.cgi?id=201175
     5
     6        Reviewed by Chris Dumez.
     7
     8        After r247851, the pending API request URL is cleared for subresources in some cases.
     9
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::didStartProvisionalLoadForFrameShared):
     12        (WebKit::WebPageProxy::decidePolicyForNavigationAction):
     13
    1142019-08-27  Zan Dobersek  <zdobersek@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r249096 r249142  
    40104010    auto transaction = m_pageLoadState.transaction();
    40114011
    4012     m_pageLoadState.clearPendingAPIRequest(transaction);
     4012    if (navigation)
     4013        m_pageLoadState.clearPendingAPIRequest(transaction);
    40134014
    40144015    if (frame->isMainFrame()) {
     
    46584659
    46594660    bool fromAPI = request.url() == m_pageLoadState.pendingAPIRequestURL();
    4660     if (!fromAPI)
     4661    if (navigationID && !fromAPI)
    46614662        m_pageLoadState.clearPendingAPIRequest(transaction);
    46624663
Note: See TracChangeset for help on using the changeset viewer.