partly import changes from tenfourfox:

- #622: M1660537 M1641487(modified) M1645492 (291688840)
This commit is contained in:
roytam1 2020-09-19 07:15:01 +08:00
commit 64ccce7c22
2 changed files with 8 additions and 33 deletions

View file

@ -2432,6 +2432,10 @@ nsFrameLoader::CheckForRecursiveLoad(nsIURI* aURI)
nsresult
nsFrameLoader::GetWindowDimensions(nsIntRect& aRect)
{
if (!mOwnerContent) {
return NS_ERROR_FAILURE;
}
// Need to get outer window position here
nsIDocument* doc = mOwnerContent->GetComposedDoc();
if (!doc) {