1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22

content / public / browser / presentation_receiver_flags.h [blame]

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_RECEIVER_FLAGS_H_
#define CONTENT_PUBLIC_BROWSER_PRESENTATION_RECEIVER_FLAGS_H_

#include "services/network/public/cpp/web_sandbox_flags.h"

namespace content {

// Disable popups, modals, and top-level navigation for presentation receivers.
// See:
// https://w3c.github.io/presentation-api/#creating-a-receiving-browsing-context
constexpr network::mojom::WebSandboxFlags kPresentationReceiverSandboxFlags =
    network::mojom::WebSandboxFlags::kModals |
    network::mojom::WebSandboxFlags::kPopups |
    network::mojom::WebSandboxFlags::kTopNavigation;

}  // namespace content

#endif  // CONTENT_PUBLIC_BROWSER_PRESENTATION_RECEIVER_FLAGS_H_