mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Forget frame selection when changing documents
The old selection is obviously not relevant in the new document.
This commit is contained in:
parent
8de743a878
commit
c67b45aa1f
Notes:
sideshowbarker
2024-07-19 01:48:00 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c67b45aa1f5
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ void Frame::set_document(DOM::Document* document)
|
|||
if (m_document == document)
|
||||
return;
|
||||
|
||||
m_cursor_position = {};
|
||||
|
||||
if (m_document)
|
||||
m_document->detach_from_frame({}, *this);
|
||||
|
||||
|
|
Loading…
Reference in a new issue