⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242390 in webkit


Ignore:
Timestamp:
Mar 4, 2019, 1:59:09 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r242376. rdar://problem/47820581

Correctly handle sandbox extensions when the same WKWebView loads multiple file:// URLs.
<rdar://problem/47820581> and https://bugs.webkit.org/show_bug.cgi?id=195291

Reviewed by Andy Estes.

  • WebProcess/WebPage/WebPage.cpp: (WebKit::shouldReuseCommittedSandboxExtension): Only retain the previous sandbox extension if the file URL we're currently loading is functionally equivalent to the previous one.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242376 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
tags/Safari-608.1.7.1.1/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/Safari-608.1.7.1.1/Source/WebKit/ChangeLog

    r242082 r242390  
     12019-03-04  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r242376. rdar://problem/47820581
     4
     5    Correctly handle sandbox extensions when the same WKWebView loads multiple file:// URLs.
     6    <rdar://problem/47820581> and https://bugs.webkit.org/show_bug.cgi?id=195291
     7   
     8    Reviewed by Andy Estes.
     9   
     10    * WebProcess/WebPage/WebPage.cpp:
     11    (WebKit::shouldReuseCommittedSandboxExtension): Only retain the previous sandbox extension if the file URL
     12      we're currently loading is functionally equivalent to the previous one.
     13   
     14    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     15
     16    2019-03-04  Brady Eidson  <beidson@apple.com>
     17
     18            Correctly handle sandbox extensions when the same WKWebView loads multiple file:// URLs.
     19            <rdar://problem/47820581> and https://bugs.webkit.org/show_bug.cgi?id=195291
     20
     21            Reviewed by Andy Estes.
     22
     23            * WebProcess/WebPage/WebPage.cpp:
     24            (WebKit::shouldReuseCommittedSandboxExtension): Only retain the previous sandbox extension if the file URL
     25              we're currently loading is functionally equivalent to the previous one.
     26
    1272019-02-26  Philippe Normand <pnormand@igalia.com> and Carlos Garcia Campos  <cgarcia@igalia.com>
    228
  • tags/Safari-608.1.7.1.1/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r242082 r242390  
    44164416        return false;
    44174417
    4418     if (documentLoader->url().isLocalFile() && provisionalDocumentLoader->url().isLocalFile())
     4418    if (documentLoader->url().isLocalFile() && provisionalDocumentLoader->url().isLocalFile() && equalIgnoringQueryAndFragment(documentLoader->url(), provisionalDocumentLoader->url()))
    44194419        return true;
    44204420
Note: See TracChangeset for help on using the changeset viewer.