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

Browser: add urls to browser history on load start

urls were previously added to history in the Tab::load()
function, which excluded the setter on window.location.href.
This commit adds all urls to browser history when the page loads,
as long as the load_type is not LoadType::HistoryNavigation.
Closes #3148
This commit is contained in:
Jake Wilson 2020-08-18 23:34:28 -04:00 committed by Andreas Kling
parent f503d3c046
commit 0f6de0c45a
2 changed files with 9 additions and 2 deletions

View file

@ -109,6 +109,8 @@ private:
String m_title;
RefPtr<const Gfx::Bitmap> m_icon;
bool m_is_history_navigation { false };
};
URL url_from_user_input(const String& input);