Expose Worker interfaces only to Worker

See #12415.
This commit is contained in:
Johann Hofmann 2016-07-15 11:17:30 +02:00
parent 6bb5d0e846
commit bad529a0f7
No known key found for this signature in database
GPG key ID: 15DD943556C9CC16
6 changed files with 7 additions and 18 deletions

View file

@ -4,7 +4,8 @@
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-global-scope
[Global=(Worker,ServiceWorker), Pref="dom.serviceworker.enabled"]
[Global=(Worker,ServiceWorker), Exposed=ServiceWorker,
Pref="dom.serviceworker.enabled"]
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
// A container for a list of Client objects that correspond to
// browsing contexts (or shared workers) that are on the origin of this SW