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

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

Issue 2491213003: 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 b83f1d7bdafa605e3a2b8e5b1cc720142d84d844..d5c67d7d311cc1c491c1c1b453164ef68db1a81b 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -352,7 +352,8 @@ WebInspector.ConsoleViewMessage.prototype = {
*/
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