author Michael Layzell <>
Thu, 02 Mar 2017 16:55:09 -0500
changeset 348695 c2b8ead5376b5f5a3689e4faef9d814c27189ab6
parent 255772 9d754f7e1cb938fd1a3cc13f1407ec806a558c8e
child 428720 3abafc9e0915bf426db04fe6224661126e034a4e
permissions -rw-r--r--
Bug 1337056 - Part 3: Send down http[s] and ftp permissions as they are needed. Send down other permissions at startup, r=baku MozReview-Commit-ID: CUKPvFp6zpF

/* -*- Mode: C++; tab-width: 4; 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"

 * nsIWebContentHandlerRegistrar
 * Applications wishing to use web content handlers need to implement this
 * interface. Typically they will prompt the user to confirm adding an entry
 * to the local list. 
 * The component must have the contract id defined below so that nsNavigator
 * can invoke it. 

[scriptable, uuid(65a3fafd-0e4a-4b06-8b4e-6a611da63d98)]
interface nsIWebContentHandlerRegistrar : nsISupports
   * See documentation in Navigator.webidl
   * The additional contentWindow param for both methods represents the dom
   * content window from which the method has been called.
   void registerContentHandler(in DOMString mimeType,
                               in DOMString uri,
                               in DOMString title,
                               in nsISupports windowOrBrowser);
   void registerProtocolHandler(in DOMString protocol,
                                in DOMString uri,
                                in DOMString title,
                                in nsISupports windowOrBrowser);

%{ C++