author Mike Hommey <>
Tue, 22 Mar 2016 14:03:26 +0900
changeset 289943 aa4bcd9eadcb994886c14fd96d53aabeffe3f31c
parent 254022 689fd01b7b3ce084c1372cfd55869479dc128dbb
child 294700 58fc5fb221e0eb4dfb23779215873fb870e980c4
permissions -rw-r--r--
Bug 1258618 - Serialize substs/configs and defines bools as '1' or '' in config.status. r=nalexander This allows to use True and False as values given to set_config/set_define in moz.configure files, while postponing having to deal with the long tail of things depending on the values from substs and defines. Ideally, everything would handle the bools just fine, but there are too many things involved to deal with this right now: scripts using buildconfig.{substs,defines}, scripts using ConfigEnvironment (e.g., ConfigEnvironment itself, etc.

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#include "nsISupports.idl"
#include "nsIURI.idl"

 * This interface allows the security manager to query custom per-addon security
 * policy.
interface nsIAddonPolicyService : nsISupports
   * Returns true if unprivileged code associated with the given addon may load
   * data from |aURI|.
  boolean addonMayLoadURI(in AString aAddonId, in nsIURI aURI);

   * Returns true if a given extension:// URI is web-accessible.
  boolean extensionURILoadableByAnyone(in nsIURI aURI);

   * Maps an extension URI to the ID of the addon it belongs to.
  AString extensionURIToAddonId(in nsIURI aURI);