fune/toolkit/components/windowwatcher/nsIPromptCollection.idl
Agi Sferro b96d141f13 Bug 1629113 - Add nsIPromptCollection. r=johannh,pbz
This new prompt service will handle specialized prompts like beforeUnloadCheck.

The plan is to eventually phase out generic prompts like confirmExBC and just
have specialized prompts.

Differential Revision: https://phabricator.services.mozilla.com/D72720
2020-05-22 16:24:12 +00:00

25 lines
759 B
Text

/* 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"
webidl BrowsingContext;
/**
* This interface contains various specialized prompts that the app can
* implement.
*/
[scriptable, uuid(7913837c-9623-11ea-bb37-0242ac130002)]
interface nsIPromptCollection : nsISupports
{
/**
* Puts up a dialog for the before unload prompt.
*
* @param aBrowsingContext
* The browsing context the prompt should be opened for.
*
* @return true if the page should be allowed to navigate away
*/
boolean beforeUnloadCheck(in BrowsingContext aBrowsingContext);
};