Changeset 244670 in webkit


Ignore:
Timestamp:
Apr 25, 2019 5:17:23 PM (5 years ago)
Author:
Chris Dumez
Message:

Trying to load a main resource outside the sandbox should not crash the WebContent process
https://bugs.webkit.org/show_bug.cgi?id=197299
<rdar://problem/49808042>

Reviewed by Geoffrey Garen.

Trying to load a main resource outside the sandbox should not crash the WebContent process. We should
simply ignore the load and log an error message.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::decidePolicyForNavigationAction):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244667 r244670  
     12019-04-25  Chris Dumez  <cdumez@apple.com>
     2
     3        Trying to load a main resource outside the sandbox should not crash the WebContent process
     4        https://bugs.webkit.org/show_bug.cgi?id=197299
     5        <rdar://problem/49808042>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        Trying to load a main resource outside the sandbox should not crash the WebContent process. We should
     10        simply ignore the load and log an error message.
     11
     12        * UIProcess/WebPageProxy.cpp:
     13        (WebKit::WebPageProxy::decidePolicyForNavigationAction):
     14
    1152019-04-25  Timothy Hatcher  <timothy@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r244633 r244670  
    45424542        m_pageLoadState.clearPendingAPIRequestURL(transaction);
    45434543
    4544     MESSAGE_CHECK_URL(process, request.url());
     4544    if (!checkURLReceivedFromCurrentOrPreviousWebProcess(process, request.url())) {
     4545        RELEASE_LOG_ERROR_IF_ALLOWED(Process, "Ignoring request to load this main resource because it is outside the sandbox");
     4546        sender->send(PolicyAction::Ignore, 0, DownloadID(), WTF::nullopt);
     4547        return;
     4548    }
     4549
    45454550    MESSAGE_CHECK_URL(process, originalRequest.url());
    45464551
Note: See TracChangeset for help on using the changeset viewer.