It would be nice if WebKit's web driver implementation implemented "set permission" as specified in: https://www.w3.org/TR/permissions/#automation This would (safely) facilitate testing a number of so called "powerful features" of the web platform that require permission to be granted before they can be used. ] As Chrome implements "set permission", there are already quite a few tests on WPT relying on it (creating false failures in WebKit for conformance purposes - for example, with the Geolocation API).
Just noting that this is exposed as test_driver.set_permission() on TestDriver. https://web-platform-tests.org/writing-tests/testdriver.html?highlight=set_permission#set-permission
<rdar://problem/90106703>
*** This bug has been marked as a duplicate of bug 192978 ***