Bug 297907
| Summary: | Declarative Web Push Crashes Safari using blog example | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | willian |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | Safari 18 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 15 | ||
willian
Safari crashs after sending a declarative web push as the example from https://webkit.org/blog/16535/meet-declarative-web-push/
```js
{
"web_push": 8030,
"notification": {
"title": "Webkit.org — Meet Declarative Web Push",
"lang": "en-US",
"dir": "ltr",
"body": "Send push notifications without JavaScript or service worker!",
"navigate": "https://webkit.org/blog/16535/meet-declarative-web-push/",
"silent": false,
"app_badge": "1"
}
}
```
removing `"app_badge": "1"` solves the issue.
macOS 15.6 (24G84), Safari Version 18.6 (20621.3.11.11.3)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Thank you for the report! This is a known issue being investigated outside WebKit, bug 296773.
Secondly, I think that the example is now obsolete, see bug 293457 (that change is not in Safari 18.6 though, it went into Safari 26). Regardless, crashing is not OK.
*** This bug has been marked as a duplicate of bug 296773 ***