Post

Replies

Boosts

Views

Activity

tabs.query only returns tabs with urls to which the user granted access - unlike on Chrome & Firefox
Hi there, I am in the process of porting my Chrome / Firefox Extension »Tab Ahead« to Safari. The source-code is on https://github.com/janraasch/tab-ahead Using "xcrun safari-web-extension-converter" I was able to get a nice Xcode Project and the extension works. I did find one difference in behavior though: The extension uses tabs.query to retrieve a list of all tabs. On Chrome & Firefox setting the "permissions" to ["tabs"] in the manifest.json does the trick. On Safari there are two issues: Every time time the user clicks the pop-up on a page they did not previously grant permission to access they are asked for permission. And, tabs.query only returns tabs with urls the user previously granted access to. I did solve this by also asking for the "<all_urls>"-permission, but that makes it seem like my extension does all kinds of things :-) or at least it could do all kinds of things, but really it does absolutely nothing on any page. It's only about the urls and titles of open tabs. Maybe I am overlooking something, but this does seem overly restrictive for any "tabs management"-extension and also this is misleading to the user of any such extension - I think. Let me know, if there is another way to make tabs.query work the way it does on Chrome & Firefox. Kind regards, Jan PS: I am running this on Safari Version 14.0 (15610.1.28.1.7, 15610) Also, I posted this as feedback as well. The ID is FB8705146.
4
0
1.9k
Sep ’20