RESOLVED FIXED 141217
Add WKPageNavigationClient as C SPI around API::NavigationClient, and adopt in WKTR
https://bugs.webkit.org/show_bug.cgi?id=141217
Summary Add WKPageNavigationClient as C SPI around API::NavigationClient, and adopt i...
Tim Horton
Reported 2015-02-03 16:23:25 PST
Add WKPageNavigationClient as C SPI around API::NavigationClient, and adopt in WKTR
Attachments
Patch (89.74 KB, patch)
2015-02-03 16:24 PST, Tim Horton
sam: review+
Tim Horton
Comment 1 2015-02-03 16:24:25 PST
Sam Weinig
Comment 2 2015-02-03 18:20:57 PST
Comment on attachment 245986 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245986&action=review > Source/WebKit2/UIProcess/API/C/WKPage.h:217 > WK_EXPORT void WKPageSetPageLoaderClient(WKPageRef page, const WKPageLoaderClientBase* client); > +WK_EXPORT void WKPageSetPageNavigationClient(WKPageRef page, const WKPageNavigationClientBase* client); I think it would valuable to add a comment here explaining that you can either use WKPageSetPageNavigationClient or WKPageSetPageLoaderClient/WKPageSetPageLoaderClient. > Tools/WebKitTestRunner/TestController.cpp:97 > +static WKDataRef copyWebCryptoMasterKey(WKContextRef, const void*) > +{ > + return copyWebCryptoMasterKey(); > +} Why do we still need the Context variant of this in WKTR?
Tim Horton
Comment 3 2015-02-03 19:17:01 PST
(In reply to comment #2) > Comment on attachment 245986 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=245986&action=review > > > Source/WebKit2/UIProcess/API/C/WKPage.h:217 > > WK_EXPORT void WKPageSetPageLoaderClient(WKPageRef page, const WKPageLoaderClientBase* client); > > +WK_EXPORT void WKPageSetPageNavigationClient(WKPageRef page, const WKPageNavigationClientBase* client); > > I think it would valuable to add a comment here explaining that you can > either use WKPageSetPageNavigationClient or > WKPageSetPageLoaderClient/WKPageSetPageLoaderClient. Sure! > > Tools/WebKitTestRunner/TestController.cpp:97 > > +static WKDataRef copyWebCryptoMasterKey(WKContextRef, const void*) > > +{ > > + return copyWebCryptoMasterKey(); > > +} > > Why do we still need the Context variant of this in WKTR? I don't think we do; good point!
Tim Horton
Comment 4 2015-02-03 20:03:15 PST
Tim Horton
Comment 5 2015-02-03 20:04:00 PST
Oh dear, #import. Will fix.
Tim Horton
Comment 6 2015-02-03 20:06:51 PST
Simon Fraser (smfr)
Comment 7 2015-02-03 22:45:29 PST
This broke both GTK and EFL (as the EWS show).
Chris Dumez
Comment 8 2015-02-03 23:11:56 PST
(In reply to comment #7) > This broke both GTK and EFL (as the EWS show). Fixed in https://trac.webkit.org/changeset/179596.
Tim Horton
Comment 9 2015-02-03 23:33:45 PST
(In reply to comment #7) > This broke both GTK and EFL (as the EWS show). The failure I saw in EWS was fixed in r179589 but obviously wasn't the only problem. That said, WebKit2 yaddayadda.
Note You need to log in before you can comment on or make changes to this bug.