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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js

Issue 2512013002: [DevTools] Handle external link clicks and context menu separately. (Closed)
Patch Set: rebased 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js b/third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js
index b8b20f9d943ee7c4a6823903a11c6274b32fcac8..a9a4340d1034dc787a6d2f68f9c8a6876002bce6 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js
@@ -164,16 +164,14 @@ Components.HandlerRegistry = class extends Common.Object {
return;
var targetNode = /** @type {!Node} */ (target);
- var anchorElement = targetNode.enclosingNodeOrSelfWithClass('webkit-html-resource-link') ||
- targetNode.enclosingNodeOrSelfWithClass('webkit-html-external-link');
+ var anchorElement = targetNode.enclosingNodeOrSelfWithClass('webkit-html-resource-link');
if (!anchorElement)
return;
var uiLocation = Components.Linkifier.uiLocationByAnchor(anchorElement);
var resourceURL = uiLocation ? uiLocation.uiSourceCode.contentURL() : anchorElement.href;
- var uiSourceCode = uiLocation ?
- uiLocation.uiSourceCode :
- (resourceURL ? Workspace.workspace.uiSourceCodeForURL(resourceURL) : null);
+ var uiSourceCode = uiLocation ? uiLocation.uiSourceCode :
+ (resourceURL ? Workspace.workspace.uiSourceCodeForURL(resourceURL) : null);
function open() {
Common.Revealer.reveal(uiSourceCode);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698