Closed
Bug 338295
Opened 20 years ago
Closed 19 years ago
Microsummaries should be removed when they cease to exist
Categories
(Firefox Graveyard :: Microsummaries, defect)
Firefox Graveyard
Microsummaries
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 3 alpha8
People
(Reporter: rdmsoft, Assigned: rflint)
References
Details
Attachments
(1 file)
|
11.12 KB,
patch
|
myk
:
review+
|
Details | Diff | Splinter Review |
The microsummary use cases I find most interesting - following auction prices and blog comments - are also cases where the summary becomes much less useful after a relatively short period of time. I might bookmark an item and not delete it after the auction, or the site hosting a plain text microsummary might stop doing so (leaving a bookmark called "<!DOCTYPE HTML PUBLIC" or similar).
So, to avoid this, if the page or the generator/plain text summary returns a 410 error, the microsummary should be removed. If any part returns a 404, it should fail to update (and possibly be removed if the error persists).
Updated•20 years ago
|
Priority: -- → P2
Whiteboard: [myk: mss]
Target Milestone: --- → Firefox 3
Updated•20 years ago
|
Component: Bookmarks → Microsummaries
Whiteboard: [myk: mss]
Comment 1•19 years ago
|
||
I think it would be better to change the microsummary back to a regular bookmark with the name "Microsummary unavailable" (or perhaps whatever the bookmark's regular name was set to). I would find it disconcerting to have bookmarks disappear on their own, even if the generator or page were permanently gone. Also, the generator could have been removed without the page it was summarizing disappearing too - then the microsummary is useless, but the bookmark is not.
Updated•19 years ago
|
QA Contact: bookmarks → microsummaries
| Assignee | ||
Updated•19 years ago
|
Assignee: nobody → ryan
Depends on: 370242
Priority: P2 → --
Target Milestone: Firefox 3 → Firefox 3 M8
Version: 2.0 Branch → Trunk
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•19 years ago
|
||
Attachment #276543 -
Flags: review?(myk)
Comment 3•19 years ago
|
||
Comment on attachment 276543 [details] [diff] [review]
Patch
It's not clear to me how common 410 responses are, but it makes sense to handle them.
Overall, this looks good. Just one question:
>+ var errorCallback = function MS_errorCallback(resource) {
>+ if (resource.status == 410) {
>+ t._needsRemoval = true;
>+ LOG("server indicated " + resource.uri.spec + " is gone. flagging for removal");
>+ }
>+
>+ resource.destroy();
>+
>+ for (let i = 0; i < t._observers.length; i++)
>+ t._observers[i].onError(t);
>+ };
>+
...
>- try { if (this._errorCallback) this._errorCallback() }
>- finally { this.destroy() }
>+ if (this._errorCallback)
>+ this._errorCallback(this);
>+ else
>+ this.destroy();
Why have you moved resource destruction into the error callback? Not destroying the resource in a finally block means that if an exception gets thrown before the error callback calls resource.destroy(), the resource will not get destroyed.
r=myk with this issue addressed.
Attachment #276543 -
Flags: review?(myk) → review+
| Assignee | ||
Comment 4•19 years ago
|
||
mozilla/browser/components/microsummaries/src/nsMicrosummaryService.js 1.74 mozilla/browser/components/microsummaries/public/nsIMicrosummaryService.idl 1.11 mozilla/browser/components/places/content/bookmarkProperties.js 1.61
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•