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:
jst%netscape.com
2002-04-18 21:54:48 +00:00
parent a0ab9e862a
commit 3796c7c429
2 changed files with 6 additions and 4 deletions

View File

@@ -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());