Commit 7446b949 authored by Maurice Dauer's avatar Maurice Dauer Committed by Pier Angelo Vendrame
Browse files

Bug 1419501 - Part 3: Introduce `RedirectBlockedEvent`,...

Bug 1419501 - Part 3: Introduce `RedirectBlockedEvent`, r=maltejur,webidl,frontend-codestyle-reviewers,smaug

Differential Revision: https://phabricator.services.mozilla.com/D254679
parent b3a9730f
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
/* -*- 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 http://mozilla.org/MPL/2.0/.
 */

interface URI;

[ChromeOnly, Exposed=Window]
interface RedirectBlockedEvent : Event
{
  constructor(DOMString type,
              optional RedirectBlockedEventInit eventInitDict = {});

  readonly attribute Window? requestingWindow;
  readonly attribute URI? redirectURI;
};

dictionary RedirectBlockedEventInit : EventInit
{
  Window? requestingWindow = null;
  URI? redirectURI = null;
};
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ GENERATED_EVENTS_WEBIDL_FILES = [
    "CSSCustomPropertyRegisteredEvent.webidl",
    "PluginCrashedEvent.webidl",
    "PopupPositionedEvent.webidl",
    "RedirectBlockedEvent.webidl",
    "StyleSheetApplicableStateChangeEvent.webidl",
    "StyleSheetRemovedEvent.webidl",
]