- From: Marcos Cáceres <notifications@github.com>
- Date: Mon, 16 Nov 2026 21:09:05 -0800
- To: w3c/push-api <push-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 17 November 2026 05:09:09 UTC
marcoscaceres left a comment (w3c/push-api#439)
@saschanaz, a question about Gecko after this change. The spec's `PushEventInit` declares `PushMessageDataInit? data = null` ([IDL](https://github.com/w3c/push-api/blob/6947efd/index.html#L1743-L1746)), so [`{data: null}` means no data](https://github.com/w3c/push-api/blob/6947efd/index.html#L1756). Gecko declares `PushMessageDataInit data;` ([PushEvent.webidl](https://github.com/mozilla-firefox/firefox/blob/41db707342feaa6722e4a2076a24ec3d01fe96d2/dom/webidl/PushEvent.webidl#L20-L22)), and the constructor tests `aOptions.mData.WasPassed()` ([ServiceWorkerEvents.cpp](https://github.com/mozilla-firefox/firefox/blob/41db707342feaa6722e4a2076a24ec3d01fe96d2/dom/serviceworkers/ServiceWorkerEvents.cpp#L1187-L1189)). By my reading of Web IDL, an explicit `null` there converts to the string "null". I have not run it in Firefox. Could you confirm that reading? If it holds, would Gecko change the member to nullable with a null default, as in the spec?
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/439#issuecomment-6939115729
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/push-api/pull/439/c6939115729@github.com>
Received on Tuesday, 17 November 2026 05:09:09 UTC