mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Ladybird: Default to HTTPS instead of HTTP if no protocol is specified
This commit is contained in:
parent
e2c72922f6
commit
1a1ff8eb5e
2 changed files with 2 additions and 2 deletions
|
@ -468,7 +468,7 @@ void Tab::focus_location_editor()
|
|||
void Tab::navigate(QString url, LoadType load_type)
|
||||
{
|
||||
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 = "https://" + url;
|
||||
m_is_history_navigation = (load_type == LoadType::HistoryNavigation);
|
||||
view().load(ak_deprecated_string_from_qstring(url));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue