<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>297907</bug_id>
          
          <creation_ts>2025-08-26 07:59:48 -0700</creation_ts>
          <short_desc>Declarative Web Push Crashes Safari using blog example</short_desc>
          <delta_ts>2025-08-26 08:23:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>Safari 18</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>296773</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>willian</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2138810</commentid>
    <comment_count>0</comment_count>
    <who name="">willian</who>
    <bug_when>2025-08-26 07:59:48 -0700</bug_when>
    <thetext>Safari crashs after sending a declarative web push as the example from https://webkit.org/blog/16535/meet-declarative-web-push/

```js
{
    &quot;web_push&quot;: 8030,
    &quot;notification&quot;: {
        &quot;title&quot;: &quot;Webkit.org — Meet Declarative Web Push&quot;,
        &quot;lang&quot;: &quot;en-US&quot;,
        &quot;dir&quot;: &quot;ltr&quot;,
        &quot;body&quot;: &quot;Send push notifications without JavaScript or service worker!&quot;,
        &quot;navigate&quot;: &quot;https://webkit.org/blog/16535/meet-declarative-web-push/&quot;,
        &quot;silent&quot;: false,
        &quot;app_badge&quot;: &quot;1&quot;
    }
}
```

removing `&quot;app_badge&quot;: &quot;1&quot;` solves the issue.


macOS 15.6 (24G84), Safari Version 18.6 (20621.3.11.11.3)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138820</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-08-26 08:23:05 -0700</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>