Title: [193073] branches/safari-601-branch/Source/WebInspectorUI
- Revision
- 193073
- Author
- [email protected]
- Date
- 2015-12-03 10:43:22 -0800 (Thu, 03 Dec 2015)
Log Message
Merge r188184. rdar://problem/23221163
Modified Paths
Diff
Modified: branches/safari-601-branch/Source/WebInspectorUI/ChangeLog (193072 => 193073)
--- branches/safari-601-branch/Source/WebInspectorUI/ChangeLog 2015-12-03 18:43:17 UTC (rev 193072)
+++ branches/safari-601-branch/Source/WebInspectorUI/ChangeLog 2015-12-03 18:43:22 UTC (rev 193073)
@@ -1,5 +1,25 @@
2015-12-02 Timothy Hatcher <[email protected]>
+ Merge r188184. rdar://problem/23221163
+
+ 2015-08-07 Devin Rousso <[email protected]>
+
+ Web Inspector: Don't include zero-width space into a copied text from the console
+ https://bugs.webkit.org/show_bug.cgi?id=147767
+
+ Reviewed by Timothy Hatcher.
+
+ Now removes work break characters in generated _javascript_ text when copying
+ to the clipboard. Also replaced var with let in the modified functions.
+
+ * UserInterface/Views/ConsoleCommandView.js:
+ (WebInspector.ConsoleCommandView.prototype.toClipboardString):
+ (WebInspector.ConsoleCommandView):
+ * UserInterface/Views/ConsoleMessageView.js:
+ (WebInspector.ConsoleMessageView.prototype.toClipboardString):
+
+2015-12-02 Timothy Hatcher <[email protected]>
+
Merge r188138. rdar://problem/23221163
2015-08-07 Devin Rousso <[email protected]>
Modified: branches/safari-601-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js (193072 => 193073)
--- branches/safari-601-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js 2015-12-03 18:43:17 UTC (rev 193072)
+++ branches/safari-601-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js 2015-12-03 18:43:22 UTC (rev 193073)
@@ -64,6 +64,6 @@
toClipboardString(isPrefixOptional)
{
- return (isPrefixOptional ? "" : "> ") + this._commandText;
+ return (isPrefixOptional ? "" : "> ") + this._commandText.removeWordBreakCharacters();
}
};
Modified: branches/safari-601-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js (193072 => 193073)
--- branches/safari-601-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js 2015-12-03 18:43:17 UTC (rev 193072)
+++ branches/safari-601-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js 2015-12-03 18:43:22 UTC (rev 193073)
@@ -185,7 +185,9 @@
toClipboardString(isPrefixOptional)
{
- var clipboardString = this._messageTextElement.innerText;
+ var clipboardString = this._messageTextElement.innerText.removeWordBreakCharacters();
+ if (this._message.savedResultIndex)
+ clipboardString = clipboardString.replace(/\s*=\s*(\$\d+)$/, " = $1");
if (this._message.type === WebInspector.ConsoleMessage.MessageType.Trace)
clipboardString = "console.trace()";
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes