[Webkit-unassigned] [Bug 146389] Web Inspector: reveal source from webView.evaluateJavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 30 03:42:34 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=146389

--- Comment #6 from Koen Bok <koen at motif.co> ---
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

http://cl.ly/image/1g3v0B2p2u30

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)

http://cl.ly/image/340p0f1R1r2D

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

http://cl.ly/image/2h1z001r3K2O

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150630/1e2aa498/attachment.html>


More information about the webkit-unassigned mailing list