Title: [281235] trunk/Source/WebKit
Revision
281235
Author
[email protected]
Date
2021-08-19 06:05:50 -0700 (Thu, 19 Aug 2021)

Log Message

Unable to load downloaded HTML files in Safari
https://bugs.webkit.org/show_bug.cgi?id=229254
<rdar://problem/82051114>

Reviewed by Brent Fulgham.

Check quarantine bits for webarchive files only.

* UIProcess/Cocoa/WebPageProxyCocoa.mm:
(WebKit::WebPageProxy::isQuarantinedAndNotUserApproved):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (281234 => 281235)


--- trunk/Source/WebKit/ChangeLog	2021-08-19 12:57:59 UTC (rev 281234)
+++ trunk/Source/WebKit/ChangeLog	2021-08-19 13:05:50 UTC (rev 281235)
@@ -1,5 +1,18 @@
 2021-08-19  Kate Cheney  <[email protected]>
 
+        Unable to load downloaded HTML files in Safari
+        https://bugs.webkit.org/show_bug.cgi?id=229254
+        <rdar://problem/82051114>
+
+        Reviewed by Brent Fulgham.
+
+        Check quarantine bits for webarchive files only.
+
+        * UIProcess/Cocoa/WebPageProxyCocoa.mm:
+        (WebKit::WebPageProxy::isQuarantinedAndNotUserApproved):
+
+2021-08-19  Kate Cheney  <[email protected]>
+
         [App Privacy Report] Some HTTP Redirects from non app initiated requests are marked app initiated
         https://bugs.webkit.org/show_bug.cgi?id=229202
         <rdar://problem/79467871>

Modified: trunk/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm (281234 => 281235)


--- trunk/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm	2021-08-19 12:57:59 UTC (rev 281234)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm	2021-08-19 13:05:50 UTC (rev 281235)
@@ -724,6 +724,9 @@
 #if PLATFORM(MAC)
 bool WebPageProxy::isQuarantinedAndNotUserApproved(const String& fileURLString)
 {
+    if (!fileURLString.endsWithIgnoringASCIICase(".webarchive"))
+        return false;
+
     NSURL *fileURL = [NSURL URLWithString:fileURLString];
     qtn_file_t qf = qtn_file_alloc();
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to