mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1161950 - Remove support for createEvent("CloseEvent") / initCloseEvent, r=smaug
This commit is contained in:
parent
bcd095019c
commit
4ed450c1ad
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user