зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4958436945
Коммит
75f582688c
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче