void QtWebPageLoadClient::didStartProvisionalLoadForFrame(WKPageRef, WKFrameRef frame, WKTypeRef, const void* clientInfo) { if (!WKFrameIsMainFrame(frame)) return; WebFrameProxy* wkframe = toImpl(frame); QString urlStr(wkframe->provisionalURL()); QUrl qUrl = urlStr; toQtWebPageLoadClient(clientInfo)->didStartProvisionalLoadForFrame(qUrl); }
WKURLRef WKFrameGetProvisionalURL(WKFrameRef frameRef) { WebFrameProxy* frame = toWK(frameRef); return toURLRef(frame->provisionalURL().impl()); }