mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07: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:
parent
7da0d94d03
commit
5bb5967259
2 changed files with 38 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue