diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
index 62534fb68fe9..681d77625d36 100644
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -447,3 +447,20 @@ pref("view_source.editor.path", "");
pref("view_source.editor.external", false);
pref("browser.send_pings", true);
+
+#ifdef MOZ_FEEDS
+// XXXben This is just here for demo purposes until web registration works!
+// XXXben Needs Localization!
+pref("browser.contentHandlers.types.title0", "Netvibes");
+pref("browser.contentHandlers.types.uri0", "http://www.netvibes.com/subscribe.php?url=%s");
+pref("browser.contentHandlers.types.type0", "application/vnd.mozilla.maybe.feed");
+pref("browser.contentHandlers.types.title1", "My Yahoo");
+pref("browser.contentHandlers.types.uri1", "http://add.my.yahoo.com/rss?url=%s");
+pref("browser.contentHandlers.types.type1", "application/vnd.mozilla.maybe.feed");
+pref("browser.contentHandlers.types.title2", "Bloglines");
+pref("browser.contentHandlers.types.uri2", "http://www.bloglines.com/login?r=/sub/%s");
+pref("browser.contentHandlers.types.type2", "application/vnd.mozilla.maybe.feed");
+pref("browser.contentHandlers.types.title3", "iGoogle/Google Reader");
+pref("browser.contentHandlers.types.uri3", "http://fusion.google.com/add?feedurl=%s");
+pref("browser.contentHandlers.types.type3", "application/vnd.mozilla.maybe.feed");
+#endif
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 07031f55e211..d1eb144d588c 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -6170,9 +6170,21 @@ var FeedHandler = {
var feeds = harvestFeeds(feeds);
if (feeds.length == 1) {
#ifdef MOZ_PLACES
+#ifdef MOZ_FEEDS
+ // Just load the feed in the content area to either subscribe or show the
+ // preview UI
+ loadURI(feeds[0].href, null, null, false);
+#else
PlacesCommandHook.addLiveBookmark(feeds[0].href);
+#endif
+#else
+#ifdef MOZ_FEEDS
+ // Just load the feed in the content area to either subscribe or show the
+ // preview UI
+ loadURI(feeds[0].href, null, null, false);
#else
this.addLiveBookmark(feeds[0].href);
+#endif
#endif
return false;
}
@@ -6182,7 +6194,11 @@ var FeedHandler = {
var feedInfo = feeds[i];
var menuItem = document.createElement("menuitem");
var baseTitle = feedInfo.title || feedInfo.href;
+#ifdef MOZ_FEEDS
+ var labelStr = gNavigatorBundle.getFormattedString("feedShowFeedNew", [baseTitle]);
+#else
var labelStr = gNavigatorBundle.getFormattedString("feedShowFeed", [baseTitle]);
+#endif
menuItem.setAttribute("label", labelStr);
menuItem.setAttribute("feed", feedInfo.href);
menuItem.setAttribute("tooltiptext", feedInfo.href);
@@ -6239,7 +6255,11 @@ var FeedHandler = {
} else {
feedButton.setAttribute("feeds", "true");
feedButton.setAttribute("tooltiptext",
+#ifdef MOZ_FEEDS
+ gNavigatorBundle.getString("feedHasFeedsNew"));
+#else
gNavigatorBundle.getString("feedHasFeeds"));
+#endif
}
},
@@ -6301,7 +6321,11 @@ var FeedHandler = {
if (feedButton) {
feedButton.setAttribute("feeds", "true");
feedButton.setAttribute("tooltiptext",
+#ifdef MOZ_FEEDS
+ gNavigatorBundle.getString("feedHasFeedsNew"));
+#else
gNavigatorBundle.getString("feedHasFeeds"));
+#endif
}
}
}
diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul
index e75c98ba47bf..923179fc6799 100644
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -245,9 +245,17 @@
+#else
oncommand="PlacesCommandHook.addLiveBookmark(event.target.getAttribute('feed'));" />
+#endif
+#else
+#ifdef MOZ_FEEDS
+ oncommand="loadURI(event.target.getAttribute('feed'), null, null, false);"/>
#else
oncommand="FeedHandler.addLiveBookmark(event.target.getAttribute('feed'));" />
+#endif
#endif
diff --git a/browser/components/feeds/content/options.xul b/browser/components/feeds/content/options.xul
index 5a3e01f57344..08362edb36db 100644
--- a/browser/components/feeds/content/options.xul
+++ b/browser/components/feeds/content/options.xul
@@ -3,6 +3,7 @@
+
@@ -40,8 +41,14 @@
onpopupshowing="SubscriptionOptions.populateWebHandlers(this);"/>
-
+
+
+#if 0
+
+#endif
+
diff --git a/browser/components/feeds/src/WebContentConverter.js b/browser/components/feeds/src/WebContentConverter.js
index 3f61bd5e73eb..d5eda9fae48c 100644
--- a/browser/components/feeds/src/WebContentConverter.js
+++ b/browser/components/feeds/src/WebContentConverter.js
@@ -566,10 +566,6 @@ var Module = {
var catman =
Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICategoryManager);
- const JS_GLOBAL_PROP = "JavaScript global property";
- catman.addCategoryEntry(JS_GLOBAL_PROP, "goats", WCCR_CONTRACTID, true,
- true);
-
catman.addCategoryEntry("app-startup", WCCR_CLASSNAME,
"service," + WCCR_CONTRACTID, true, true, null);
},
diff --git a/browser/components/preferences/general.js b/browser/components/preferences/general.js
index e91ad502e2d2..25cfa577153e 100644
--- a/browser/components/preferences/general.js
+++ b/browser/components/preferences/general.js
@@ -193,4 +193,13 @@ var gGeneralPane = {
}
}
#endif
+
+#ifdef MOZ_FEEDS
+ ,
+
+ chooseFeedReader: function ()
+ {
+ openDialog("chrome://browser/content/feeds/options.xul", "", "modal,centerscreen");
+ }
+#endif
};
diff --git a/browser/components/preferences/general.xul b/browser/components/preferences/general.xul
index da0e8644bb38..9b26fa35ffb7 100644
--- a/browser/components/preferences/general.xul
+++ b/browser/components/preferences/general.xul
@@ -86,6 +86,19 @@
oncommand="gGeneralPane.showConnections();"/>
+
+#ifdef MOZ_FEEDS
+# XXXben move this some place better after a2
+
+
+
+ &feedReader.info;
+
+
+
+#endif
diff --git a/browser/locales/en-US/chrome/browser/browser.properties b/browser/locales/en-US/chrome/browser/browser.properties
index e3243b589b34..1e2f94684ef7 100644
--- a/browser/locales/en-US/chrome/browser/browser.properties
+++ b/browser/locales/en-US/chrome/browser/browser.properties
@@ -114,10 +114,8 @@ updatesItem_pending=Apply Downloaded Update Now...
updatesItem_pendingFallback=Apply Downloaded Update Now...
# RSS Pretty Print
-feedTitle=Feed: %S
-feedDescription=This feed contains %S articles.
-feedAddLiveBookmarkLink=Add Live Bookmark...
-feedLiveBookmarkInfoText=What are Live Bookmarks?
feedShowFeed=Add '%S' as Live Bookmark...
feedHasFeeds=Add Live Bookmark...
feedNoFeeds=Page has no feeds
+feedShowFeedNew=Subscribe to '%S'...
+feedHasFeedsNew=Subscribe to this page...
diff --git a/browser/locales/en-US/chrome/browser/feeds/options.dtd b/browser/locales/en-US/chrome/browser/feeds/options.dtd
index 02aaa62d7461..fba7e479bc14 100644
--- a/browser/locales/en-US/chrome/browser/feeds/options.dtd
+++ b/browser/locales/en-US/chrome/browser/feeds/options.dtd
@@ -22,3 +22,11 @@
"Choose...">
+
+
+
+
+
diff --git a/browser/locales/en-US/chrome/browser/preferences/general.dtd b/browser/locales/en-US/chrome/browser/preferences/general.dtd
index b149643e9860..596e43c10918 100644
--- a/browser/locales/en-US/chrome/browser/preferences/general.dtd
+++ b/browser/locales/en-US/chrome/browser/preferences/general.dtd
@@ -21,3 +21,8 @@
+
+
+
+
+
diff --git a/browser/themes/winstripe/browser/feeds/subscribe.css b/browser/themes/winstripe/browser/feeds/subscribe.css
index 7ed2c0c8decf..927182fca313 100644
--- a/browser/themes/winstripe/browser/feeds/subscribe.css
+++ b/browser/themes/winstripe/browser/feeds/subscribe.css
@@ -1,3 +1,4 @@
+
*[hidden] {
display: none;
}
@@ -44,12 +45,12 @@ html {
#feedSubscribeLine {
padding: 1em;
- background: -moz-Field;
-moz-border-radius: 3px;
}
#feedHeader[firstrun="true"] #feedSubscribeLine {
margin-left: 1.7em;
+ background: -moz-Field;
}
#feedSubscribeHandler {
@@ -142,3 +143,13 @@ a[href] img {
margin: 0 0 0 .6em;
}
+.link {
+ color: #0000FF;
+ text-decoration: underline;
+ cursor: pointer;
+}
+
+.link:hover:active {
+ color: #FF0000;
+}
+