Index: chrome/browser/content_settings/content_settings_pattern.cc |
diff --git a/chrome/browser/content_settings/content_settings_pattern.cc b/chrome/browser/content_settings/content_settings_pattern.cc |
index 77b5036e7df8adc3f76a093e1591bae2e8f7f5e8..15a0e91693c8287bb97b46c31967d362539a6848 100644 |
--- a/chrome/browser/content_settings/content_settings_pattern.cc |
+++ b/chrome/browser/content_settings/content_settings_pattern.cc |
@@ -301,7 +301,10 @@ ContentSettingsPattern ContentSettingsPattern::FromURL( |
// Unsupported scheme |
} |
if (url.port().empty()) { |
- builder->WithPortWildcard(); |
+ if (url.SchemeIs(chrome::kHttpsScheme)) |
+ builder->WithPort(GetDefaultPort(chrome::kHttpsScheme)); |
+ else |
+ builder->WithPortWildcard(); |
} else { |
builder->WithPort(url.port()); |
} |