Bug 237511

Summary: Permission: Implement "set permission"
Product: WebKit Reporter: Marcos Caceres <marcos>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: https://www.w3.org/TR/permissions/#automation

Description Marcos Caceres 2022-03-06 23:09:29 PST
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).
Comment 1 Marcos Caceres 2022-03-06 23:12:23 PST
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
Comment 2 Radar WebKit Bug Importer 2022-03-10 10:20:25 PST
<rdar://problem/90106703>
Comment 3 Sam Sneddon [:gsnedders] 2022-10-13 07:11:30 PDT

*** This bug has been marked as a duplicate of bug 192978 ***