Skip to content

Safari 18.4 SponsorBlock asks for permission #2227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TheFritz89 opened this issue Mar 25, 2025 · 20 comments
Open

Safari 18.4 SponsorBlock asks for permission #2227

TheFritz89 opened this issue Mar 25, 2025 · 20 comments

Comments

@TheFritz89
Copy link

On almost every website i visit, SponsorBlock asks for permission.

Image

Is it possible to add something like this in the settings:

Image
@ajayyy
Copy link
Owner

ajayyy commented Mar 25, 2025

This is a very odd change that Safari made. It is not supposed to treat the optional permissions like this

@ajayyy
Copy link
Owner

ajayyy commented Mar 26, 2025

I think this is a bug that needs to be reported to apple before this version is rolled out to stable versions

I tried switching to manifest v3 and using the new fields for optional host permissions and the same issue is still happening

@ajayyy
Copy link
Owner

ajayyy commented Mar 26, 2025

I sent a report https://bugs.webkit.org/show_bug.cgi?id=290508

It looks like it only happens on version 18.4 beta

@ajayyy
Copy link
Owner

ajayyy commented Mar 27, 2025

So what I've determined is the bug seems to be occurring whenever a page tries to send a post request in the background (usually for analytics), and then for some reason Safari tries to get you to give permission to SponsorBlock to access it, even though SponsorBlock does not ask for it.

I don't think there's anything I can do to fix this on the extension end. I tried running browser.permissions.remove and it still keeps happening.

@TheFritz89
Copy link
Author

Many thanks for your help. Hopefully Apple will do something about this bug.

@NathanielH-snek
Copy link

NathanielH-snek commented Mar 30, 2025

Can you not enable the ability to set defaults for “other websites”? Most other safari extensions allow you to set it to deny websites that are not explicitly assigned a rule.

Image

@ajayyy
Copy link
Owner

ajayyy commented Mar 30, 2025

@NathanielH-snek That toggle only appears if the extension always asks for access to all sites. It will show even more popups in this case.

@stevenya97
Copy link

stevenya97 commented Mar 31, 2025

Getting a SponsorBlock permisssion request for ogads-pa.clients6.google.com on macOS 15.4 release, Safari 18.4. Looks like this bug made it to release?

Edit: DeArrow asks it as well

ajayyy added a commit that referenced this issue Mar 31, 2025
@ajayyy
Copy link
Owner

ajayyy commented Mar 31, 2025

I published an update (5.11.10) that removes the optional permissions. This means that Invidious support now is removed on Safari. Hopefully Apple fixes the bug soon and Invidious support can be added back

@Capedbitmap
Copy link

I published an update (5.11.10) that removes the optional permissions. This means that Invidious support now is removed on Safari. Hopefully Apple fixes the bug soon and Invidious support can be added back

I'm still getting permission requests with 5.11.10 :(

@h3man1
Copy link

h3man1 commented Apr 2, 2025

Having the same issue since updating to MacOS 15.4 Safari 18.4.
Running version 5.11.10 of SponsorBlock.

@ajayyy
Copy link
Owner

ajayyy commented Apr 2, 2025

Looks like I forgot to commit the actual change the removes the permission in SponsorBlock, it was only in DeArrow, sorry about that!

I am publishing 5.11.11 now

@duramson
Copy link

duramson commented Apr 7, 2025

It is still 5.11.10 in App Store. How long does it usually take until release?

@ajayyy
Copy link
Owner

ajayyy commented Apr 7, 2025

Looks like the macOS version was published but I forgot to hit "submit for review".... Fixed

@daniel-stockhausen
Copy link

daniel-stockhausen commented Apr 8, 2025

Can anyone confirm, that they were asked for access to domains that are not related to advertising? I find it odd that Safari only asked me for access to amazon.de (which I use for shopping) and no other websites. Other people in this thread also only mentioned ad-related domains (criteo.com and ogads-pa.clients6.google.com). I also was not able to reproduce the supposed issue that it's "occurring whenever a page tries to send a post request in the background" (I used 5.11.10) - but maybe I'm missing something.

After what the PayPal Honey browser extension did (switching out affiliate codes without the user knowing before checkouts), this raised some eyebrows for me. But to be fair, it might just look suspicious.

Anyone got this for a domain that's certainly not ad- or shopping-related? (Besides statsigapi.net, featuregates.org and youtube-nocookie.com which the extension seems to use and probably are legitimate. Same for sponsor.ajay.app which hosts the server)

EDIT: Actually, now I'm wondering if statsigapi.net/featuregates.org is even from SponsorBlock or if that already is another example of some website using this in the background triggering the same webkit bug. It's just weird that I don't get the permission request when I visit https://dictionary.cambridge.org/dictionary/english/test (which is mentioned as example in the bug ticket)

@Capedbitmap
Copy link

Can anyone confirm, that they were asked for access to domains that are not related to advertising? I find it odd that Safari only asked me for access to amazon.de (which I use for shopping) and no other websites. Other people in this thread also only mentioned ad-related domains (criteo.com and ogads-pa.clients6.google.com). I also was not able to reproduce the supposed issue that it's "occurring whenever a page tries to send a post request in the background" (I used 5.11.10) - but maybe I'm missing something.

After what the PayPal Honey browser extension did (switching out affiliate codes without the user knowing before checkouts), this raised some eyebrows for me. But to be fair, it might just look suspicious.

Anyone got this for a domain that's certainly not ad- or shopping-related? (Besides statsigapi.net, featuregates.org and youtube-nocookie.com which the extension seems to use and probably are legitimate. Same for sponsor.ajay.app which hosts the server)

EDIT: Actually, now I'm wondering if statsigapi.net/featuregates.org is even from SponsorBlock or if that already is another example of some website using this in the background triggering the same webkit bug. It's just weird that I don't get the permission request when I visit https://dictionary.cambridge.org/dictionary/english/test (which is mentioned as example in the bug ticket)

I got it for twitter, openai, and anthropic analytics domains yesterday. It doesn't seem to be shopping related

@ajayyy
Copy link
Owner

ajayyy commented Apr 8, 2025

@daniel-stockhausen My understanding is it is any requests done in the javascript (which are usually going to be analytics domain)

There is no conspiracy, it is a Safari bug which I have reported. You can see my analysis here: https://bugs.webkit.org/show_bug.cgi?id=290508

@ajayyy
Copy link
Owner

ajayyy commented Apr 8, 2025

Also 5.11.11 should finally be up now on the app store

@fregante
Copy link

Safari 18.5 was just published, do you reckon it fixes the issue? The release notes don't mention it but I'm hopeful.

@ajayyy
Copy link
Owner

ajayyy commented May 13, 2025

@fregante I haven't received any updates on my bugzilla report. I have not tested it on the newer version of Safari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants