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.
5 #include "content/shell/common/test_runner/WebPreferences.h"
9 namespace WebTestRunner
{
11 WebPreferences::WebPreferences()
16 void WebPreferences::reset()
20 DOMPasteAllowed
= true;
21 XSSAuditorEnabled
= false;
22 allowDisplayOfInsecureContent
= true;
23 allowFileAccessFromFileURLs
= true;
24 allowRunningOfInsecureContent
= true;
25 defaultTextEncodingName
= WebString::fromUTF8("ISO-8859-1");
26 experimentalWebGLEnabled
= false;
27 experimentalCSSRegionsEnabled
= true;
28 experimentalCSSGridLayoutEnabled
= true;
30 javaScriptCanAccessClipboard
= true;
31 javaScriptCanOpenWindowsAutomatically
= true;
32 supportsMultipleWindows
= true;
33 javaScriptEnabled
= true;
34 loadsImagesAutomatically
= true;
35 offlineWebApplicationCacheEnabled
= true;
36 pluginsEnabled
= true;
37 caretBrowsingEnabled
= false;
39 // Allow those layout tests running as local files, i.e. under
40 // LayoutTests/http/tests/local, to access http server.
41 allowUniversalAccessFromFileURLs
= true;
44 editingBehavior
= WebSettings::EditingBehaviorMac
;
46 editingBehavior
= WebSettings::EditingBehaviorWin
;
50 hyperlinkAuditingEnabled
= false;
51 shouldRespectImageOrientation
= false;
52 asynchronousSpellCheckingEnabled
= false;