web-platform-tests / rfcs

web-platform-tests RFCs
74 stars 63 forks source link

Support `test_driver.set_permission()` inside `.any.js` (for workers) #197

Open saschanaz opened 1 month ago

saschanaz commented 1 month ago

test_driver is only designed to work on the window context. Which is fine as many webdriver commands like moving pointers only makes sense there, but set_permission is often required also for workers to enable certain features there, e.g. service worker-specific showNotification() behind notification permission.

Perhaps we can: