Closed Bug 1196097 Opened 9 years ago Closed 1 month ago

Use SameObject for source attribute of ServiceWorkerMessageEvent interface

Categories

(Core :: DOM: Service Workers, defect, P3)

All
Unspecified
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox43 --- affected

People

(Reporter: dimi, Unassigned)

References

(Blocks 1 open bug)

Details

https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#serviceworkermessage-event-section
the |source| attribute of ServiceWorkerMessageEvent interface defined in spec is:
[SameObject] readonly attribute (ServiceWorker or MessagePort)? source;

But for now if we try to use |SameObject| over union type attribute, it will show "An attribute with [SameObject] must have an interface type as its type" build error.
We should use |SameObject| once IDL spec is changed.
Depends on: 1143717
Priority: -- → P3
Severity: normal → S3

In bug 1311324 we removed ServiceWorkerMessageEvent in respond to it being merged into HTML's MessageEvent by https://github.com/w3c/ServiceWorker/issues/989 (fix commit https://github.com/w3c/ServiceWorker/commit/8538a55d5eaa2f16fdaabffa23b9fc2bc0e302a5). HTML does not specify the source is SameObject at this time.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.