Skip to content

Document how "preferred_environment" and "scripts" interact in Safari #39297

@dotproto

Description

@dotproto

In Safari (18+) only, if preferred_environment is set to service_worker AND background.service_worker is absent AND background.scripts is present, then these scripts are all executed in a service worker context.

Originally posted by @Rob--W in #38635 (comment)


  • Update the Safari section of the Browser support section.
  • The last paragraph in the "preferred_environment" description needs to be clarified.

CC: @xeenon, @Rob--W, @rebloor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:WebExtWebExtensions docsgoal: completeness(Experiment label) Issues about content missing important/relevant details.goal: up-to-date(Experimental label) Issues about outdated content.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions