RESOLVED FIXED 176889
Add WKUIDelegatePrivate equivalent of WKPageUIClient's drawHeader, drawFooter, headerHeight, and footerHeight
https://bugs.webkit.org/show_bug.cgi?id=176889
Summary Add WKUIDelegatePrivate equivalent of WKPageUIClient's drawHeader, drawFooter...
Alex Christensen
Reported 2017-09-13 23:06:41 PDT
Add WKUIDelegatePrivate equivalent of WKPageUIClient's drawHeader, drawFooter, headerHeight, and footerHeight
Attachments
Patch (47.20 KB, patch)
2017-09-13 23:13 PDT, Alex Christensen
no flags
Patch (48.15 KB, patch)
2017-09-14 00:01 PDT, Alex Christensen
no flags
Patch (51.00 KB, patch)
2017-09-14 10:53 PDT, Alex Christensen
no flags
Patch (49.72 KB, patch)
2017-09-14 16:36 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2017-09-13 23:13:25 PDT
Alex Christensen
Comment 2 2017-09-14 00:01:43 PDT
Build Bot
Comment 3 2017-09-14 00:03:34 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 http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Andy Estes
Comment 4 2017-09-14 10:43:05 PDT
Comment on attachment 320737 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320737&action=review > Source/WebKit/UIProcess/WebFrameProxy.cpp:79 > +void WebFrameProxy::loadURL(const WebCore::URL& url) There's a "using namespace WebCore" at the top of this file, so you don't need to specify "WebCore::" here. > Source/WebKit/UIProcess/WebPageProxy.cpp:964 > +void WebPageProxy::loadAlternateHTMLString(const String& htmlString, const WebCore::URL& baseURL, const WebCore::URL& unreachableURL, API::Object* userData) Ditto. > Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:2495 > + getPage(webView).loadAlternateHTMLString(String::fromUTF8(content), WebCore::URL(WebCore::URL(), String::fromUTF8(baseURI)), WebCore::URL(WebCore::URL(), String::fromUTF8(contentURI))); Ditto.
Alex Christensen
Comment 5 2017-09-14 10:53:47 PDT
Alex Christensen
Comment 6 2017-09-14 10:55:34 PDT
Ryan Haddad
Comment 7 2017-09-14 12:31:48 PDT
Ryan Haddad
Comment 8 2017-09-14 13:12:10 PDT
Reverted r222033 for reason: This change caused API test WebKit.PrintFrame to time out. Committed r222047: <http://trac.webkit.org/changeset/222047>
Alex Christensen
Comment 9 2017-09-14 16:36:00 PDT
Alex Christensen
Comment 10 2017-09-14 16:38:54 PDT
So it turns out the exact call order and number to these delegate callbacks are not the same on all mac platforms. I modified the test to verify that each delegate is called at least once, and I check the values as before. http://trac.webkit.org/r222059
Radar WebKit Bug Importer
Comment 11 2017-09-27 12:59:38 PDT
Note You need to log in before you can comment on or make changes to this bug.