Using a `<select>` means that the context menu will appear in the same place no matter where the icon is clicked, but that is not needed, so just use a `WI.ContextMenu` instead (it's also simpler).
Created attachment 402518 [details] Patch
Committed r263376: <https://trac.webkit.org/changeset/263376> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402518 [details].
<rdar://problem/64614336>
From the accessibility point, I think we should go the exact opposite way - use <select> elements instead of WI.ContextMenu on <div> elements whenever possible. In VoiceOver, when simulating a click by pressing Cmd-Shift-Ctrl-Option-Space, the context menu is shown as expected, but it isn't immediately focused. Also, with this patch, the filter icon is no longer tab-focusable.