<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: reveal source from webView.evaluateJavaScript"
href="https://bugs.webkit.org/show_bug.cgi?id=146389#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: reveal source from webView.evaluateJavaScript"
href="https://bugs.webkit.org/show_bug.cgi?id=146389">bug 146389</a>
from <span class="vcard"><a class="email" href="mailto:koen@motif.co" title="Koen Bok <koen@motif.co>"> <span class="fn">Koen Bok</span></a>
</span></b>
<pre>This looks like a really great solution. But I cannot get it to work at all... Of course, I might be doing something wrong :-)
I studied them pretty in-depth, this is what I found out:
### Chrome
<a href="http://cl.ly/image/1g3v0B2p2u30">http://cl.ly/image/1g3v0B2p2u30</a>
Perfect in pretty much every way. Notice that the error in the console says foo.js and opens up the foo.js script if you click it.
### Safari (10.10.3 / Safari/600.6.3)
<a href="http://cl.ly/image/340p0f1R1r2D">http://cl.ly/image/340p0f1R1r2D</a>
It half works. It does show foo.js in "Extra Scripts" and you can open it and set breakpoints. But the error still says undefined and if you click it, it opens a new tab with the address: file:///System/Library/StagedFrameworks/Safari/WebInspectorUI.framework/Resources/undefined, leading to a not found page.
### WKWebView
<a href="http://cl.ly/image/2h1z001r3K2O">http://cl.ly/image/2h1z001r3K2O</a>
Notice that instead of using eval() in javascript, I pass the script directly to webView.evaluateJavaScript. But however I try, there is no result. The errors keep pointing to the html file, and nothing gets added under "Extra Scripts".
###
It would be really great if this worked. Especially if the sourceMappingURL for source maps would work too. I attached all my test files, including the XCode project.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>