summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-21 18:58:21 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-21 18:58:21 +0200
commit7eeecbc0f3c7f27f559cfc968a7973f42316c3b9 (patch)
treeb7be6b4c04072c70a52a6261b33ffc23a1fe57fb
parent684fa0f99b12e79eb95907b53498d09c95f1f1d9 (diff)
downloadserenity-7eeecbc0f3c7f27f559cfc968a7973f42316c3b9.zip
LibWeb: InProcessWebView::selected_text() should use the focused frame
-rw-r--r--Libraries/LibWeb/InProcessWebView.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Libraries/LibWeb/InProcessWebView.cpp b/Libraries/LibWeb/InProcessWebView.cpp
index 175abb5b6a..8b9c149b5d 100644
--- a/Libraries/LibWeb/InProcessWebView.cpp
+++ b/Libraries/LibWeb/InProcessWebView.cpp
@@ -115,8 +115,7 @@ void InProcessWebView::select_all()
String InProcessWebView::selected_text() const
{
- // FIXME: Use focused frame
- return page().main_frame().selected_text();
+ return page().focused_frame().selected_text();
}
void InProcessWebView::page_did_layout()