зеркало из https://github.com/mozilla/gecko-dev.git
Apply chrome flags to dialogs, even when opened by untrusted content (so alerts
are not resizable, for example). Bug 294440, r=bsmedberg, sr=jst
This commit is contained in:
Родитель
ffbceaba41
Коммит
df977f5e9a
|
@ -1331,7 +1331,8 @@ void nsWindowWatcher::CheckWindowName(nsString& aName)
|
|||
|
||||
#define NS_CALCULATE_CHROME_FLAG_FOR(feature, flag) \
|
||||
prefBranch->GetBoolPref(feature, &forceEnable); \
|
||||
if (forceEnable && !(isChrome && aHasChromeParent)) { \
|
||||
if (forceEnable && !aDialog && \
|
||||
!(isChrome && aHasChromeParent)) { \
|
||||
chromeFlags |= flag; \
|
||||
} else { \
|
||||
chromeFlags |= WinHasOption(aFeatures, feature, \
|
||||
|
|
Загрузка…
Ссылка в новой задаче