Callback with error if doc is not fully active by marcoscaceres · Pull Request #97 · w3c/geolocation (original) (raw)

Thanks @reillyeon! And I again have to give a huge shout out to @rakina and co. for producing that TAG guide and for her guidance - and to @saschanaz for a super detailed review over on the Gecko side, who caught the potential issue when used with promises.

I'll see if I can create a WPT test. The challenge I've been facing is that the page requires permission to use the API. But I'll see if Webdriver, via WPT, lets me grant a page permission to use the API... Oh! might be in luck!

await test_driver.set_permission({name: 'geolocation'}, 'granted');

Re non fully active in general: yeah, I've been finding really weird behavior... not sure if you are following the Permission's one, where (unsurprisingly) Chrome and Firefox are producing different results:

w3c/permissions#162 (comment)

These are a lot of fun to work on tho! So please ping if there are other APIs that could use a look over.