gecko-dev/xpfe/appshell
Xidorn Quan dcd5c4908e Bug 1442521 - Make width/height attr on <window> mean the inner size in nsXULWindow. r=bz
It seems that the layout system assumes those attributes are for size of
the <window> element, i.e. inner window size, not outer window size.

See for example nsContainerFrame::SyncWindowProperties. It reads
{min,max}{width,height} attributes from the element via
nsIFrame::GetXUL{Min,Max}Size, and passes them into SetSizeConstraints.
The latter inflates the sizes with window decoration size before calling
into widget code. It can also be seen that various XUL size related
methods on nsBox and nsIFrame put the same assumption.

The test test_windowminmaxsize.xul apparently puts the same assumption
as the layout system on the meaning of those properties.

(Another test test_resize_move_windows.xul, which tests effectiveness of
features of window.open, also fails if we size the window earlier than
current in bug 1439875, and doesn't fail with this patch on top. It may
indicate that it makes use of the same assumption, but I can't really
figure out how it does so.)

MozReview-Commit-ID: IdMwDc59Ltg

--HG--
extra : rebase_source : ae46c23e450f556cc4608b512890c4e27cf8623e
2018-03-02 22:42:57 +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
nsIWindowlessBrowser.idl
nsIWindowMediator.idl Bug 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins 2017-12-14 21:55:44 -06:00
nsIWindowMediatorListener.idl Bug 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins 2017-12-14 21:55:44 -06:00
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
nsWebShellWindow.cpp Bug 1434399 part 13. Remove C++ uses of nsIDOMXULDocument. r=mystor 2018-01-31 14:49:28 -05: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 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins 2017-12-14 21:55:44 -06:00
nsWindowMediator.h Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
nsXULWindow.cpp Bug 1442521 - Make width/height attr on <window> mean the inner size in nsXULWindow. r=bz 2018-03-02 22:42:57 +11:00
nsXULWindow.h Bug 1418558 part 1. Add MOZ_CAN_RUN_SCRIPT annotations to most Element methods that call GetPrimaryFrame. r=mystor 2017-12-05 11:18:16 -05:00