One more minor tweak for blocker bug 138007. Making iframe.src=... not load the src twice when the iframe is visible. r=jkeiser@netscape.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@119308 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -552,8 +552,9 @@ nsHTMLFrameOuterFrame::AttributeChanged(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsIAtom> type;
|
||||
aChild->GetTag(*getter_AddRefs(type));
|
||||
|
||||
if ((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
|
||||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) {
|
||||
if (((type != nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::src) ||
|
||||
(type == nsHTMLAtoms::object && aAttribute == nsHTMLAtoms::data)) &&
|
||||
mOwnsFrameLoader) {
|
||||
nsHTMLFrameInnerFrame* firstChild =
|
||||
NS_STATIC_CAST(nsHTMLFrameInnerFrame*, mFrames.FirstChild());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user