Web Inspector: DOM: don't send the entire function string with each event listener
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2019 00:31:56 +0000 (00:31 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2019 00:31:56 +0000 (00:31 +0000)
commit6ba64fb96c42fc61e05b3790704f4884880deb27
treeb9caabd841e013e4cd24b3403ccf628fd7a03088
parentecdbc5ee0f856cf6a185333f3703a6c901da0af9
Web Inspector: DOM: don't send the entire function string with each event listener
https://bugs.webkit.org/show_bug.cgi?id=194293
<rdar://problem/47822809>

Reviewed by Joseph Pecoraro.

Source/JavaScriptCore:

* inspector/protocol/DOM.json:

* runtime/JSFunction.h:
Export `calculatedDisplayName`.

Source/WebCore:

Test: inspector/dom/getEventListenersForNode.html

* inspector/agents/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForEventListener):

Source/WebInspectorUI:

* UserInterface/Views/EventListenerSectionGroup.js:
(WI.EventListenerSectionGroup.prototype._functionTextOrLink):

LayoutTests:

* inspector/dom/getEventListenersForNode.html:
* inspector/dom/getEventListenersForNode-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/dom/getEventListenersForNode-expected.txt
LayoutTests/inspector/dom/getEventListenersForNode.html
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/protocol/DOM.json
Source/JavaScriptCore/runtime/JSFunction.h
Source/WebCore/ChangeLog
Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js