gecko-dev/toolkit/components/windowwatcher
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 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws 2017-03-20 12:36:37 +01:00
moz.build
nsAutoWindowStateHelper.cpp
nsAutoWindowStateHelper.h
nsDialogParamBlock.cpp
nsDialogParamBlock.h
nsIDialogParamBlock.idl
nsIPromptFactory.idl
nsIPromptService2.idl
nsIPromptService.idl
nsIWindowWatcher.idl
nsPIPromptService.idl
nsPIWindowWatcher.idl Bug 1338375 Part 1: Fix window settings and navigation when creating a new window in a new process. 2017-02-28 07:28:36 +00:00
nsPromptUtils.h
nsWindowWatcher.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
nsWindowWatcher.h Bug 1287006 - Don't pass Maybe by value in miscellaneous places. r=froydnj 2017-02-13 09:07:40 -08:00