From 85cb28f40ba5f925ba0105489f1435a5ea4528ab Mon Sep 17 00:00:00 2001 From: "peter@chromium.org" Date: Tue, 3 Sep 2013 13:58:36 +0000 Subject: [PATCH] Disable the Web Notification API on Android. Now that we always compile in the code, make sure that we don't accidentally expose the API to websites. BUG=115320 Review URL: https://chromiumcodereview.appspot.com/23514027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220937 0039d316-1c4b-4281-b951-d872f2087c98 --- content/child/runtime_features.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc index d1c41c9538d0..1d1f9af948fc 100644 --- a/content/child/runtime_features.cc +++ b/content/child/runtime_features.cc @@ -42,6 +42,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() { WebRuntimeFeatures::enablePagePopup(false); // datalist on Android is not enabled WebRuntimeFeatures::enableDataListElement(false); + // Android does not yet support the Web Notification API. crbug.com/115320 + WebRuntimeFeatures::enableNotifications(false); #endif // defined(OS_ANDROID) } -- 2.11.4.GIT