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

Unified Diff: chrome/browser/resources/settings/device_page/storage.js

Issue 2557073003: Call preventDefault in all on-tap events that show a dialog. (Closed)
Patch Set: nit Created 4 years 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/settings/device_page/storage.js
diff --git a/chrome/browser/resources/settings/device_page/storage.js b/chrome/browser/resources/settings/device_page/storage.js
index b37149467108630208945fae27b8e45e8c63407f..b10445da3f3c7a127efe7284ee485b5aa05874ab 100644
--- a/chrome/browser/resources/settings/device_page/storage.js
+++ b/chrome/browser/resources/settings/device_page/storage.js
@@ -115,9 +115,11 @@ Polymer({
/**
* Handler for tapping the "Offline files" item.
+ * @param {!Event} e
* @private
*/
- onDriveCacheTap_: function() {
+ onDriveCacheTap_: function(e) {
+ e.preventDefault();
this.$.storageDriveCache.open();
},

Powered by Google App Engine
This is Rietveld 408576698