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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2323563002: Add a flag to require a user gesture to add an entry to the back/forward list. (Closed)
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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); 970 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled);
971 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); 971 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled);
972 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled); 972 settings->setDNSPrefetchingEnabled(prefs.dns_prefetching_enabled);
973 settings->setDataSaverEnabled(prefs.data_saver_enabled); 973 settings->setDataSaverEnabled(prefs.data_saver_enabled);
974 settings->setLocalStorageEnabled(prefs.local_storage_enabled); 974 settings->setLocalStorageEnabled(prefs.local_storage_enabled);
975 settings->setSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled); 975 settings->setSyncXHRInDocumentsEnabled(prefs.sync_xhr_in_documents_enabled);
976 WebRuntimeFeatures::enableDatabase(prefs.databases_enabled); 976 WebRuntimeFeatures::enableDatabase(prefs.databases_enabled);
977 settings->setOfflineWebApplicationCacheEnabled( 977 settings->setOfflineWebApplicationCacheEnabled(
978 prefs.application_cache_enabled); 978 prefs.application_cache_enabled);
979 settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled); 979 settings->setCaretBrowsingEnabled(prefs.caret_browsing_enabled);
980 settings->setHistoryEntryRequiresUserGesture(
981 prefs.history_entry_requires_user_gesture);
980 settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled); 982 settings->setHyperlinkAuditingEnabled(prefs.hyperlink_auditing_enabled);
981 settings->setCookieEnabled(prefs.cookie_enabled); 983 settings->setCookieEnabled(prefs.cookie_enabled);
982 settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop); 984 settings->setNavigateOnDragDrop(prefs.navigate_on_drag_drop);
983 985
984 // By default, allow_universal_access_from_file_urls is set to false and thus 986 // By default, allow_universal_access_from_file_urls is set to false and thus
985 // we mitigate attacks from local HTML files by not granting file:// URLs 987 // we mitigate attacks from local HTML files by not granting file:// URLs
986 // universal access. Only test shell will enable this. 988 // universal access. Only test shell will enable this.
987 settings->setAllowUniversalAccessFromFileURLs( 989 settings->setAllowUniversalAccessFromFileURLs(
988 prefs.allow_universal_access_from_file_urls); 990 prefs.allow_universal_access_from_file_urls);
989 settings->setAllowFileAccessFromFileURLs( 991 settings->setAllowFileAccessFromFileURLs(
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 return render_frame->focused_pepper_plugin(); 3015 return render_frame->focused_pepper_plugin();
3014 } 3016 }
3015 frame = frame->traverseNext(false); 3017 frame = frame->traverseNext(false);
3016 } 3018 }
3017 3019
3018 return nullptr; 3020 return nullptr;
3019 } 3021 }
3020 #endif 3022 #endif
3021 3023
3022 } // namespace content 3024 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698