RESOLVED FIXED 192473
WKWebProcessPlugInLoadDelegate should have API for saying which rendering events it wants to listen for
https://bugs.webkit.org/show_bug.cgi?id=192473
Summary WKWebProcessPlugInLoadDelegate should have API for saying which rendering eve...
Saam Barati
Reported 2018-12-06 13:08:32 PST
...
Attachments
patch (19.52 KB, patch)
2018-12-06 16:48 PST, Saam Barati
no flags
patch (19.52 KB, patch)
2018-12-06 17:32 PST, Saam Barati
aestes: review+
patch for landing (19.51 KB, patch)
2018-12-07 12:41 PST, Saam Barati
no flags
Saam Barati
Comment 1 2018-12-06 13:08:48 PST
(In reply to Saam Barati from comment #0) > ... Patch forthcoming
Saam Barati
Comment 2 2018-12-06 16:48:02 PST
Andy Estes
Comment 3 2018-12-06 16:53:24 PST
Comment on attachment 356765 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=356765&action=review > Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:56 > +- (_WKRenderingProgressEvents)getLayoutMilestonesWithWebProcessPlugInBrowserContextController:(WKWebProcessPlugInBrowserContextController*)controller; The layout milestones / rendering progress events terminology mismatch is a little strange here. But assuming you keep "layout milestones" term, the right name for this selector would be -webProcessPlugInBrowserContextControllerLayoutMilestones:.
Saam Barati
Comment 4 2018-12-06 17:28:57 PST
(In reply to Andy Estes from comment #3) > Comment on attachment 356765 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=356765&action=review > > > Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:56 > > +- (_WKRenderingProgressEvents)getLayoutMilestonesWithWebProcessPlugInBrowserContextController:(WKWebProcessPlugInBrowserContextController*)controller; > > The layout milestones / rendering progress events terminology mismatch is a > little strange here. Good point. I forgot to change the name to reflect the type when I changed the type. Will update. > > But assuming you keep "layout milestones" term, the right name for this > selector would be -webProcessPlugInBrowserContextControllerLayoutMilestones:. 👍🏼
Saam Barati
Comment 5 2018-12-06 17:32:22 PST
Andy Estes
Comment 6 2018-12-07 11:33:35 PST
Comment on attachment 356771 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=356771&action=review > Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:56 > +- (_WKRenderingProgressEvents)webProcessPlugInBrowserContextControllerRenderingProgressEvents:(WKWebProcessPlugInBrowserContextController*)controller; WKWebProcessPlugInBrowserContextController *
Saam Barati
Comment 7 2018-12-07 12:39:54 PST
Comment on attachment 356771 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=356771&action=review >> Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:56 >> +- (_WKRenderingProgressEvents)webProcessPlugInBrowserContextControllerRenderingProgressEvents:(WKWebProcessPlugInBrowserContextController*)controller; > > WKWebProcessPlugInBrowserContextController * Will fix. Thanks for the review.
Saam Barati
Comment 8 2018-12-07 12:41:40 PST
Created attachment 356831 [details] patch for landing
WebKit Commit Bot
Comment 9 2018-12-07 14:35:14 PST
Comment on attachment 356831 [details] patch for landing Clearing flags on attachment: 356831 Committed r238969: <https://trac.webkit.org/changeset/238969>
WebKit Commit Bot
Comment 10 2018-12-07 14:35:15 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2018-12-07 14:36:28 PST
Alex Christensen
Comment 12 2018-12-07 17:01:58 PST
Comment on attachment 356831 [details] patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=356831&action=review > Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:56 > +- (_WKRenderingProgressEvents)webProcessPlugInBrowserContextControllerRenderingProgressEvents:(WKWebProcessPlugInBrowserContextController *)controller; I think this should've been completion handler based. There's no reason this needs to be synchronous.
Saam Barati
Comment 13 2018-12-08 09:38:20 PST
(In reply to Alex Christensen from comment #12) > Comment on attachment 356831 [details] > patch for landing > > View in context: > https://bugs.webkit.org/attachment.cgi?id=356831&action=review > > > Source/WebKit/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:56 > > +- (_WKRenderingProgressEvents)webProcessPlugInBrowserContextControllerRenderingProgressEvents:(WKWebProcessPlugInBrowserContextController *)controller; > > I think this should've been completion handler based. There's no reason > this needs to be synchronous. That’s not right. WebKit calls this expecting a response
Note You need to log in before you can comment on or make changes to this bug.