Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / base / IframeSandboxKeywordList.h
blob1ae81f621e8987d19239a295169f9ee3996820bc
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-top-navigation-by-user-activation",
20 allowtopnavigationbyuseractivation,
21 SANDBOXED_TOPLEVEL_NAVIGATION_USER_ACTIVATION)
22 SANDBOX_KEYWORD("allow-pointer-lock", allowpointerlock, SANDBOXED_POINTER_LOCK)
23 SANDBOX_KEYWORD("allow-orientation-lock", alloworientationlock,
24 SANDBOXED_ORIENTATION_LOCK)
25 SANDBOX_KEYWORD("allow-popups", allowpopups, SANDBOXED_AUXILIARY_NAVIGATION)
26 SANDBOX_KEYWORD("allow-modals", allowmodals, SANDBOXED_MODALS)
27 SANDBOX_KEYWORD("allow-popups-to-escape-sandbox", allowpopupstoescapesandbox,
28 SANDBOX_PROPAGATES_TO_AUXILIARY_BROWSING_CONTEXTS)
29 SANDBOX_KEYWORD("allow-presentation", allowpresentation, SANDBOXED_PRESENTATION)
30 SANDBOX_KEYWORD("allow-storage-access-by-user-activation",
31 allowstorageaccessbyuseractivatetion, SANDBOXED_STORAGE_ACCESS)
32 SANDBOX_KEYWORD("allow-downloads", allowdownloads, SANDBOXED_ALLOW_DOWNLOADS)
33 SANDBOX_KEYWORD("allow-top-navigation-to-custom-protocols",
34 allowtopnavigationcustomprotocols,
35 SANDBOXED_TOPLEVEL_NAVIGATION_CUSTOM_PROTOCOLS)