mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
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:
parent
9cf7eb044f
commit
e73a7aec9a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user