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 b87220317549301a2c971a87deec6e32280cda35..a25f18468d25aa36577b2affbaf1ed9588334a41 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1940,7 +1940,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) { |
dcheng
2016/09/21 07:15:44
Why do we want to force a research if the frame's
paulmeyer
2016/09/21 15:40:52
This is because hasVisibleContent() is not perfect
dcheng
2016/09/22 00:36:47
Hmm, what are the cases where it's wrong? Would it
paulmeyer
2016/09/22 15:11:42
Okay, I'll try to file a bug. It's been a while si
|
client()->reportFindInPageMatchCount(identifier, 0 /* count */, true /* finalUpdate */); |
return; |
} |