зеркало из https://github.com/mozilla/pjs.git
Fix bug # 47927: crash loading 2nd ftp URL. r=waterson
This commit is contained in:
Родитель
e214334572
Коммит
fc4471722f
|
@ -63,13 +63,14 @@ function Init()
|
|||
|
||||
// Note: Add the HTTPIndex datasource into the tree
|
||||
var tree = document.getElementById('tree');
|
||||
tree.database.AddDataSource(HTTPIndex.DataSource);
|
||||
|
||||
// Note: set encoding BEFORE setting "ref" (important!)
|
||||
var RDF = Components.classes["component://netscape/rdf/rdf-service"].getService();
|
||||
if (RDF) RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService);
|
||||
if (RDF)
|
||||
{
|
||||
var httpDS = RDF.GetDataSource("rdf:httpindex");
|
||||
var httpDS = HTTPIndex.DataSource;
|
||||
if (httpDS) httpDS = httpDS.QueryInterface(Components.interfaces.nsIHTTPIndex);
|
||||
if (httpDS)
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
<script src="chrome://communicator/content/directory/directory.js"></script>
|
||||
|
||||
<tree id="tree" datasources="rdf:files rdf:httpindex" flex="1" style="height:0px;"
|
||||
<tree id="tree" datasources="rdf:files" flex="1" style="height:0px;"
|
||||
container="true" open="true"
|
||||
ondraggesture="return BeginDragTree(event);">
|
||||
<template>
|
||||
|
|
Загрузка…
Ссылка в новой задаче