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

Unified Diff: chrome/browser/resources/settings/site_settings/site_details.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/site_settings/site_details.js
diff --git a/chrome/browser/resources/settings/site_settings/site_details.js b/chrome/browser/resources/settings/site_settings/site_details.js
index f60a905c01045d99d439d91fdcc6838027d46834..d1022348f905d76d4e0990a72a44009775d96c2e 100644
--- a/chrome/browser/resources/settings/site_settings/site_details.js
+++ b/chrome/browser/resources/settings/site_settings/site_details.js
@@ -83,9 +83,11 @@ Polymer({
/**
* Confirms the deletion of storage for a site.
+ * @param {!Event} e
* @private
*/
- onConfirmClearStorage_: function() {
+ onConfirmClearStorage_: function(e) {
+ e.preventDefault();
this.confirmationDeleteMsg_ = loadTimeData.getStringF(
'siteSettingsSiteRemoveConfirmation',
this.toUrl(this.site.origin).href);

Powered by Google App Engine
This is Rietveld 408576698