gecko-dev/xpfe/appshell
Xidorn Quan 0e6f1f5155 Bug 1446264 part 3 - Avoid ignoring and persisting size/position/sizemode when we are setting them from SizeShell(). r=bz,florian
When SetSize etc. are called before OnChromeLoaded has been invoked,
the functions assume that the window initialization code wants to size
the window specifically, and thus ignore the values from the <window>
element.

However, bug 1439875 changes the behavior so that SizeShell is also
invoked before OnChromeLoaded, which confuses the functions above, and
causes some of the attributes not to be loaded properly.

This patch adds a separate flag to avoid ignoring those attributes when
those functions are invoked as part of SizeShell itself.

It can cause extra reflow if the window is opened in maximized state,
and thus the new whitelist items. They may be fixed by bug 1448199.

MozReview-Commit-ID: 7jT8w9KGmzy

--HG--
extra : rebase_source : d970be5b1ae0588f6b0b63e2bd6a711853c82478
2018-03-19 14:22:38 +11:00
..
test Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
LiveResizeListener.h
moz.build Bug 1434399 part 9. Remove nsIDOMXULDocument::Persist. r=mystor 2018-01-31 14:49:28 -05:00
nsAppShellCID.h
nsAppShellFactory.cpp
nsAppShellService.cpp Backout 84bcb5742e0c (bug 1405577) to replace with a slimmer patch. r=me 2017-12-04 15:06:26 -05:00
nsAppShellService.h
nsAppShellWindowEnumerator.cpp Bug 1434318 part 4. Remove nsIDOMDocument's documentElement attribute. r=mystor 2018-01-31 15:18:10 -05:00
nsAppShellWindowEnumerator.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
nsChromeTreeOwner.cpp Bug 1223303 - Fix nsChromeTreeOwner::OnLocationChanged to set nsXULWindow::mChromeLoaded to false when loading a different document, r=mystor. 2018-02-08 12:29:10 +01:00
nsChromeTreeOwner.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsContentTreeOwner.cpp Bug 1383876 - Part 3: Remove prerendering methods from nsIWebBrowserChrome3.idl, r=freesamael 2018-01-12 17:52:56 -05:00
nsContentTreeOwner.h
nsIAppShellService.idl
nsIPopupWindowManager.idl
nsIWindowMediator.idl Bug 1445792 - Merge nsIWindowMediator_44 back into nsIWindowMediator. r=dbaron 2018-03-20 05:27:00 -04:00
nsIWindowMediatorListener.idl Bug 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins 2017-12-14 21:55:44 -06:00
nsIWindowlessBrowser.idl
nsIXULBrowserWindow.idl Bug 1380294: Anchor non-tab tooltips to the correct remote browser. r=aswan 2017-08-01 15:01:06 -07:00
nsIXULWindow.idl Bug 1444525: Persist XUL window size attributes as the outer size, not inner size. r=bz 2018-03-17 15:55:24 +01:00
nsWebShellWindow.cpp Bug 1446533 part 12. Remove nsIDOMCharacterData. r=mystor 2018-03-19 15:47:42 -04:00
nsWebShellWindow.h Bug 1416878 - Move the implementation of nsIWidgetListener from nsWebBrowser / nsWebShellWindow to a separate object. r=bz 2018-01-10 13:04:43 +02:00
nsWindowMediator.cpp Bug 1445792 - Merge nsIWindowMediator_44 back into nsIWindowMediator. r=dbaron 2018-03-20 05:27:00 -04:00
nsWindowMediator.h Bug 1445792 - Merge nsIWindowMediator_44 back into nsIWindowMediator. r=dbaron 2018-03-20 05:27:00 -04:00
nsXULWindow.cpp Bug 1446264 part 3 - Avoid ignoring and persisting size/position/sizemode when we are setting them from SizeShell(). r=bz,florian 2018-03-19 14:22:38 +11:00
nsXULWindow.h Bug 1446264 part 3 - Avoid ignoring and persisting size/position/sizemode when we are setting them from SizeShell(). r=bz,florian 2018-03-19 14:22:38 +11:00