зеркало из https://github.com/mozilla/pjs.git
Bug 628888 - Ensure external documents loaded after page show get page show update; r=dholbert, bzbarsky; a=roc
This commit is contained in:
Родитель
c440c53846
Коммит
c4f48a0e6e
|
@ -883,6 +883,17 @@ TransferZoomLevels(nsIDocument* aFromDoc,
|
|||
toCtxt->SetTextZoom(fromCtxt->TextZoom());
|
||||
}
|
||||
|
||||
void
|
||||
TransferShowingState(nsIDocument* aFromDoc, nsIDocument* aToDoc)
|
||||
{
|
||||
NS_ABORT_IF_FALSE(aFromDoc && aToDoc,
|
||||
"transferring showing state from/to null doc");
|
||||
|
||||
if (aFromDoc->IsShowing()) {
|
||||
aToDoc->OnPageShow(PR_TRUE, nsnull);
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsExternalResourceMap::AddExternalResource(nsIURI* aURI,
|
||||
nsIDocumentViewer* aViewer,
|
||||
|
@ -942,6 +953,7 @@ nsExternalResourceMap::AddExternalResource(nsIURI* aURI,
|
|||
newResource->mLoadGroup = aLoadGroup;
|
||||
if (doc) {
|
||||
TransferZoomLevels(aDisplayDocument, doc);
|
||||
TransferShowingState(aDisplayDocument, doc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче