2003-04-15 23:34:08 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2003-04-15 23:34:08 +00:00
|
|
|
|
|
|
|
#include "nsIDOMEvent.idl"
|
|
|
|
|
|
|
|
interface nsIURI;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDOMPopupBlockedEvent interface is the datatype for events
|
|
|
|
* posted when a popup window is blocked.
|
|
|
|
*/
|
|
|
|
|
2012-12-22 08:18:08 +00:00
|
|
|
[scriptable, builtinclass, uuid(f6e77f79-d178-419d-8177-dfae4392d318)]
|
2003-04-15 23:34:08 +00:00
|
|
|
interface nsIDOMPopupBlockedEvent : nsIDOMEvent
|
|
|
|
{
|
2007-01-13 01:08:43 +00:00
|
|
|
/**
|
|
|
|
* The window object that attempted to open the blocked popup
|
|
|
|
* (i.e. the window object on which open() was called).
|
|
|
|
*/
|
|
|
|
readonly attribute nsIDOMWindow requestingWindow;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The URI of the window that was blocked.
|
|
|
|
*/
|
2003-04-15 23:34:08 +00:00
|
|
|
readonly attribute nsIURI popupWindowURI;
|
|
|
|
|
2005-11-01 01:41:00 +00:00
|
|
|
/**
|
|
|
|
* The window name passed to the window.open() call
|
|
|
|
* (as the second argument)
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString popupWindowName;
|
|
|
|
|
2012-08-20 18:26:34 +00:00
|
|
|
/**
|
|
|
|
* The string of features passed to the window.open() call
|
|
|
|
* (as the third argument)
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString popupWindowFeatures;
|
|
|
|
|
2003-04-15 23:34:08 +00:00
|
|
|
void initPopupBlockedEvent(in DOMString typeArg,
|
|
|
|
in boolean canBubbleArg,
|
|
|
|
in boolean cancelableArg,
|
2007-01-13 01:08:43 +00:00
|
|
|
in nsIDOMWindow requestingWindow,
|
2004-02-10 18:22:23 +00:00
|
|
|
in nsIURI popupWindowURI,
|
2005-11-01 01:41:00 +00:00
|
|
|
in DOMString popupWindowName,
|
2004-02-10 18:22:23 +00:00
|
|
|
in DOMString popupWindowFeatures);
|
2003-04-15 23:34:08 +00:00
|
|
|
};
|
2012-08-20 18:26:34 +00:00
|
|
|
|
|
|
|
dictionary PopupBlockedEventInit : EventInit
|
|
|
|
{
|
|
|
|
nsIDOMWindow requestingWindow;
|
|
|
|
nsIURI popupWindowURI;
|
|
|
|
DOMString popupWindowFeatures;
|
|
|
|
DOMString popupWindowName;
|
|
|
|
};
|