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

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
« no previous file with comments | « chrome/browser/resources/extensions/extensions.html ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3c7b42171154a143b2ba41fea14068381cb7fb4b 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();
+
+ preventDefaultOnPoundLinkClicks(); // From shared/js/util.js.
},
/**
@@ -151,7 +152,6 @@ cr.define('extensions', function() {
ExtensionSettings.showOverlay($('extensionCommandsOverlay'));
chrome.send('coreOptionsUserMetricsAction',
['Options_ExtensionCommands']);
- e.preventDefault();
},
/**
« no previous file with comments | « chrome/browser/resources/extensions/extensions.html ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698