Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/dom/clients/manager/ClientPrefs.cpp
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#include "ClientPrefs.h"
8
9
#include "mozilla/Preferences.h"
10
11
namespace mozilla {
12
namespace dom {
13
14
namespace {
15
16
bool gDataURLUniqueOpaqueOrigin = false;
17
18
} // anonymous namespace
19
20
void
21
ClientPrefsInit()
22
3
{
23
3
  Preferences::AddBoolVarCache(&gDataURLUniqueOpaqueOrigin,
24
3
                               "security.data_uri.unique_opaque_origin",
25
3
                               false);
26
3
}
27
28
bool
29
ClientPrefsGetDataURLUniqueOpaqueOrigin()
30
0
{
31
0
  return gDataURLUniqueOpaqueOrigin;
32
0
}
33
34
} // namespace dom
35
} // namespace mozilla