chrome.cml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. include: [
  3. "syslog/client.shard.cml",
  4. "vulkan/client.shard.cml",
  5. ],
  6. program: {
  7. runner: "elf",
  8. binary: "chrome",
  9. args: [
  10. "--enable-cfv2",
  11. "--enable-features=Vulkan,CanvasOopRasterization",
  12. ],
  13. lifecycle: { stop_event: "notify" },
  14. // SandboxPolicyFuchsia currently expects stderr & stdout to exist.
  15. // Route them to the LogSink, to capture any content they emit, for
  16. // now.
  17. forward_stdout_to: "log",
  18. forward_stderr_to: "log",
  19. // Required to allow JIT in child processes such as renderers.
  20. // Known as 'deprecated-ambient-replace-as-executable' in CFv1.
  21. job_policy_ambient_mark_vmo_exec: "true",
  22. },
  23. capabilities: [
  24. {
  25. protocol: [
  26. "fuchsia.element.Manager",
  27. "fuchsia.ui.app.ViewProvider",
  28. ],
  29. },
  30. ],
  31. use: [
  32. {
  33. storage: "cache",
  34. path: "/cache",
  35. },
  36. {
  37. storage: "data",
  38. path: "/data",
  39. },
  40. {
  41. storage: "tmp",
  42. path: "/tmp",
  43. },
  44. {
  45. directory: "root-ssl-certificates",
  46. rights: [ "r*" ],
  47. path: "/config/ssl",
  48. },
  49. {
  50. protocol: [
  51. "fuchsia.buildinfo.Provider",
  52. "fuchsia.camera3.DeviceWatcher",
  53. "fuchsia.device.NameProvider",
  54. "fuchsia.element.GraphicalPresenter",
  55. "fuchsia.fonts.Provider",
  56. "fuchsia.hwinfo.Product",
  57. "fuchsia.input.virtualkeyboard.ControllerCreator",
  58. "fuchsia.intl.PropertyProvider",
  59. "fuchsia.media.Audio",
  60. "fuchsia.media.AudioDeviceEnumerator",
  61. "fuchsia.media.ProfileProvider",
  62. "fuchsia.mediacodec.CodecFactory",
  63. "fuchsia.memorypressure.Provider",
  64. "fuchsia.net.interfaces.State",
  65. "fuchsia.net.name.Lookup",
  66. "fuchsia.posix.socket.Provider",
  67. "fuchsia.process.Launcher",
  68. "fuchsia.ui.composition.Allocator",
  69. "fuchsia.ui.composition.Flatland",
  70. "fuchsia.ui.composition.ScreenCapture",
  71. "fuchsia.ui.input3.Keyboard",
  72. "fuchsia.ui.scenic.Scenic",
  73. ],
  74. },
  75. ],
  76. expose: [
  77. {
  78. protocol: [
  79. "fuchsia.element.Manager",
  80. "fuchsia.ui.app.ViewProvider",
  81. ],
  82. from: "self",
  83. },
  84. ],
  85. }