Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2384483004: Handling new frames and frame navigations with find-in-page during a find session. (Closed)
Patch Set: Fix. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/public/web/WebFindOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 2fe90bb6b3b9d7e53f4091b9e7ca35d99aeef42a..b62575e29fe8ab768c1f2d3e8170cf455b6c19ce 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1979,7 +1979,7 @@ void WebLocalFrameImpl::didCallIsSearchProviderInstalled()
void WebLocalFrameImpl::requestFind(int identifier, const WebString& searchText, const WebFindOptions& options)
{
// Send "no results" if this frame has no visible content.
- if (!hasVisibleContent()) {
+ if (!hasVisibleContent() && !options.force) {
client()->reportFindInPageMatchCount(identifier, 0 /* count */, true /* finalUpdate */);
return;
}
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/public/web/WebFindOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698