Remove the parentURIContentListener attribute on docshell; people not using

nsIWebBrowser can getInterface the docshells nsIURIContentListener and set its
parent.  Bug 283108, r=biesi, sr=darin
This commit is contained in:
bzbarsky%mit.edu 2006-09-14 06:09:21 +00:00
Родитель 5e1f4001d4
Коммит 88245e4713
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -59,8 +59,14 @@ nsBrowserContentListener.prototype =
// hook up the whole parent chain thing
var windowDocShell = this.convertWindowToDocShell(toplevelWindow);
if (windowDocShell)
windowDocshell.parentURIContentListener = this;
if (windowDocShell) {
// XXXbz this listener is never unregistered. Did someone neglect
// to read the interface they're using?
windowDocshell
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIURIContentListener)
.parentContentListener = this;
}
var registerWindow = false;
try {