Title: [212423] trunk/Source/WebInspectorUI
- Revision
- 212423
- Author
- [email protected]
- Date
- 2017-02-15 22:14:16 -0800 (Wed, 15 Feb 2017)
Log Message
Web Inspector: Request headers when copied & pasted should follow HTTP format, colon instead of tab
https://bugs.webkit.org/show_bug.cgi?id=168155
Patch by Devin Rousso <[email protected]> on 2017-02-15
Reviewed by Matt Baker.
* UserInterface/Views/DataGrid.js:
(WebInspector.DataGrid):
(WebInspector.DataGrid.prototype.set copyTextDelimiter):
(WebInspector.DataGrid.prototype._copyTextForDataGridNode):
(WebInspector.DataGrid.prototype._copyTextForDataGridHeaders):
* UserInterface/Views/ResourceDetailsSidebarPanel.js:
(WebInspector.ResourceDetailsSidebarPanel.prototype._createNameValueDataGrid):
Allow instances of DataGrid to change the delimiter between items when copying rows.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (212422 => 212423)
--- trunk/Source/WebInspectorUI/ChangeLog 2017-02-16 05:53:49 UTC (rev 212422)
+++ trunk/Source/WebInspectorUI/ChangeLog 2017-02-16 06:14:16 UTC (rev 212423)
@@ -1,5 +1,21 @@
2017-02-15 Devin Rousso <[email protected]>
+ Web Inspector: Request headers when copied & pasted should follow HTTP format, colon instead of tab
+ https://bugs.webkit.org/show_bug.cgi?id=168155
+
+ Reviewed by Matt Baker.
+
+ * UserInterface/Views/DataGrid.js:
+ (WebInspector.DataGrid):
+ (WebInspector.DataGrid.prototype.set copyTextDelimiter):
+ (WebInspector.DataGrid.prototype._copyTextForDataGridNode):
+ (WebInspector.DataGrid.prototype._copyTextForDataGridHeaders):
+ * UserInterface/Views/ResourceDetailsSidebarPanel.js:
+ (WebInspector.ResourceDetailsSidebarPanel.prototype._createNameValueDataGrid):
+ Allow instances of DataGrid to change the delimiter between items when copying rows.
+
+2017-02-15 Devin Rousso <[email protected]>
+
Web Inspector: Split console should be allowed when docked bottom on Elements/Resources/Debugger/Storage tabs
https://bugs.webkit.org/show_bug.cgi?id=168385
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js (212422 => 212423)
--- trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js 2017-02-16 05:53:49 UTC (rev 212422)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DataGrid.js 2017-02-16 06:14:16 UTC (rev 212423)
@@ -132,6 +132,8 @@
}
this._updateScrollbarPadding();
+
+ this._copyTextDelimiter = "\t";
}
_updateScrollbarPadding()
@@ -1703,16 +1705,18 @@
return (data instanceof Node ? data.textContent : data) || "";
}
+ set copyTextDelimiter(value) { this._copyTextDelimiter = value; }
+
_copyTextForDataGridNode(node)
{
let fields = node.dataGrid.orderedColumns.map((identifier) => this.textForDataGridNodeColumn(node, identifier));
- return fields.join("\t");
+ return fields.join(this._copyTextDelimiter);
}
_copyTextForDataGridHeaders()
{
let fields = this.orderedColumns.map((identifier) => this.headerTableHeader(identifier).textContent);
- return fields.join("\t");
+ return fields.join(this._copyTextDelimiter);
}
handleBeforeCopyEvent(event)
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js (212422 => 212423)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js 2017-02-16 05:53:49 UTC (rev 212422)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js 2017-02-16 06:14:16 UTC (rev 212423)
@@ -368,6 +368,7 @@
name: {title: WebInspector.UIString("Name"), width: "30%", sortable: true},
value: {title: WebInspector.UIString("Value"), sortable: true}
});
+ dataGrid.copyTextDelimiter = ": ";
function addDataGridNode(nodeValue)
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes