Commit 4b210521 authored by Ian Neal's avatar Ian Neal Committed by Frank-Rainer Grahl
Browse files

Bug 1599446 - Feed subscriptions empty for new account. r=frg a=frg

parent fad50236
......@@ -40,7 +40,8 @@ var okCallback = null;
(server vs. newsserver)
*/
Cu.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/FeedUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
var contentWindow;
......@@ -390,6 +391,11 @@ function createAccount(accountData)
// Retrieve the server (data) from the account data.
var server = accountData.incomingServer;
// Use createRssAccount for Feed accounts.
if (server.type == "rss") {
return FeedUtils.createRssAccount(server.prettyName);
}
// for news, username is always null
var username = (server.type == "nntp") ? null : server.username;
dump("MailServices.accounts.createIncomingServer(" +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment