зеркало из https://github.com/mozilla/gecko-dev.git
Bypass XBL as a hack to avoid a large leak. b=61821 r=disttsc@bart.nl sr=alecf@netscape.com
This commit is contained in:
Родитель
3a40e42717
Коммит
49a4b13d1c
|
@ -1555,7 +1555,10 @@ function checkForDirectoryListing()
|
||||||
typeof _content.HTTPIndex == "object" &&
|
typeof _content.HTTPIndex == "object" &&
|
||||||
!_content.HTTPIndex.constructor) {
|
!_content.HTTPIndex.constructor) {
|
||||||
// Give directory .xul/.js access to browser instance.
|
// Give directory .xul/.js access to browser instance.
|
||||||
_content.defaultCharacterset = getBrowser().markupDocumentViewer.defaultCharacterSet;
|
// XXX The following line leaks (bug 61821), so the next line is a hack
|
||||||
|
// to avoid the leak.
|
||||||
|
// _content.defaultCharacterset = getBrowser().markupDocumentViewer.defaultCharacterSet;
|
||||||
|
_content.defaultCharacterset = getBrowser().docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer).defaultCharacterSet;
|
||||||
_content.parentWindow = window;
|
_content.parentWindow = window;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче