The function webkit_web_view_has_selection returns the exact opposite of the expected result.
Created attachment 18144 [details] Invert the return value.
Comment on attachment 18144 [details] Invert the return value. r=me
Landed in r29013.