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

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

Issue 2527763003: [DevTools] Turn links into spans to prevent default behavior. (Closed)
Patch Set: fixed comments 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 10a48ecd76ea7ceb3a772a5ffb81168757616b27..e274e6f5fccbf0364cfa9a5b881ca802ccd138f4 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -75,9 +75,7 @@ Main.Main = class {
var storagePrefix = '';
if (Host.isCustomDevtoolsFrontend())
storagePrefix = '__custom__';
- else if (
- !Runtime.queryParam('can_dock') && !!Runtime.queryParam('debugFrontend') &&
- !Host.isUnderTest(prefs))
+ else if (!Runtime.queryParam('can_dock') && !!Runtime.queryParam('debugFrontend') && !Host.isUnderTest(prefs))
storagePrefix = '__bundled__';
var clearLocalStorage = window.localStorage ? window.localStorage.clear.bind(window.localStorage) : undefined;
var localStorage =
@@ -391,14 +389,6 @@ Main.Main = class {
if (event.handled)
return;
- var document = event.target && event.target.ownerDocument;
- var target = document ? document.deepActiveElement() : null;
- if (target) {
- var anchor = target.enclosingNodeOrSelfWithNodeName('a');
- if (anchor)
- event.preventDefault();
- }
-
if (!UI.Dialog.hasInstance() && UI.inspectorView.currentPanelDeprecated()) {
UI.inspectorView.currentPanelDeprecated().handleShortcut(event);
if (event.handled) {

Powered by Google App Engine
This is Rietveld 408576698