Landing bookmarks changes.

Bug 205378 - Meta bug for changes in bookmarks sorting code
r=jag, sr=sspitzer, a=sspitzer,asa

The CloneResource() has been back ported from Firebird, originally
implemented by Pierre Chanial.
This commit is contained in:
varga%netscape.com 2006-07-27 14:57:27 +00:00
parent 91cd352614
commit a01dca7166
5 changed files with 12 additions and 14 deletions

View File

@ -97,8 +97,8 @@ var RDF_observer =
onChange: function(ds, src, prop, old_target, new_target) { }, onChange: function(ds, src, prop, old_target, new_target) { },
onMove: function(ds, old_src, new_src, prop, target) { }, onMove: function(ds, old_src, new_src, prop, target) { },
beginUpdateBatch: function(ds) { }, onBeginUpdateBatch: function(ds) { },
endUpdateBatch: function(ds) { } onEndUpdateBatch: function(ds) { }
}; };
function function

View File

@ -223,14 +223,12 @@ nsHistoryController.prototype =
if (!gGlobalHistory) if (!gGlobalHistory)
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory.removePagesFromHost(gLastHostname, false) gGlobalHistory.removePagesFromHost(gLastHostname, false)
gHistoryTree.builder.rebuild();
return true; return true;
case "cmd_deleteByDomain": case "cmd_deleteByDomain":
if (!gGlobalHistory) if (!gGlobalHistory)
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory.removePagesFromHost(gLastDomain, true) gGlobalHistory.removePagesFromHost(gLastDomain, true)
gHistoryTree.builder.rebuild();
return true; return true;
default: default:

View File

@ -110,11 +110,11 @@ var RDF_observer =
{ {
}, },
beginUpdateBatch : function(ds) onBeginUpdateBatch : function(ds)
{ {
}, },
endUpdateBatch : function(ds) onEndUpdateBatch : function(ds)
{ {
} }
} }

View File

@ -144,11 +144,11 @@ var panels_observer = {
onMove : function(ds,old_src,new_src,prop,target) { onMove : function(ds,old_src,new_src,prop,target) {
//debug ("observer: move"); //debug ("observer: move");
}, },
beginUpdateBatch : function(ds) { onBeginUpdateBatch : function(ds) {
//debug ("observer: beginUpdateBatch"); //debug ("observer: onBeginUpdateBatch");
}, },
endUpdateBatch : function(ds) { onEndUpdateBatch : function(ds) {
//debug ("observer: endUpdateBatch"); //debug ("observer: onEndUpdateBatch");
} }
}; };

View File

@ -691,11 +691,11 @@ var panel_observer = {
onMove : function(ds,old_src,new_src,prop,target) { onMove : function(ds,old_src,new_src,prop,target) {
//debug ("observer: move"); //debug ("observer: move");
}, },
beginUpdateBatch : function(ds) { onBeginUpdateBatch : function(ds) {
//debug ("observer: beginUpdateBatch"); //debug ("observer: onBeginUpdateBatch");
}, },
endUpdateBatch : function(ds) { onEndUpdateBatch : function(ds) {
//debug ("observer: endUpdateBatch"); //debug ("observer: onEndUpdateBatch");
} }
}; };