Bug 579621. Don't create widgets for chrome subdocuments of chrome windows. r=tnikkel

This commit is contained in:
Robert O'Callahan 2010-08-13 21:57:48 +12:00
parent 7e149ba847
commit 07ca177c02

View File

@ -965,7 +965,7 @@ nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType)
mInnerView = innerView;
viewMan->InsertChild(outerView, innerView, nsnull, PR_TRUE);
if (aContentType != eContentTypeContentFrame) {
if (aContentType == eContentTypeContent) {
// widget needed.
nsresult rv = innerView->CreateWidget(kCChildCID, nsnull, nsnull,
PR_TRUE, PR_TRUE, aContentType);