RESOLVED FIXED 173362
Add API::InjectedBundle::ResourceLoadClient
https://bugs.webkit.org/show_bug.cgi?id=173362
Summary Add API::InjectedBundle::ResourceLoadClient
Carlos Garcia Campos
Reported 2017-06-14 05:11:46 PDT
It will be used by the GTK+ port instead of the C API. This is the last one we need to get rid of the C API in the GTK+ implementation.
Attachments
Patch (30.78 KB, patch)
2017-06-14 05:14 PDT, Carlos Garcia Campos
achristensen: review+
Carlos Garcia Campos
Comment 1 2017-06-14 05:14:44 PDT
Alex Christensen
Comment 2 2017-06-14 08:45:25 PDT
Comment on attachment 312884 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312884&action=review > Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:336 > - page.initializeInjectedBundleResourceLoadClient(&client.base); > + WKBundlePageSetResourceLoadClient(toAPI(&page), &client.base); I'm not sure about this change. From API objects I think we want to call C++ methods, not use the C API. > Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:353 > - _page->initializeInjectedBundleResourceLoadClient(nullptr); > + WKBundlePageSetResourceLoadClient(toAPI(_page.get()), nullptr); ditto
Carlos Garcia Campos
Comment 3 2017-06-14 08:51:19 PDT
(In reply to Alex Christensen from comment #2) > Comment on attachment 312884 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=312884&action=review > > > Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:336 > > - page.initializeInjectedBundleResourceLoadClient(&client.base); > > + WKBundlePageSetResourceLoadClient(toAPI(&page), &client.base); > > I'm not sure about this change. From API objects I think we want to call > C++ methods, not use the C API. But the C API is used there, mixing both is what caused this. If you prefer to use the C++ API, then this should be migrated to use API::InjectedBundle::ResourceLoadClient the same way we are doing for all our clients in the GTK+ API. > > Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:353 > > - _page->initializeInjectedBundleResourceLoadClient(nullptr); > > + WKBundlePageSetResourceLoadClient(toAPI(_page.get()), nullptr); > > ditto Thanks for all the reviews, btw!
Carlos Garcia Campos
Comment 4 2017-06-14 10:10:39 PDT
WebKit Commit Bot
Comment 5 2017-06-14 13:49:31 PDT
Re-opened since this is blocked by bug 173383
Carlos Garcia Campos
Comment 6 2017-06-15 01:20:45 PDT
Note You need to log in before you can comment on or make changes to this bug.