+2014-08-12 Tim Horton <timothy_horton@apple.com>
+
+ Don't show the combined menu if there are no services available
+ https://bugs.webkit.org/show_bug.cgi?id=135846
+ <rdar://problem/17582099>
+
+ Reviewed by Enrica Casucci.
+
+ * WebProcess/WebPage/ServicesOverlayController.h:
+ Add a FIXME.
+
+ * WebProcess/WebPage/mac/ServicesOverlayController.mm:
+ (WebKit::ServicesOverlayController::determineActiveHighlight):
+ Don't allow a selection Highlight to become active if there is no
+ service available to handle it. Previously we showed the combined menu
+ with just phone numbers in it if any were detected.
+
2014-08-12 Tim Horton <timothy_horton@apple.com>
Add a fade transition to services highlights
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;
}