Index: Source/core/html/HTMLFrameElementBase.cpp |
diff --git a/Source/core/html/HTMLFrameElementBase.cpp b/Source/core/html/HTMLFrameElementBase.cpp |
index 05ad91ac75a8e61d7f5d14f69ff92385ad93f971..088fca8e50f44910efc54217ecfea36890779aaa 100644 |
--- a/Source/core/html/HTMLFrameElementBase.cpp |
+++ b/Source/core/html/HTMLFrameElementBase.cpp |
@@ -127,7 +127,7 @@ void HTMLFrameElementBase::parseAttribute(const QualifiedName& name, const Atomi |
// FIXME: If we are already attached, this has no effect. |
} else if (name == onbeforeunloadAttr) { |
// FIXME: should <frame> elements have beforeunload handlers? |
- setAttributeEventListener(EventTypeNames::beforeunload, createAttributeEventListener(this, name, value)); |
+ setAttributeEventListener(EventTypeNames::beforeunload, createAttributeEventListener(this, name, value, eventParameterName())); |
} else |
HTMLFrameOwnerElement::parseAttribute(name, value); |
} |