From 729aae84379c2315d9e9f0a835cab9c9ebce1144 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Thu, 6 Jul 2023 15:26:59 +0200 Subject: [PATCH] Ladybird: Allow loading 'data:' URLs from a search bar --- Ladybird/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index 687d39f22e..aa33c7bb07 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -525,7 +525,7 @@ void Tab::navigate(QString url, LoadType load_type) { if (url.startsWith("/")) url = "file://" + url; - else if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive) && !url.startsWith("about:", Qt::CaseInsensitive)) + else if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive) && !url.startsWith("about:", Qt::CaseInsensitive) && !url.startsWith("data:", Qt::CaseInsensitive)) url = "https://" + url; m_is_history_navigation = (load_type == LoadType::HistoryNavigation); view().load(ak_deprecated_string_from_qstring(url));