Bug 238498 - Implement persistent notification handling
Summary: Implement persistent notification handling
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-29 02:31 PDT by youenn fablet
Modified: 2022-03-30 11:41 PDT (History)
10 users (show)

See Also:


Attachments
Patch (74.13 KB, patch)
2022-03-29 02:52 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (74.33 KB, patch)
2022-03-29 04:19 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (78.26 KB, patch)
2022-03-30 02:33 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (77.37 KB, patch)
2022-03-30 05:21 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2022-03-29 02:31:16 PDT
Implement persistent notification handling
Comment 2 Radar WebKit Bug Importer 2022-03-29 02:33:46 PDT
<rdar://problem/90972545>
Comment 3 youenn fablet 2022-03-29 02:52:25 PDT
Created attachment 456009 [details]
Patch
Comment 4 youenn fablet 2022-03-29 04:19:42 PDT
Created attachment 456014 [details]
Patch
Comment 5 youenn fablet 2022-03-29 13:07:01 PDT
Comment on attachment 456014 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456014&action=review

> Source/WebCore/Modules/notifications/Notification.cpp:69
> +    notification->showSoon();

Looking at it again, calling showSoon should be removed. Probably worth moving showSoon call out of the Notification::create object.
Comment 6 Brady Eidson 2022-03-29 13:19:12 PDT
Comment on attachment 456014 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456014&action=review

>> Source/WebCore/Modules/notifications/Notification.cpp:69
>> +    notification->showSoon();
> 
> Looking at it again, calling showSoon should be removed. Probably worth moving showSoon call out of the Notification::create object.

Definitely should be: In this case we're not showing it.

Agree with the refactor.

> Source/WebKit/NetworkProcess/NetworkProcess.cpp:2332
>  
> +

stray newline
Comment 7 youenn fablet 2022-03-30 02:33:19 PDT
Created attachment 456104 [details]
Patch for landing
Comment 8 youenn fablet 2022-03-30 03:06:46 PDT
> > Looking at it again, calling showSoon should be removed. Probably worth moving showSoon call out of the Notification::create object.
> 
> Definitely should be: In this case we're not showing it.
> 
> Agree with the refactor.

I needed to do a few more refactoring since now we are not reusing the already created Notification object but a new one that should have a matching identifier.
Comment 9 youenn fablet 2022-03-30 05:21:45 PDT
Created attachment 456114 [details]
Patch for landing
Comment 10 EWS 2022-03-30 11:41:33 PDT
Committed r292110 (249029@main): <https://commits.webkit.org/249029@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456114 [details].