summaryrefslogtreecommitdiffstats
path: root/content/shell/common/test_runner/WebPreferences.cpp
blob: a8952e38fb8a29b26be3403204d92bc18c16e2b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2013 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 "content/shell/common/test_runner/WebPreferences.h"

using namespace blink;

namespace WebTestRunner {

void WebPreferences::reset()
{
    defaultFontSize = 16;
    minimumFontSize = 0;
    DOMPasteAllowed = true;
    XSSAuditorEnabled = false;
    allowDisplayOfInsecureContent = true;
    allowFileAccessFromFileURLs = true;
    allowRunningOfInsecureContent = true;
    defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1");
    experimentalWebGLEnabled = false;
    experimentalCSSRegionsEnabled = true;
    experimentalCSSGridLayoutEnabled = true;
    javaEnabled = false;
    javaScriptCanAccessClipboard = true;
    javaScriptCanOpenWindowsAutomatically = true;
    supportsMultipleWindows = true;
    javaScriptEnabled = true;
    loadsImagesAutomatically = true;
    offlineWebApplicationCacheEnabled = true;
    pluginsEnabled = true;
    caretBrowsingEnabled = false;

    // Allow those layout tests running as local files, i.e. under
    // LayoutTests/http/tests/local, to access http server.
    allowUniversalAccessFromFileURLs = true;

#ifdef __APPLE__
    editingBehavior = WebSettings::EditingBehaviorMac;
#else
    editingBehavior = WebSettings::EditingBehaviorWin;
#endif

    tabsToLinks = false;
    hyperlinkAuditingEnabled = false;
    cssCustomFilterEnabled = false;
    shouldRespectImageOrientation = false;
    asynchronousSpellCheckingEnabled = false;
}

}