[Webkit-unassigned] [Bug 277204] REGRESSION [GTK][WPE] navigating to empty file:// URL ends up in download
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 12 14:53:32 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=277204
Max Schmitt <max at schmitt.mx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from Max Schmitt <max at schmitt.mx> ---
We added a workaround on our side in our embedder:
static gboolean response_policy_decision_can_show(WebKitResponsePolicyDecision *responseDecision)
{
if (webkit_response_policy_decision_is_mime_type_supported(responseDecision))
return TRUE;
const gchar* mimeType = webkit_uri_response_get_mime_type(webkit_response_policy_decision_get_response(responseDecision));
if (!mimeType || mimeType[0] == '\0')
return FALSE;
// https://bugs.webkit.org/show_bug.cgi?id=277204 / Ubuntu 24.04 / glib 2.76+ or higher
if (g_ascii_strcasecmp(mimeType, "application/x-zerosize") == 0)
return TRUE;
return FALSE;
}
--
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/20240912/06376681/attachment.htm>
More information about the webkit-unassigned
mailing list