Bug 1161950 - Remove support for createEvent("CloseEvent") / initCloseEvent, r=smaug

This commit is contained in:
Andrea Marchesini 2015-05-14 12:25:36 +01:00
parent bcd095019c
commit 4ed450c1ad
3 changed files with 1 additions and 26 deletions

View File

@ -858,13 +858,6 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
}
if (aEventType.LowerCaseEqualsLiteral("scrollareaevent"))
return NS_NewDOMScrollAreaEvent(aDOMEvent, aOwner, aPresContext, nullptr);
if (aEventType.LowerCaseEqualsLiteral("closeevent")) {
CloseEventInit init;
nsRefPtr<CloseEvent> event =
CloseEvent::Constructor(aOwner, EmptyString(), init);
event.forget(aDOMEvent);
return NS_OK;
}
// XXXkhuey Chrome supports popstateevent here, even though it provides no
// initPopStateEvent method. This is nuts ... but copying it is unlikely to
// break the web.

View File

@ -15,15 +15,7 @@ interface CloseEvent : Event
{
readonly attribute boolean wasClean;
readonly attribute unsigned short code;
readonly attribute DOMString? reason;
[Throws]
void initCloseEvent(DOMString aType,
boolean aCanBubble,
boolean aCancelable,
boolean aWasClean,
unsigned short aReasonCode,
DOMString? aReason);
readonly attribute DOMString reason;
};
dictionary CloseEventInit : EventInit

View File

@ -1,10 +0,0 @@
[historical.html]
type: testharness
[createEvent("CloseEvent")]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1161950
expected: FAIL
[initCloseEvent]
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1161950
expected: FAIL