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

Changeset 242376 in webkit


Ignore:
Timestamp:
Mar 4, 2019, 12:39:33 PM (7 years ago)
Author:
beidson@apple.com
Message:

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.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r242375 r242376  
     12019-03-04  Brady Eidson  <beidson@apple.com>
     2
     3        Correctly handle sandbox extensions when the same WKWebView loads multiple file:// URLs.
     4        <rdar://problem/47820581> and https://bugs.webkit.org/show_bug.cgi?id=195291
     5
     6        Reviewed by Andy Estes.
     7
     8        * WebProcess/WebPage/WebPage.cpp:
     9        (WebKit::shouldReuseCommittedSandboxExtension): Only retain the previous sandbox extension if the file URL
     10          we're currently loading is functionally equivalent to the previous one.
     11
    1122019-03-04  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r242375 r242376  
    44134413        return false;
    44144414
    4415     if (documentLoader->url().isLocalFile() && provisionalDocumentLoader->url().isLocalFile())
     4415    if (documentLoader->url().isLocalFile() && provisionalDocumentLoader->url().isLocalFile() && equalIgnoringQueryAndFragment(documentLoader->url(), provisionalDocumentLoader->url()))
    44164416        return true;
    44174417
Note: See TracChangeset for help on using the changeset viewer.