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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2512013002: [DevTools] Handle external link clicks and context menu separately. (Closed)
Patch Set: formatting 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
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index de094030b0c7a2d8408d55e2c69cc5fd92023570..d53aa36c94361e5071eceaadd0825dffb96c15d6 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -190,10 +190,8 @@ Main.Main = class {
new Bindings.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManager, Workspace.workspace);
Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetManager, Workspace.workspace);
Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsoleMessageHelper(Workspace.workspace);
- Bindings.cssWorkspaceBinding =
- new Bindings.CSSWorkspaceBinding(SDK.targetManager, Workspace.workspace);
- Bindings.debuggerWorkspaceBinding =
- new Bindings.DebuggerWorkspaceBinding(SDK.targetManager, Workspace.workspace);
+ Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetManager, Workspace.workspace);
+ Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SDK.targetManager, Workspace.workspace);
Bindings.breakpointManager =
new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetManager, Bindings.debuggerWorkspaceBinding);
Extensions.extensionServer = new Extensions.ExtensionServer();
@@ -391,10 +389,7 @@ Main.Main = class {
InspectorFrontendHost.openInNewTab(anchor.href);
}
- if (!anchor.classList.contains('webkit-html-external-link'))
- followLink();
- else
- InspectorFrontendHost.openInNewTab(anchor.href);
+ followLink();
}
_registerShortcuts() {

Powered by Google App Engine
This is Rietveld 408576698