1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:27:45 +00:00

Browser: Append .com when pressing CTRL+Enter in the URL text editor

This is the behavior in Firefox / Chrome.
This commit is contained in:
Rok Povsic 2022-03-19 12:10:38 +01:00 committed by Andreas Kling
parent 7da0d94d03
commit 5bb5967259
2 changed files with 38 additions and 6 deletions

View file

@ -94,6 +94,13 @@ private:
void view_source(const URL& url, const String& source);
void update_status(Optional<String> text_override = {}, i32 count_waiting = 0);
enum class MayAppendTLD {
No,
Yes
};
Optional<URL> url_from_location_bar(MayAppendTLD = MayAppendTLD::No);
History m_history;
RefPtr<Web::OutOfProcessWebView> m_web_content_view;