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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /* NOTE: no include guard; this file is meant to maybe be included multiple
8 times. It has a list of the sandbox keywords we support, with their
9 corresponding sandbox flags. */
11 // Each entry has the sandbox keyword as a string, the corresponding nsGkAtoms
12 // atom name, and the corresponding sandbox flags.
13 SANDBOX_KEYWORD("allow-same-origin", allowsameorigin
, SANDBOXED_ORIGIN
)
14 SANDBOX_KEYWORD("allow-forms", allowforms
, SANDBOXED_FORMS
)
15 SANDBOX_KEYWORD("allow-scripts", allowscripts
,
16 SANDBOXED_SCRIPTS
| SANDBOXED_AUTOMATIC_FEATURES
)
17 SANDBOX_KEYWORD("allow-top-navigation", allowtopnavigation
,
18 SANDBOXED_TOPLEVEL_NAVIGATION
)
19 SANDBOX_KEYWORD("allow-pointer-lock", allowpointerlock
, SANDBOXED_POINTER_LOCK
)
20 SANDBOX_KEYWORD("allow-orientation-lock", alloworientationlock
,
21 SANDBOXED_ORIENTATION_LOCK
)
22 SANDBOX_KEYWORD("allow-popups", allowpopups
, SANDBOXED_AUXILIARY_NAVIGATION
)
23 SANDBOX_KEYWORD("allow-modals", allowmodals
, SANDBOXED_MODALS
)
24 SANDBOX_KEYWORD("allow-popups-to-escape-sandbox", allowpopupstoescapesandbox
,
25 SANDBOX_PROPAGATES_TO_AUXILIARY_BROWSING_CONTEXTS
)
26 SANDBOX_KEYWORD("allow-presentation", allowpresentation
, SANDBOXED_PRESENTATION
)
27 SANDBOX_KEYWORD("allow-storage-access-by-user-activation",
28 allowstorageaccessbyuseractivatetion
, SANDBOXED_STORAGE_ACCESS
)