(No bug): Add comments to some debugger server code. r=past in IRC

This commit is contained in:
Jim Blandy 2012-05-08 17:54:04 -07:00
Родитель f72c3770d4
Коммит e4ad29f47c
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -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];
}