зеркало из https://github.com/mozilla/pjs.git
bug 358542 - Fixes calls to nsIStreamLoader to comply with changes in bug 281153. Patch by mvl, r=lilmatt. Branch/trunk mods by lilmatt, r=mvl
This commit is contained in:
Родитель
d25216cd87
Коммит
aae29cca13
|
@ -179,7 +179,12 @@ calICSCalendar.prototype = {
|
|||
var streamLoader = Components.classes["@mozilla.org/network/stream-loader;1"]
|
||||
.createInstance(Components.interfaces.nsIStreamLoader);
|
||||
try {
|
||||
streamLoader.init(channel, this, this);
|
||||
if (isOnBranch) {
|
||||
streamLoader.init(channel, this, this);
|
||||
} else {
|
||||
streamLoader.init(this);
|
||||
channel.asyncOpen(streamLoader, this);
|
||||
}
|
||||
} catch(e) {
|
||||
// File not found: a new calendar. No problem.
|
||||
this.unlock();
|
||||
|
|
Загрузка…
Ссылка в новой задаче