make the microsummary service prefer cached generators to downloading generators over the network

bug=337113
r=brettw
sr=ben
This commit is contained in:
myk@mozilla.org
2006-05-14 18:52:35 +00:00
parent 7666655276
commit b3b94b8e0c

View File

@@ -265,6 +265,8 @@ MicrosummaryService.prototype = {
#endif
var generatorURI = this._uri(this._getField(bookmarkID, FIELD_MICSUM_GEN_URI));
var microsummary = new Microsummary(pageURI, generatorURI);
if (this._localGenerators[generatorURI.spec])
microsummary.generator = this._localGenerators[generatorURI.spec];
// A microsummary observer that calls the microsummary service
// to update the datastore when the microsummary finishes loading.
@@ -709,6 +711,9 @@ MicrosummaryService.prototype = {
var genURI = this._uri(this._getField(bookmarkID, FIELD_MICSUM_GEN_URI));
var microsummary = new Microsummary(pageURI, genURI);
if (this._localGenerators[generatorURI.spec])
microsummary.generator = this._localGenerators[generatorURI.spec];
return microsummary;
},