Don't show the combined menu if there are no services available
[WebKit-https.git] / Source / WebKit2 / WebProcess / WebPage / mac / ServicesOverlayController.mm
index 6004b8ad4f80947751dd4fe149a301762f4023bf..098b579ac518e23a4487f9a85a5891a921592e55 100644 (file)
@@ -589,8 +589,8 @@ void ServicesOverlayController::determineActiveHighlight(bool& mouseIsOverActive
             if (newActiveHighlight && newActiveHighlight->type() == Highlight::Type::TelephoneNumber)
                 continue;
 
-            // If this highlight has no compatible services, it can't be active, unless we have telephone number highlights to show in the combined menu.
-            if (telephoneNumberRangesForFocusedFrame().isEmpty() && !hasRelevantSelectionServices())
+            // If this highlight has no compatible services, it can't be active.
+            if (!hasRelevantSelectionServices())
                 continue;
         }