| Summary: | Implement persistent notification handling | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||||
| Component: | Service Workers | Assignee: | youenn fablet <youennf> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | achristensen, annulen, beidson, cdumez, ews-watchlist, gyuyoung.kim, nham, ryuan.choi, sergio, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
youenn fablet
2022-03-29 02:31:16 PDT
Created attachment 456009 [details]
Patch
Created attachment 456014 [details]
Patch
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 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 Created attachment 456104 [details]
Patch for landing
> > 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.
Created attachment 456114 [details]
Patch for landing
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]. |