Bustage fix for Bug 567323

This commit is contained in:
Kyle Huey
2010-07-23 11:24:49 -07:00
parent 2eba34dcdf
commit cc3e6b5de0

View File

@@ -333,7 +333,9 @@ nsFileControlFrame::CreateAnonymousContent(nsTArray<nsIContent*>& aElements)
if (mode != 0) {
mCaptureMouseListener->mMode = mode;
NS_NewHTMLElement(getter_AddRefs(mCapture), nodeInfo, PR_FALSE);
nodeInfo = doc->NodeInfoManager()->GetNodeInfo(nsGkAtoms::input, nsnull,
kNameSpaceID_XHTML);
NS_NewHTMLElement(getter_AddRefs(mCapture), nodeInfo.forget(), PR_FALSE);
if (!mCapture)
return NS_ERROR_OUT_OF_MEMORY;