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

Side by Side Diff: content/public/common/content_features.cc

Issue 2092293002: Block framebusts without a user gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_features.h" 6 #include "content/public/common/content_features.h"
7 7
8 namespace features { 8 namespace features {
9 9
10 // All features in alphabetical order. 10 // All features in alphabetical order.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Enables the Feature Policy framework for granting and removing access to 42 // Enables the Feature Policy framework for granting and removing access to
43 // other features through HTTP headers. 43 // other features through HTTP headers.
44 const base::Feature kFeaturePolicy{"FeaturePolicy", 44 const base::Feature kFeaturePolicy{"FeaturePolicy",
45 base::FEATURE_DISABLED_BY_DEFAULT}; 45 base::FEATURE_DISABLED_BY_DEFAULT};
46 46
47 // Enables a blink::FontCache optimization that reuses a font to serve different 47 // Enables a blink::FontCache optimization that reuses a font to serve different
48 // size of font. 48 // size of font.
49 const base::Feature kFontCacheScaling{"FontCacheScaling", 49 const base::Feature kFontCacheScaling{"FontCacheScaling",
50 base::FEATURE_DISABLED_BY_DEFAULT}; 50 base::FEATURE_DISABLED_BY_DEFAULT};
51 51
52 // Enables a blink::FontCache optimization that reuses a font to serve different
53 // size of font.
54 const base::Feature kFramebustingNeedsSameOriginOrUserGesture{
55 "FramebustingNeedsSameOriginOrUserGesture",
56 base::FEATURE_DISABLED_BY_DEFAULT};
57
52 // Can main thread be pipelined with activation. Always disabled for devices 58 // Can main thread be pipelined with activation. Always disabled for devices
53 // with fewer than 4 cores irrespective of this flag. Can also be overridden by 59 // with fewer than 4 cores irrespective of this flag. Can also be overridden by
54 // --enable(disable)-main-frame-before-activation command line flag. 60 // --enable(disable)-main-frame-before-activation command line flag.
55 const base::Feature kMainFrameBeforeActivation{ 61 const base::Feature kMainFrameBeforeActivation{
56 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT}; 62 "MainFrameBeforeActivation", base::FEATURE_DISABLED_BY_DEFAULT};
57 63
58 // FeatureList definition for trials to enable the download button on 64 // FeatureList definition for trials to enable the download button on
59 // MediaDocument. 65 // MediaDocument.
60 const base::Feature kMediaDocumentDownloadButton{ 66 const base::Feature kMediaDocumentDownloadButton{
61 "MediaDocumentDownloadButton", 67 "MediaDocumentDownloadButton",
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 #endif 195 #endif
190 196
191 #if defined(OS_WIN) 197 #if defined(OS_WIN)
192 // Emergency "off switch" for new Windows sandbox security mitigation, 198 // Emergency "off switch" for new Windows sandbox security mitigation,
193 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 199 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
194 const base::Feature kWinSboxDisableExtensionPoints{ 200 const base::Feature kWinSboxDisableExtensionPoints{
195 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 201 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
196 #endif 202 #endif
197 203
198 } // namespace features 204 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698