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

Unified Diff: chrome/browser/resources/extensions/extensions.js

Issue 10832196: [extensions] Don't let clicks on <a href="#"> links escape un-prevented. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months 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: chrome/browser/resources/extensions/extensions.js
diff --git a/chrome/browser/resources/extensions/extensions.js b/chrome/browser/resources/extensions/extensions.js
index 04f839c8fc430a808df9ef791f9ca58f836392cd..5da5feef5b2f8125c3a65b2337b8c66ac8050186 100644
--- a/chrome/browser/resources/extensions/extensions.js
+++ b/chrome/browser/resources/extensions/extensions.js
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-<include src="../shared/js/cr/ui/drag_wrapper.js"></include>
<include src="../uber/uber_utils.js"></include>
<include src="extension_commands_overlay.js"></include>
<include src="extension_focus_manager.js"></include>
@@ -116,6 +115,8 @@ cr.define('extensions', function() {
cr.ui.overlay.setupOverlay($('dropTargetOverlay'));
extensions.ExtensionFocusManager.getInstance().initialize();
+
+ preventPoundLinkClicks(); // From shared/js/util.js.
},
/**
@@ -151,7 +152,6 @@ cr.define('extensions', function() {
ExtensionSettings.showOverlay($('extensionCommandsOverlay'));
chrome.send('coreOptionsUserMetricsAction',
['Options_ExtensionCommands']);
- e.preventDefault();
},
/**

Powered by Google App Engine
This is Rietveld 408576698