OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/shell/common/test_runner/WebPreferences.h" |
| 6 |
| 7 using namespace blink; |
| 8 |
| 9 namespace WebTestRunner { |
| 10 |
| 11 void WebPreferences::reset() |
| 12 { |
| 13 defaultFontSize = 16; |
| 14 minimumFontSize = 0; |
| 15 DOMPasteAllowed = true; |
| 16 XSSAuditorEnabled = false; |
| 17 allowDisplayOfInsecureContent = true; |
| 18 allowFileAccessFromFileURLs = true; |
| 19 allowRunningOfInsecureContent = true; |
| 20 defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1"); |
| 21 experimentalWebGLEnabled = false; |
| 22 experimentalCSSRegionsEnabled = true; |
| 23 experimentalCSSGridLayoutEnabled = true; |
| 24 javaEnabled = false; |
| 25 javaScriptCanAccessClipboard = true; |
| 26 javaScriptCanOpenWindowsAutomatically = true; |
| 27 supportsMultipleWindows = true; |
| 28 javaScriptEnabled = true; |
| 29 loadsImagesAutomatically = true; |
| 30 offlineWebApplicationCacheEnabled = true; |
| 31 pluginsEnabled = true; |
| 32 caretBrowsingEnabled = false; |
| 33 |
| 34 // Allow those layout tests running as local files, i.e. under |
| 35 // LayoutTests/http/tests/local, to access http server. |
| 36 allowUniversalAccessFromFileURLs = true; |
| 37 |
| 38 #ifdef __APPLE__ |
| 39 editingBehavior = WebSettings::EditingBehaviorMac; |
| 40 #else |
| 41 editingBehavior = WebSettings::EditingBehaviorWin; |
| 42 #endif |
| 43 |
| 44 tabsToLinks = false; |
| 45 hyperlinkAuditingEnabled = false; |
| 46 cssCustomFilterEnabled = false; |
| 47 shouldRespectImageOrientation = false; |
| 48 asynchronousSpellCheckingEnabled = false; |
| 49 } |
| 50 |
| 51 } |
OLD | NEW |