gecko-dev/xpfe/appshell
Tim Huang 3b43737132 Bug 1330882 - Part 4: Making the window.open() can only open rounded windows and the inner window will be automatically rounded after setting size through innerWidth/Height and outerWidth/Height when fingerprinting resistance is enabled. r=smaug
This patch makes the size of inner windows will be automatically rounded for
either window.open() with window features or setting window size through
innerWidth/Height and outerWidth/Height when fingerprinting resistance is
enabled. If the given value is greater the maximum available rounded size, then
it will be set to the maximum value. Otherwise, the size will be set to the
nearest upper 200x100.

This patch also adds one helper function in nsContentUtils for calculating the
rounded window dimensions.

MozReview-Commit-ID: J2r3951vuNN

--HG--
extra : rebase_source : a44b19bdf2ce7e90fc831ddc2b85a86d594cb0c3
2017-03-29 15:43:56 +08:00
..
test Bug 1310297 - Remove test annotations using b2g, mulet or gonk: xpfe. r=RyanVM 2016-11-05 11:29:22 +01:00
LiveResizeListener.h Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
moz.build Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
nsAppShellCID.h
nsAppShellFactory.cpp Bug 1344629 - Part 9: Bonus fix: Remove heap allocation in nsChromeTreeOwner. r=dbaron 2017-03-14 15:26:37 +13:00
nsAppShellService.cpp Backed out changeset c7174ac72d14 (bug 1347272) for build bustage 2017-03-28 18:16:33 +08:00
nsAppShellService.h Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
nsAppShellWindowEnumerator.cpp
nsAppShellWindowEnumerator.h
nsChromeTreeOwner.cpp Bug 1344629 - Part 9: Bonus fix: Remove heap allocation in nsChromeTreeOwner. r=dbaron 2017-03-14 15:26:37 +13:00
nsChromeTreeOwner.h Bug 1344629 - Part 9: Bonus fix: Remove heap allocation in nsChromeTreeOwner. r=dbaron 2017-03-14 15:26:37 +13:00
nsContentTreeOwner.cpp Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot 2017-03-22 11:39:31 +01:00
nsContentTreeOwner.h
nsIAppShellService.idl Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
nsIPopupWindowManager.idl
nsIWindowlessBrowser.idl
nsIWindowMediator.idl
nsIWindowMediatorListener.idl
nsIXULBrowserWindow.idl Bug 1347983 - Part 1: Make forms submitted from a large-allocation page not leave the large-allocation process, r=smaug 2017-03-16 14:32:26 -04:00
nsIXULWindow.idl Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
nsWebShellWindow.cpp Bug 1060419 - remove unneeded includes of prprf.h, r=froydnj 2016-12-09 10:00:01 -10:00
nsWebShellWindow.h Bug 1322414 - part 1 - remove GetContentShellById and id passing, r=bz 2016-12-08 11:12:36 -10:00
nsWindowMediator.cpp Bug 1344544 - Use nsTObserverArray for listeners of nsWindowMediator. r=erahm 2017-03-06 12:50:52 +11:00
nsWindowMediator.h Bug 1344544 - Use nsTObserverArray for listeners of nsWindowMediator. r=erahm 2017-03-06 12:50:52 +11:00
nsXULWindow.cpp Bug 1330882 - Part 4: Making the window.open() can only open rounded windows and the inner window will be automatically rounded after setting size through innerWidth/Height and outerWidth/Height when fingerprinting resistance is enabled. r=smaug 2017-03-29 15:43:56 +08:00
nsXULWindow.h Bug 1330882 - Part 1: Making new windows to be rounded size when fingerprinting resistance is enabled (adopt from Tor #19459). r=arthuredelstein,smaug 2017-03-29 15:43:54 +08:00