<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jul 25, 2013, at 9:08 AM, Thiago Lacerda &lt;<a href="mailto:thiago.lacerda@openbossa.org">thiago.lacerda@openbossa.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">Hi,<div><br></div></div></div></blockquote><blockquote type="cite"><div dir="ltr">We in the Nix port team (which is going upstream), are facing an issue that we need our WebView to know when the page transition has begun.</div></blockquote><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div>There was callback, in PageClient, that was making a similar job, called didCommitLoadForMainFrame, but it was removed recently.</div></div></div></blockquote><div><br></div><div>If by “PageClient” you mean the&nbsp;WKPageLoaderClient in WKPage.h, then didCommitLoadForFrame is there.</div><div><br></div><div>I don’t even recall there ever being a didCommitLoadForMainFrame, but didCommitLoadForFrame combined with a quick call to&nbsp;WKPageGetMainFrame will do the exact same thing.</div><div><br></div><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div>WebPage does have a callback that tells this (didStartPageTransition), but this is not forwarded to UIProcess, which is kind of weird, since its opposite (didCompletePageTransition) is fired to PageClient when a page has completed its transition.</div></div></div></blockquote><div><br></div>didStartPageTransition is about starting a provisional load, and didCompletePageTransition is *not* about committing a provisional load. &nbsp;Additionally, neither of these are actually sent to any API clients; &nbsp;They are internal to WebPage.</div><div><br></div><div>If you think didCommitLoadForFrame() for the main frame was what you wanted, then both of these are irrelevant anyways.</div><div><br><blockquote type="cite" dir="auto"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div>I have a patch that does forward the didPageStartTransition to UIProcess and I would like to know what you guys think of that. Does this seems useful to you as well?</div></div></div></blockquote><div><br></div>Since - at this point in my response - I’m not sure what you want or what you’re talking about, I would say no it does not seem useful.</div><div><br></div><div>~Brady</div><div><br></div></body></html>