Changeset 80655 in webkit
- Timestamp:
- Mar 9, 2011 11:21:30 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r80654 r80655 1 2011-03-09 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: it should be possible to copy stack trace from call stack sidebar pane. 6 https://bugs.webkit.org/show_bug.cgi?id=56024 7 8 * English.lproj/localizedStrings.js: 9 * inspector/front-end/CallStackSidebarPane.js: 10 (WebInspector.CallStackSidebarPane): 11 (WebInspector.CallStackSidebarPane.prototype.update): 12 (WebInspector.CallStackSidebarPane.prototype._contextMenu): 13 1 14 2011-03-09 David Hyatt <hyatt@apple.com> 2 15 -
trunk/Source/WebCore/inspector/front-end/CallStackSidebarPane.js
r80228 r80655 28 28 WebInspector.SidebarPane.call(this, WebInspector.UIString("Call Stack")); 29 29 this._model = model; 30 31 this.bodyElement.addEventListener("contextmenu", this._contextMenu.bind(this), true); 30 32 } 31 33 … … 36 38 37 39 this.placards = []; 40 this._text = ""; 38 41 39 42 if (!details) { … … 79 82 this.placards.push(placard); 80 83 this.bodyElement.appendChild(placard.element); 84 85 this._text += WebInspector.UIString("%s() at %s", i + 1, title, subtitle) + "\n"; 81 86 } 82 87 … … 149 154 }, 150 155 156 _contextMenu: function(event) 157 { 158 if (!this._text) 159 return; 160 161 var contextMenu = new WebInspector.ContextMenu(); 162 contextMenu.appendItem(WebInspector.UIString("Copy Stack Trace"), InspectorFrontendHost.copyText.bind(InspectorFrontendHost, this._text)); 163 contextMenu.show(event); 164 }, 165 151 166 registerShortcuts: function(section) 152 167 {
Note: See TracChangeset
for help on using the changeset viewer.