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

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

Issue 2490433002: DevTools: clicking console messages with traces should check for links (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/resources/source3.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 781209df993fc52c92894440133eb93d773a0e10..b6fb410d84a565e30c648b24450a9ef422449abf 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -328,7 +328,8 @@ WebInspector.ConsoleViewMessage = class {
* @param {?Event} event
*/
function toggleStackTrace(event) {
- if (event.target.hasSelection())
+ var linkClicked = event.target && event.target.enclosingNodeOrSelfWithNodeName('a');
+ if (event.target.hasSelection() || linkClicked)
return;
expandStackTrace(stackTraceElement.classList.contains('hidden'));
event.consume();
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/resources/source3.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698