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 5fa776485ed86eac49a466700370614bcf118562..980dc6e3b24b5734ba380a853e4dd9dc03697232 100644 |
--- a/chrome/browser/resources/settings/site_settings/site_details.js |
+++ b/chrome/browser/resources/settings/site_settings/site_details.js |
@@ -48,7 +48,8 @@ Polymer({ |
* Handler for when the origin changes. |
*/ |
onSiteChanged_: function() { |
- var url = new URL(this.site.origin); |
+ // Using originForDisplay avoids the [*.] prefix that some exceptions use. |
+ var url = new URL(this.ensureUrlHasScheme(this.site.originForDisplay)); |
this.$.usageApi.fetchUsageTotal(url.hostname); |
}, |