uriloader/exthandler/nsIContentDispatchChooser.idl
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Mon, 24 Jan 2022 18:59:36 +0000
changeset 673849 227286df21dd1d6efb21dc835e9f4c7916872f67
parent 635618 72cde81e9b2142078b3401916d5e88933a1a2272
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump el -> 683aa1b3b9bfbac72237fc4ed9671217a36c80e7 en-CA -> 395a911d757bbc5cdef255014e5d9ae6a0684648 es-AR -> f1d2b95d044c6bf81d2b7cf06bd3fd465a5b52ac es-ES -> 50ae36cca91076145fd3f5a15cdcf887842c2b59 es-MX -> df77986c4a0631df4824c7e2943f38962252c8f5 et -> 802dca6a9abeeca36cfb214c306c88e66de457ca hu -> f8db286b82c2798dc8e7cd2d609c6c29cd882de9 uz -> 1aa8a6ec95bb40acbfd8569d820471d3889675e4

/* 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 http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsIHandlerInfo;
interface nsIPrincipal;
interface nsIURI;
webidl BrowsingContext;

/**
 * This is used to ask a user what they would like to do with a given piece of
 * content.
 */
[scriptable, uuid(456ca3b2-02be-4f97-89a2-08c08d3ad88f)]
interface nsIContentDispatchChooser : nsISupports {
 /**
  * Opens the handler associated with the given resource.
  * If the caller does not have permission or no handler is set, we ask the
  * user to grant permission and pick a handler.
  *
  * @param aHander
  *        The interface describing the details of how this content should or
  *        can be handled.
  * @param aURI
  *        The URI of the resource that we are asking about.
  * @param aTriggeringPrincipal
  *        The principal making the request.
  * @param aBrowsingContext
  *        The browsing context where the load should happen.
  * @param aWasTriggeredExternally
  *        True if the load was tripped by an external app.
  */
  void handleURI(in nsIHandlerInfo aHandler,
           in nsIURI aURI,
           in nsIPrincipal aTriggeringPrincipal,
           in BrowsingContext aBrowsingContext,
           [optional] in bool aWasTriggeredExternally);
};