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

Unified Diff: components/content_settings/core/browser/content_settings_info.h

Issue 1575623002: Disable Web Notifications in Incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permfix
Patch Set: Removed INHERIT_IN_INCOGNITO_EXCEPT_ALLOW Created 4 years, 11 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
Index: components/content_settings/core/browser/content_settings_info.h
diff --git a/components/content_settings/core/browser/content_settings_info.h b/components/content_settings/core/browser/content_settings_info.h
index b7018dfff5209db38fb0b1c92d812f998764edfe..f6c8f96a573298f0c3e89be54d01ff71eeab61e8 100644
--- a/components/content_settings/core/browser/content_settings_info.h
+++ b/components/content_settings/core/browser/content_settings_info.h
@@ -23,10 +23,15 @@ class ContentSettingsInfo {
// as usual.
INHERIT_IN_INCOGNITO,
- // Content setting will only partially inherit from regular to incognito
- // profiles: BLOCK will inherit as usual, but ALLOW will become ASK.
- // This is unusual, so seek privacy review before using this.
- INHERIT_IN_INCOGNITO_EXCEPT_ALLOW
+ // Content setting is disallowed in incognito. However, to prevent sites
+ // from using this setting to detect whether incognito mode is active, the
+ // actual behavior is more subtle. The content setting will only partially
+ // inherit from regular to incognito profiles: BLOCK will inherit as usual,
+ // but ALLOW will become ASK. Only once the website actually requests the
+ // permission, will it then be automatically denied after a random time
+ // delay (simulating a user clicking a bubble/infobar). This is unusual, so
+ // seek privacy review before using this.
+ DENY_IN_INCOGNITO_AFTER_DELAY
raymes 2016/01/12 06:00:41 Now that I think about it, could we instead remove
johnme 2016/01/12 18:04:52 Done. I've moved the main behavior to a simple ove
};
// This object does not take ownership of |website_settings_info|.

Powered by Google App Engine
This is Rietveld 408576698