Changeset 213873 in webkit
- Timestamp:
- Mar 13, 2017 3:27:20 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r213869 r213873 1 2017-03-13 Devin Rousso <webkit@devinrousso.com> 2 3 Web Inspector: Event Listeners section is missing 'once', 'passive' event listener flags 4 https://bugs.webkit.org/show_bug.cgi?id=167080 5 6 Reviewed by Joseph Pecoraro. 7 8 Tests the result of DOMAgent.getEventListenersForNode and ensures that additional options 9 are passed to the frontend. 10 11 * inspector/dom/getEventListenersForNode-expected.txt: Added. 12 * inspector/dom/getEventListenersForNode.html: Added. 13 1 14 2017-03-13 Dean Jackson <dino@apple.com> 2 15 -
trunk/Source/JavaScriptCore/ChangeLog
r213872 r213873 1 2017-03-13 Devin Rousso <webkit@devinrousso.com> 2 3 Web Inspector: Event Listeners section is missing 'once', 'passive' event listener flags 4 https://bugs.webkit.org/show_bug.cgi?id=167080 5 6 Reviewed by Joseph Pecoraro. 7 8 * inspector/protocol/DOM.json: 9 Add "passive" and "once" items to the EventListener type. 10 1 11 2017-03-13 Mark Lam <mark.lam@apple.com> 2 12 -
trunk/Source/JavaScriptCore/inspector/protocol/DOM.json
r208540 r213873 81 81 { "name": "location", "$ref": "Debugger.Location", "optional": true, "description": "Handler code location." }, 82 82 { "name": "sourceName", "type": "string", "optional": true, "description": "Source script URL." }, 83 { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." } 83 { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." }, 84 { "name": "passive", "type": "boolean", "optional": true, "description": "<code>EventListener</code>'s passive." }, 85 { "name": "once", "type": "boolean", "optional": true, "description": "<code>EventListener</code>'s once." } 84 86 ], 85 87 "description": "A structure holding event listener properties." -
trunk/Source/WebCore/ChangeLog
r213871 r213873 1 2017-03-13 Devin Rousso <webkit@devinrousso.com> 2 3 Web Inspector: Event Listeners section is missing 'once', 'passive' event listener flags 4 https://bugs.webkit.org/show_bug.cgi?id=167080 5 6 Reviewed by Joseph Pecoraro. 7 8 Test: inspector/dom/getEventListenersForNode.html 9 10 * inspector/InspectorDOMAgent.cpp: 11 (WebCore::InspectorDOMAgent::buildObjectForEventListener): 12 Add "passive" and "once" values to the EventListener protocol object when applicable. 13 1 14 2017-03-13 John Wilander <wilander@apple.com> 2 15 -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r213355 r213873 1547 1547 value->setSourceName(sourceName); 1548 1548 } 1549 if (registeredEventListener.isPassive()) 1550 value->setPassive(true); 1551 if (registeredEventListener.isOnce()) 1552 value->setOnce(true); 1549 1553 return value; 1550 1554 } -
trunk/Source/WebInspectorUI/ChangeLog
r213765 r213873 1 2017-03-13 Devin Rousso <webkit@devinrousso.com> 2 3 Web Inspector: Event Listeners section is missing 'once', 'passive' event listener flags 4 https://bugs.webkit.org/show_bug.cgi?id=167080 5 6 Reviewed by Joseph Pecoraro. 7 8 * Localizations/en.lproj/localizedStrings.js: 9 * UserInterface/Views/EventListenerSectionGroup.js: 10 (WebInspector.EventListenerSectionGroup): 11 (WebInspector.EventListenerSectionGroup.prototype._type): Deleted. 12 1 13 2017-03-11 Matt Baker <mattbaker@apple.com> 2 14 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r213691 r213873 561 561 localizedStrings["Object Store"] = "Object Store"; 562 562 localizedStrings["Offset"] = "Offset"; 563 localizedStrings["Once"] = "Once"; 563 564 localizedStrings["Online"] = "Online"; 564 565 localizedStrings["Only show resources with issues"] = "Only show resources with issues"; … … 595 596 localizedStrings["Parent"] = "Parent"; 596 597 localizedStrings["Partial Garbage Collection"] = "Partial Garbage Collection"; 598 localizedStrings["Passive"] = "Passive"; 597 599 localizedStrings["Path"] = "Path"; 598 600 localizedStrings["Pause Playback"] = "Pause Playback"; -
trunk/Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js
r208304 r213873 36 36 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Node"), this._nodeTextOrLink())); 37 37 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Function"), this._functionTextOrLink())); 38 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Type"), this._type())); 38 39 if (this._eventListener.useCapture) 40 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Capturing"), WebInspector.UIString("Yes"))); 41 else 42 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Bubbling"), WebInspector.UIString("Yes"))); 43 44 if (this._eventListener.isAttribute) 45 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Attribute"), WebInspector.UIString("Yes"))); 46 47 if (this._eventListener.passive) 48 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Passive"), WebInspector.UIString("Yes"))); 49 50 if (this._eventListener.once) 51 rows.push(new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString("Once"), WebInspector.UIString("Yes"))); 52 39 53 this.rows = rows; 40 54 } … … 53 67 54 68 return WebInspector.linkifyNodeReference(node); 55 }56 57 _type()58 {59 if (this._eventListener.useCapture)60 return WebInspector.UIString("Capturing");61 62 if (this._eventListener.isAttribute)63 return WebInspector.UIString("Attribute");64 65 return WebInspector.UIString("Bubbling");66 69 } 67 70
Note: See TracChangeset
for help on using the changeset viewer.