diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-21 18:58:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-21 18:58:21 +0200 |
commit | 7eeecbc0f3c7f27f559cfc968a7973f42316c3b9 (patch) | |
tree | b7be6b4c04072c70a52a6261b33ffc23a1fe57fb | |
parent | 684fa0f99b12e79eb95907b53498d09c95f1f1d9 (diff) | |
download | serenity-7eeecbc0f3c7f27f559cfc968a7973f42316c3b9.zip |
LibWeb: InProcessWebView::selected_text() should use the focused frame
-rw-r--r-- | Libraries/LibWeb/InProcessWebView.cpp | 3 |
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() |