Bug 1553804: Part 5 - Fix callers which create chrome windows with content openers. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D45656

--HG--
extra : source : 301e0d883a5f39053ab02ba11133f1b23156e240
extra : histedit_source : 241111e45e10e49eb5add12e1b69689ea9783b16
This commit is contained in:
Kris Maglione 2019-09-20 04:43:55 +00:00
Родитель 99714a4e22
Коммит 7dbe15f5f1
4 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -100,7 +100,8 @@ SubDialog.prototype = {
this._addDialogEventListeners();
let features =
(aFeatures ? aFeatures + "," : "") + "resizable,dialog=no,centerscreen";
(aFeatures ? aFeatures + "," : "") +
"resizable,dialog=no,centerscreen,chrome=no";
let dialog = window.openDialog(
aURL,
`dialogFrame-${this._id}`,

Просмотреть файл

@ -508,7 +508,7 @@ var SiteDataManager = {
allowed: false,
};
let features = "centerscreen,chrome,modal,resizable=no";
win.openDialog(
win.docShell.rootTreeItem.domWindow.openDialog(
"chrome://browser/content/preferences/siteDataRemoveSelected.xul",
"",
features,

Просмотреть файл

@ -450,7 +450,7 @@ function openModalWindow(domWin, uri, args) {
// will do that. Similarly for enterModalState / leaveModalState.
Services.ww.openWindow(
domWin,
domWin.docShell.rootTreeItem.domWindow,
uri,
"_blank",
"centerscreen,chrome,modal,titlebar",

Просмотреть файл

@ -23,6 +23,9 @@ nsContentDispatchChooser.prototype = {
try {
if (aWindowContext) {
window = aWindowContext.getInterface(Ci.nsIDOMWindow);
if (window) {
window = window.docShell.rootTreeItem.domWindow;
}
}
} catch (e) {
/* it's OK to not have a window */