REGRESSION (r172424): Extra menu header in combined telephone number menu when no phone paired
https://bugs.webkit.org/show_bug.cgi?id=135854
<rdar://problem/
17996339>
Reviewed by Enrica Casucci.
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::setupServicesMenu):
Get all the menu items ahead of time, and only add the shared header
if there are any telephone number menu items.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172498
268f45cc-cd09-0410-ab3c-
d52691b4dbfc