Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread.

This commit is contained in:
warren%netscape.com 2006-07-27 14:47:34 +00:00
Родитель 4958436945
Коммит 75f582688c
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -134,13 +134,11 @@ function ReadDirectory(url)
var uri = ios.newURI(url, null);
// Create a channel...
var channel = ios.newChannelFromURI('load', uri, null, null,
Components.interfaces.nsIChannel.LOAD_NORMAL,
null, 0, 0);
var channel = ios.newChannelFromURI(uri, null);
// ...so that we can pipe it into a new HTTPIndex listener to
// parse the directory's contents.
channel.asyncRead(0, -1, null, HTTPIndex.CreateListener());
channel.asyncRead(HTTPIndex.CreateListener(), null);
}