зеркало из https://github.com/mozilla/gecko-dev.git
(No bug): Add comments to some debugger server code. r=past in IRC
This commit is contained in:
Родитель
f72c3770d4
Коммит
e4ad29f47c
|
@ -196,6 +196,9 @@ BrowserRootActor.prototype = {
|
|||
onWindowTitleChange: function BRA_onWindowTitleChange(aWindow, aTitle) { },
|
||||
onOpenWindow: function BRA_onOpenWindow(aWindow) { },
|
||||
onCloseWindow: function BRA_onCloseWindow(aWindow) {
|
||||
// An nsIWindowMediatorListener's onCloseWindow method gets passed all
|
||||
// sorts of windows; we only care about the tab containers. Those have
|
||||
// 'getBrowser' methods.
|
||||
if (aWindow.getBrowser) {
|
||||
this.unwatchWindow(aWindow);
|
||||
}
|
||||
|
|
|
@ -133,6 +133,9 @@ ThreadActor.prototype = {
|
|||
this._threadLifetimePool = null;
|
||||
this.conn.removeActorPool(this._breakpointPool);
|
||||
this._breakpointPool = null;
|
||||
// Unless we carefully take apart the scripts table this way, we end up
|
||||
// leaking documents. It would be nice to track this down carefully, once
|
||||
// we have the appropriate tools.
|
||||
for (let url in this._scripts) {
|
||||
delete this._scripts[url];
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче