mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 22:53:08 +00:00
Bug 575536 - Don't leak WindowDraggingElement into the global scope. r=enn
This commit is contained in:
parent
3bbd6ff1d6
commit
ed87cd6b53
@ -165,8 +165,9 @@
|
||||
if (!this._draggableStarted) {
|
||||
this._draggableStarted = true;
|
||||
try {
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm");
|
||||
new WindowDraggingElement(this, window);
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
new tmp.WindowDraggingElement(this, window);
|
||||
} catch (e) {}
|
||||
}
|
||||
</constructor>
|
||||
@ -270,8 +271,9 @@
|
||||
if (!this._draggableStarted) {
|
||||
this._draggableStarted = true;
|
||||
try {
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm");
|
||||
new WindowDraggingElement(this, window);
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
new tmp.WindowDraggingElement(this, window);
|
||||
} catch (e) {}
|
||||
}
|
||||
</constructor>
|
||||
|
@ -445,8 +445,9 @@
|
||||
if (!this._draggableStarted) {
|
||||
this._draggableStarted = true;
|
||||
try {
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm");
|
||||
let draggableThis = new WindowDraggingElement(this, window);
|
||||
let tmp = {};
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm", tmp);
|
||||
let draggableThis = new tmp.WindowDraggingElement(this, window);
|
||||
draggableThis.mouseDownCheck = function(e) {
|
||||
// Don't move while customizing.
|
||||
return !this.parentNode.customizing;
|
||||
|
Loading…
x
Reference in New Issue
Block a user