Correctly handle sandbox extensions when the same WKWebView loads multiple file:...
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / WebPage.cpp
index 96fc2df..c388281 100644 (file)
@@ -4412,7 +4412,7 @@ static bool shouldReuseCommittedSandboxExtension(WebFrame* frame)
     if (!documentLoader || !provisionalDocumentLoader)
         return false;
 
-    if (documentLoader->url().isLocalFile() && provisionalDocumentLoader->url().isLocalFile())
+    if (documentLoader->url().isLocalFile() && provisionalDocumentLoader->url().isLocalFile() && equalIgnoringQueryAndFragment(documentLoader->url(), provisionalDocumentLoader->url()))
         return true;
 
     return false;