зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
b1383aea70
Коммит
646b76b0ff
|
@ -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());
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче