зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1387583 - Avoid leaking a window in SelectParentHelper. r=jaws
MozReview-Commit-ID: 6YILe7gi2fZ --HG-- extra : rebase_source : 96ed7c7b960b5a5e4da5c699d1f6fab09fecb9c0
This commit is contained in:
Родитель
8880224f6b
Коммит
f41361f1d2
|
@ -18,11 +18,13 @@ const MAX_ROWS = 20;
|
|||
// Minimum elements required to show select search
|
||||
const SEARCH_MINIMUM_ELEMENTS = 40;
|
||||
|
||||
// Make sure to clear these objects when the popup closes to avoid leaking.
|
||||
var currentBrowser = null;
|
||||
var currentMenulist = null;
|
||||
var selectRect = null;
|
||||
|
||||
var currentZoom = 1;
|
||||
var closedWithEnter = false;
|
||||
var selectRect;
|
||||
var customStylingEnabled = Services.prefs.getBoolPref("dom.forms.select.customstyling");
|
||||
var usedSelectBackgroundColor;
|
||||
|
||||
|
@ -183,6 +185,7 @@ this.SelectParentHelper = {
|
|||
popup.parentNode.hidden = true;
|
||||
currentBrowser = null;
|
||||
currentMenulist = null;
|
||||
selectRect = null;
|
||||
currentZoom = 1;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче