From 4ac1f60c1e201547302dd1d74fa6244a14ce2eef Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Wed, 21 Mar 2018 16:02:05 +1100 Subject: [PATCH] Bug 1446264 part 2 - Ignore XUL position when sizemode is maximized. r=bz MozReview-Commit-ID: 2NTZBeehXam --HG-- extra : rebase_source : 0359b7d6237e7cb70e785141d7914dce10ef2c47 --- xpfe/appshell/nsXULWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpfe/appshell/nsXULWindow.cpp b/xpfe/appshell/nsXULWindow.cpp index de872b471ae5..a7aeeb58a36a 100644 --- a/xpfe/appshell/nsXULWindow.cpp +++ b/xpfe/appshell/nsXULWindow.cpp @@ -1364,10 +1364,11 @@ bool nsXULWindow::LoadMiscPersistentAttributesFromXUL() auto* piWindow = nsPIDOMWindowOuter::From(ourWindow); piWindow->SetFullScreen(true); } else { - // For maximized windows, ignore the XUL size attributes, as setting the - // size would set the window back to the normal sizemode. + // For maximized windows, ignore the XUL size and position attributes, + // as setting them would set the window back to normal sizemode. if (sizeMode == nsSizeMode_Maximized) { mIgnoreXULSize = true; + mIgnoreXULPosition = true; } mWindow->SetSizeMode(sizeMode); }