mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:17:45 +00:00
Ladybird: Don't prepend 'about:' urls with an http:// scheme
This commit is contained in:
parent
4f36893fda
commit
5e89773937
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ void Tab::focus_location_editor()
|
||||||
|
|
||||||
void Tab::navigate(QString url)
|
void Tab::navigate(QString url)
|
||||||
{
|
{
|
||||||
if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive))
|
if (!url.startsWith("http://", Qt::CaseInsensitive) && !url.startsWith("https://", Qt::CaseInsensitive) && !url.startsWith("file://", Qt::CaseInsensitive) && !url.startsWith("about:", Qt::CaseInsensitive))
|
||||||
url = "http://" + url;
|
url = "http://" + url;
|
||||||
view().load(ak_deprecated_string_from_qstring(url));
|
view().load(ak_deprecated_string_from_qstring(url));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue