1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 12:07:35 +00:00

LibWeb: InProcessWebView::selected_text() should use the focused frame

This commit is contained in:
Andreas Kling 2020-08-21 18:58:21 +02:00
parent 684fa0f99b
commit 7eeecbc0f3

View file

@ -115,8 +115,7 @@ void InProcessWebView::select_all()
String InProcessWebView::selected_text() const String InProcessWebView::selected_text() const
{ {
// FIXME: Use focused frame return page().focused_frame().selected_text();
return page().main_frame().selected_text();
} }
void InProcessWebView::page_did_layout() void InProcessWebView::page_did_layout()