author Kim Moir <>
Mon, 15 May 2017 09:57:26 -0400
changeset 375975 d38398e5144e312301a5635da5e27cb6054ecdaa
parent 313961 f1ad49c0b7219e69880fc23fd0d018e5b8ec72a8
permissions -rw-r--r--
Bug 1358976 - Stop automatic triggers of nightly builds on mozilla-aurora r=dustin DONTBUILD a=test-only CLOSED TREE

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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
 * (with

interface RTCIdentityProviderRegistrar {
  void register(RTCIdentityProvider idp);

  /* Whether an IdP was passed to register() to chrome code. */
  readonly attribute boolean hasIdp;
  /* The following two chrome-only functions forward to the corresponding
   * function on the registered IdP.  This is necessary because the
   * JS-implemented WebIDL can't see these functions on `idp` above, chrome JS
   * gets an Xray onto the content code that suppresses functions, see
  /* Forward to idp.generateAssertion() */
  [ChromeOnly, Throws]
  generateAssertion(DOMString contents, DOMString origin,
                    optional DOMString usernameHint);
  /* Forward to idp.validateAssertion() */
  [ChromeOnly, Throws]
  validateAssertion(DOMString assertion, DOMString origin);

dictionary RTCIdentityProvider {
  required GenerateAssertionCallback generateAssertion;
  required ValidateAssertionCallback validateAssertion;

callback GenerateAssertionCallback =
    (DOMString contents, DOMString origin, optional DOMString usernameHint);
callback ValidateAssertionCallback =
  Promise<RTCIdentityValidationResult> (DOMString assertion, DOMString origin);

dictionary RTCIdentityAssertionResult {
  required RTCIdentityProviderDetails idp;
  required DOMString assertion;

dictionary RTCIdentityProviderDetails {
  required DOMString domain;
  DOMString protocol = "default";

dictionary RTCIdentityValidationResult {
  required DOMString identity;
  required DOMString contents;