mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Ladybird: Don't prepend 'about:' urls with an http:// scheme
This commit is contained in:
parent
4f36893fda
commit
5e89773937
Notes:
sideshowbarker
2024-07-17 01:30:14 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/5e89773937 Pull-request: https://github.com/SerenityOS/serenity/pull/16886 Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ void Tab::focus_location_editor()
|
|||
|
||||
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;
|
||||
view().load(ak_deprecated_string_from_qstring(url));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue