[Webkit-unassigned] [Bug 260771] REGRESSION(2.42): PDF "Save" button does nothing, "Print" function also broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 28 15:41:37 PDT 2023


--- Comment #5 from Michael Catanzaro <mcatanzaro at redhat.com> ---
Hey Anne, this is really simple but fixes the bug. Does it look OK?

diff --git a/Source/WebCore/page/SecurityOrigin.cpp b/Source/WebCore/page/SecurityOrigin.cpp
index 605e0523d462..bdeba62901d8 100644
--- a/Source/WebCore/page/SecurityOrigin.cpp
+++ b/Source/WebCore/page/SecurityOrigin.cpp
@@ -178,6 +178,7 @@ inline bool isSafelistedBlobProtocol(const URL& url)
     // except that assert gets hit on certain tests.
     return url.protocolIsInHTTPFamily()
         || url.protocolIsFile()
+        || url.protocol() == "webkit-pdfjs-viewer"_s
         || LegacySchemeRegistry::schemeIsHandledBySchemeHandler(url.protocol());

I'm thinking that's even correct rather than a hack. Will propose a pull request tomorrow probably.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230928/d40a7944/attachment.htm>

More information about the webkit-unassigned mailing list