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()