mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 21:51:51 -10:00
Other browsers do not support any of these (IIRC), telemetry reports essentially zero usage, and supporting them is contrary to the DOM spec. Notes on specific events: CommandEvent and SimpleGestureEvent: These are not supposed to be web-exposed APIs, so I hid the interfaces from web content too (necessary to avoid test_all_synthetic_events.html failures). DataContainerEvent: This was a non-standard substitute for CustomEvent that seemed to have only one user, so I removed it entirely and switched the user (MozillaFileLogger.js) to CustomEvent. ScrollAreaEvent: This is entirely non-standard, but we apparently expose it deliberately to web content, so I didn't see any reason to remove it from createEvent. SimpleGestureEvent and XULCommandEvent: Can still be created from createEvent(), but not by content. TimeEvent: This is still in because it has no constructor, so there's no other way to create it. Ideally we'd update the SMIL spec to add a constructor. I did remove TimeEvents. MozReview-Commit-ID: 7Yi2oCl9SM2
16 lines
610 B
Plaintext
16 lines
610 B
Plaintext
/* -*- 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/.
|
|
*/
|
|
|
|
[Func="IsChromeOrXBL"]
|
|
interface CommandEvent : Event {
|
|
readonly attribute DOMString? command;
|
|
|
|
void initCommandEvent(DOMString type,
|
|
optional boolean canBubble = false,
|
|
optional boolean cancelable = false,
|
|
optional DOMString? command = null);
|
|
};
|