No subject
Fri Mar 7 15:32:22 PST 2014
The WKWebView API allows toggling WebCore's Settings via the WKPreferences interface (available on WKWebViewConfiguration). Nothing currently exists for the developer extras setting. It should be easy to add plumbing for a new setting to toggle the Developer Extras Enabled setting at least as a private API.
- Joe
--Boundary_(ID_bSzrt7GbjuTivQhBekRtjg)
Content-type: text/html; CHARSET=US-ASCII
Content-transfer-encoding: quoted-printable
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Aug 11, 2014, at 3:23 AM, Koen Bok <<a =
href=3D"mailto:koen at madebysofa.com" class=3D"">koen at madebysofa.com</a>>=
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
dir=3D"ltr" class=3D""><span =
style=3D"font-family:arial,sans-serif;font-size:13px" class=3D"">I am =
looking how to show the inspector in my own mac desktop app with =
WKWebViews.</span></div></div></blockquote><div><br =
class=3D""></div><div>You are correct that currently the only supported =
way to inspect a WKWebView is through Safari with an entitlement in your =
app (see the WWDC talk for more information).</div><div><br =
class=3D""></div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
dir=3D"ltr" class=3D""><div =
style=3D"font-family:arial,sans-serif;font-size:13px" class=3D"">I think =
I need to initialize an XPC or http connection to a WKWebView and pass =
it to a new inspector instance, and then show it.</div><div =
style=3D"font-family:arial,sans-serif;font-size:13px" class=3D"">
<br class=3D""></div><div =
style=3D"font-family:arial,sans-serif;font-size:13px" class=3D"">Can =
anyone maybe point me in the right =
direction?</div></div></blockquote><div><br class=3D""></div><div>=46rom =
a WebKit Internals perspective, you just need to enable WebCore's =
Settings::developerExtrasEnabled setting to get what you want. No =
XPC/HTTP connections necessary.</div><div><br class=3D""></div><div>The =
WKWebView API allows toggling WebCore's Settings via the WKPreferences =
interface (available on WKWebViewConfiguration). Nothing currently =
exists for the developer extras setting. It should be easy to add =
plumbing for a new setting to toggle the Developer Extras Enabled =
setting at least as a private API.</div><div><br class=3D""></div></div>- =
Joe</body></html>=
--Boundary_(ID_bSzrt7GbjuTivQhBekRtjg)--
More information about the webkit-dev
mailing list