Bustage fix for Bug 567323
authorKyle Huey <me@kylehuey.com>
Fri, 23 Jul 2010 11:24:49 -0700
changeset 48148 a3e3123dca33e1ff437390c6c503ffcb811a95a1
parent 48147 c765493e9530676ee597bb9a031f7cba5393533f
child 48149 6c7a682b3faf0c8581bdae1bfdb1043c43c10dc7
push id14591
push userme@kylehuey.com
push dateFri, 23 Jul 2010 18:26:57 +0000
treeherdermozilla-central@a3e3123dca33 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs567323
milestone2.0b3pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bustage fix for Bug 567323
layout/forms/nsFileControlFrame.cpp
--- a/layout/forms/nsFileControlFrame.cpp
+++ b/layout/forms/nsFileControlFrame.cpp
@@ -328,17 +328,19 @@ nsFileControlFrame::CreateAnonymousConte
 
     CaptureCallbackData data;
     data.picker = capturePicker;
     data.mode = &mode;
     ParseAcceptAttribute(&CapturePickerAcceptCallback, (void*)&data);
 
     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;
 
       // Mark the element to be native anonymous before setting any attributes.
       mCapture->SetNativeAnonymous();
 
       mCapture->SetAttr(kNameSpaceID_None, nsGkAtoms::type,
                         NS_LITERAL_STRING("button"), PR_FALSE);