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
2007-01-14 05:37:48 +00:00
parent fea6e9234a
commit 7d2cd8717d

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;
},