Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 2644753002: DevTools: untruncate links on copy (Closed)
Patch Set: ac Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
index 98e2eb262fe7cc0fadf953dc995d36ba88170b3d..543026f415af68b4f1b91538efae36fd9d858466 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -1066,11 +1066,7 @@ Console.ConsoleViewMessage = class {
toExportString() {
var lines = [];
var nodes = this.contentElement().childTextNodes();
- var messageContent = '';
- for (var i = 0; i < nodes.length; ++i) {
- var originalLinkText = Components.Linkifier.originalLinkText(nodes[i].parentElement);
- messageContent += typeof originalLinkText === 'string' ? originalLinkText : nodes[i].textContent;
- }
+ var messageContent = nodes.map(Components.Linkifier.untruncatedNodeText).join('');
for (var i = 0; i < this.repeatCount(); ++i)
lines.push(messageContent);
return lines.join('\n');

Powered by Google App Engine
This is Rietveld 408576698