Geolocation is tested in the LayoutTests using a mock implementation of the Geolocation service. See Bug 28246. A test currently exists to test the failure case. See LayoutTests/fast/dom/Geolocation/error.html. In order to test the success case, and cases where the user denies permission, we need to be able to set Geolocation permission from the LayoutTests.
This blocks other Geolocation bugs that require testing.
Created attachment 39179 [details] Patch 1 for bug 29027 Implements a method to set the Geolocation permission state on Mac and adds corresponding tests.
Comment on attachment 39179 [details] Patch 1 for bug 29027 Seems like we might eventually need a per-origin version of this API to test the permission system in more detail, but this seems fine for now to unblock improvements to Geolocation. Thanks.
Comment on attachment 39179 [details] Patch 1 for bug 29027 Clearing flags on attachment: 39179 Committed r48156: <http://trac.webkit.org/changeset/48156>
All reviewed patches have been landed. Closing bug.