blob: 9f5b855da492b18667ce454a650a9c732b83b8d0 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/web/public/features.h"
namespace web {
namespace features {
bool StorePendingItemInContext() {
if (base::FeatureList::IsEnabled(web::features::kSlimNavigationManager)) {
// TODO(crbug.com/899827): Store Pending Item in NavigationContext with
// slim-navigation-manager.
return false;
}
return base::FeatureList::IsEnabled(kStorePendingItemInContext);
}
const base::Feature kIgnoresViewportScaleLimits{
"IgnoresViewportScaleLimits", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kWebFrameMessaging{"WebFrameMessaging",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kSlimNavigationManager{"SlimNavigationManager",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kStorePendingItemInContext{
"StorePendingItemInContext", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kWKHTTPSystemCookieStore{"WKHTTPSystemCookieStore",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kCrashOnUnexpectedURLChange{
"CrashOnUnexpectedURLChange", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kBrowserContainerFullscreen{
"BrowserContainerFullscreen", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kOutOfWebFullscreen{"OutOfWebFullscreen",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kHistoryClobberWorkaround{
"WKWebViewHistoryClobberWorkaround", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kBlockUniversalLinksInOffTheRecordMode{
"BlockUniversalLinksInOffTheRecord", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kWebUISchemeHandling{"WebUISchemeHandling",
base::FEATURE_DISABLED_BY_DEFAULT};
bool WebUISchemeHandlingEnabled() {
if (@available(iOS 11, *)) {
return base::FeatureList::IsEnabled(web::features::kWebUISchemeHandling);
}
return false;
}
} // namespace features
} // namespace web