JSCustomXPathNSResolver::lookupNamespaceURI (Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp) logs a ConsoleMessage error. it should include a line, column, and sourceURL so an error in the inspector can jump to the source code that made the call.
<rdar://problem/13614284>
I reproduced the bug by opening LayoutTests/fast/xpath/nsresolver-bad-object.xhtml in MiniBrowser and opening the WebInspector console. There's a link to the source file, column number, and line number, although console->addMessage is logged without these values. Maybe this information is filled up somewhere by the inspector in case it was not provided? Or maybe I'm not reproducing this bug correctly :)
This appears to work in shipping Safari now.
Created attachment 265983 [details] test case
This now works properly.
This bug is probably fixed, but there is still a FIXME to fix it in Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp. I'll test and remove if it appears fixed.
Reopening so we can remove the FIXME.
Created attachment 268223 [details] [PATCH] Proposed Fix Yep, works even when the JS code is minified. Remove the FIXME.
Comment on attachment 268223 [details] [PATCH] Proposed Fix r=me. Do it!
Comment on attachment 268223 [details] [PATCH] Proposed Fix Rejecting attachment 268223 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 268223, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit /Volumes/Data/EWS/WebKit/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://webkit-queues.webkit.org/results/649861
Created attachment 268240 [details] [PATCH] For Landing
Comment on attachment 268240 [details] [PATCH] For Landing Clearing flags on attachment: 268240 Committed r194564: <http://trac.webkit.org/changeset/194564>
All reviewed patches have been landed. Closing bug.