OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#serviceworke rmessage-event-interface | |
6 | |
7 [ | |
8 Constructor(DOMString type, optional ServiceWorkerMessageEventInit eventInit Dict), | |
9 Exposed=(Window, Worker), | |
10 RuntimeEnabled=ServiceWorker, | |
11 ] interface ServiceWorkerMessageEvent : Event { | |
12 readonly attribute DOMString origin; | |
13 readonly attribute DOMString lastEventId; | |
14 readonly attribute (ServiceWorker or MessagePort)? source; | |
15 [Custom=Getter] readonly attribute any data; | |
falken
2015/06/25 03:49:35
Can you put these in the same order as the spec, f
xiang
2015/06/29 02:32:24
Done.
| |
16 readonly attribute MessagePort[] ports; | |
falken
2015/06/25 03:49:35
The spec is "MessagePort[]?"
haraken
2015/06/25 04:18:49
Can we add a test for this?
xiang
2015/06/29 02:32:24
Done.
xiang
2015/06/29 02:32:24
The fast/events/constructors/serviceworker-message
| |
17 }; | |
OLD | NEW |