mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.23k stars 22.5k forks source link

Safari `background` support for pages and scripts #35630

Open karlcow opened 2 months ago

karlcow commented 2 months ago

MDN URL

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background

What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background#browser_support

What information was incorrect, unhelpful, or incomplete?

In https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background#browser_support

Safari:

What did you expect to see?

Safari 18 prefers scripts and page over service_worker if both / all are provided.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/mozilla/add-ons/webextensions/manifest.json/background` * MDN URL: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/mozilla/add-ons/webextensions/manifest.json/background/index.md * Last commit: https://github.com/mdn/content/commit/51ddae7fc3de3712eef57434f8fc85c1e10bc67b * Document last modified: 2023-11-24T19:24:58.000Z
xeenon commented 2 months ago

Relevant WebKit commit.

Safari 18 also supports preferred_environment, which gives extensions control over this. More details here.

Josh-Cena commented 2 months ago

FYI: the section you quoted starts with this:

Report problems with this compatibility data on GitHub

And you should use that link instead, because it takes you to a different repo.

karlcow commented 2 months ago

hi @Josh-Cena The issue is about the section https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background#browser_support

not https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background#browser_compatibility which is the one you are talking about. ❤️

Josh-Cena commented 2 months ago

Ah I see. TBH this kind of data usually lives in BCD, but this is WebExt docs so I'll peace out. Thanks for pointing out!