Skip to content

Commit

Permalink
Bug 901234 - Stop using uriTypes (Places Session ids) in SeaMonkey co…
Browse files Browse the repository at this point in the history
…de, r=Neil, a=me

CLOSED TREE
  • Loading branch information
Frankst2 committed Mar 5, 2014
1 parent c18a7b2 commit 9559a28
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion suite/common/history/utils.js
Expand Up @@ -289,7 +289,7 @@ var PlacesUIUtils = {


getBestTitle: function PU_getBestTitle(aNode) { getBestTitle: function PU_getBestTitle(aNode) {
var title; var title;
if (!aNode.title && PlacesUtils.uriTypes.indexOf(aNode.type) != -1) { if (!aNode.title && PlacesUtils.nodeIsURI(aNode)) {
// if node title is empty, try to set the label using host and filename // if node title is empty, try to set the label using host and filename
// PlacesUtils._uri() will throw if aNode.uri is not a valid URI // PlacesUtils._uri() will throw if aNode.uri is not a valid URI
try { try {
Expand Down
2 changes: 1 addition & 1 deletion suite/common/places/browserPlacesViews.js
Expand Up @@ -295,7 +295,7 @@ PlacesViewBase.prototype = {
if (type == Components.interfaces.nsINavHistoryResultNode.RESULT_TYPE_SEPARATOR) if (type == Components.interfaces.nsINavHistoryResultNode.RESULT_TYPE_SEPARATOR)
element = document.createElement("menuseparator"); element = document.createElement("menuseparator");
else { else {
if (PlacesUtils.uriTypes.indexOf(type) != -1) { if (type == Components.interfaces.nsINavHistoryResultNode.RESULT_TYPE_URI) {
element = document.createElement("menuitem"); element = document.createElement("menuitem");
element.className = "menuitem-iconic bookmark-item menuitem-with-favicon"; element.className = "menuitem-iconic bookmark-item menuitem-with-favicon";
element.setAttribute("scheme", element.setAttribute("scheme",
Expand Down
1 change: 0 additions & 1 deletion suite/common/places/controller.js
Expand Up @@ -461,7 +461,6 @@ PlacesController.prototype = {
nodeData["separator"] = true; nodeData["separator"] = true;
break; break;
case Components.interfaces.nsINavHistoryResultNode.RESULT_TYPE_URI: case Components.interfaces.nsINavHistoryResultNode.RESULT_TYPE_URI:
case Components.interfaces.nsINavHistoryResultNode.RESULT_TYPE_VISIT:
nodeData["link"] = true; nodeData["link"] = true;
uri = PlacesUtils._uri(node.uri); uri = PlacesUtils._uri(node.uri);
if (PlacesUtils.nodeIsBookmark(node)) { if (PlacesUtils.nodeIsBookmark(node)) {
Expand Down
2 changes: 1 addition & 1 deletion suite/common/places/tree.xml
Expand Up @@ -62,7 +62,7 @@
if (PlacesUtils.nodeIsHistoryContainer(queryNode) || if (PlacesUtils.nodeIsHistoryContainer(queryNode) ||
options.resultType == options.RESULTS_AS_TAG_QUERY || options.resultType == options.RESULTS_AS_TAG_QUERY ||
options.resultType == options.RESULTS_AS_TAG_CONTENTS) options.resultType == options.RESULTS_AS_TAG_CONTENTS)
options.resultType = options.RESULT_TYPE_URI; options.resultType = options.RESULTS_AS_URI;
var query = PlacesUtils.history.getNewQuery(); var query = PlacesUtils.history.getNewQuery();
query.searchTerms = filterString; query.searchTerms = filterString;
Expand Down
2 changes: 1 addition & 1 deletion suite/common/src/PlacesUIUtils.jsm
Expand Up @@ -895,7 +895,7 @@ var PlacesUIUtils = {


getBestTitle: function PUIU_getBestTitle(aNode) { getBestTitle: function PUIU_getBestTitle(aNode) {
var title; var title;
if (!aNode.title && PlacesUtils.uriTypes.indexOf(aNode.type) != -1) { if (!aNode.title && PlacesUtils.nodeIsURI(aNode)) {
// if node title is empty, try to set the label using host and filename // if node title is empty, try to set the label using host and filename
// PlacesUtils._uri() will throw if aNode.uri is not a valid URI // PlacesUtils._uri() will throw if aNode.uri is not a valid URI
try { try {
Expand Down

0 comments on commit 9559a28

Please sign in to comment.