Bug 225711

Summary: Simplify / Modernize Notification permission implementation
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, berto, cgarcia, ews-watchlist, ggaren, gustavo, kkinnunen, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225701
Bug Depends on:    
Bug Blocks: 225712    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Description Chris Dumez 2021-05-12 12:06:03 PDT
Simplify / Modernize Notification permission implementation.
Comment 1 Chris Dumez 2021-05-12 12:10:17 PDT
Created attachment 428400 [details]
Patch
Comment 2 EWS Watchlist 2021-05-12 12:11:10 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Chris Dumez 2021-05-12 12:50:27 PDT
Created attachment 428403 [details]
Patch
Comment 4 Alex Christensen 2021-05-12 12:51:56 PDT
Comment on attachment 428403 [details]
Patch

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

> Source/WebKit/UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:38
> +void NotificationPermissionRequestManagerProxy::invalidateRequests()

Now that we're using sendWithAsyncReply, I think we might not need this any more.  We might be able to completely remove the NotificationPermissionRequestManagerProxy.
Comment 5 Chris Dumez 2021-05-12 12:52:40 PDT
(In reply to Alex Christensen from comment #4)
> Comment on attachment 428403 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=428403&action=review
> 
> > Source/WebKit/UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:38
> > +void NotificationPermissionRequestManagerProxy::invalidateRequests()
> 
> Now that we're using sendWithAsyncReply, I think we might not need this any
> more.  We might be able to completely remove the
> NotificationPermissionRequestManagerProxy.

Oh. I may be even to drop more code then. Let me check :D
Comment 6 Chris Dumez 2021-05-12 13:11:29 PDT
Created attachment 428407 [details]
Patch
Comment 7 Chris Dumez 2021-05-12 13:18:21 PDT
Created attachment 428409 [details]
Patch
Comment 8 Chris Dumez 2021-05-12 13:30:54 PDT
Created attachment 428410 [details]
Patch
Comment 9 EWS 2021-05-12 17:31:49 PDT
Committed r277414 (237664@main): <https://commits.webkit.org/237664@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 428410 [details].
Comment 10 Radar WebKit Bug Importer 2021-05-12 17:32:19 PDT
<rdar://problem/77941877>