Closed
Bug 487511
Opened 16 years ago
Closed 16 years ago
nsINavHistoryObserver has no "onBeforeDeleteURI" callback
Categories
(Toolkit :: Places, defect, P2)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: hello, Assigned: sdwilsh)
References
Details
(Keywords: dev-doc-complete, fixed1.9.1)
Attachments
(2 files)
(deleted),
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
Bug 468305 was about adding this callback to the bookmarks API, but history is missing it too.
For history it can be worse for Weave to build an id->guid mapping table, since there are usually many more items than for bookmarks.
Assignee | ||
Comment 1•16 years ago
|
||
Requesting blocking because this really hurts weave/fennec integration.
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
tracking-fennec: --- → ?
Flags: blocking1.9.1?
Target Milestone: --- → mozilla1.9.2a1
Version: unspecified → Trunk
Comment 2•16 years ago
|
||
What's the compatibility hit of adding this late? ETA to a patch?
Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> What's the compatibility hit of adding this late? ETA to a patch?
I can do this just like bug 468305 - adding a special interface for branch, but modifying it on trunk. This will not break binary add-ons, and degrades gracefully for JS ones.
ETA on patch is 48 hours for trunk, and another 24 hours after review for a branch patch.
Assignee | ||
Comment 4•16 years ago
|
||
(of course, this bug bumps up in priority if it becomes a blocker)
Assignee | ||
Updated•16 years ago
|
Summary: nsINavHistoryObserver has no "onBeforeRemove" callback → nsINavHistoryObserver has no "onBeforeDelete" callback
Assignee | ||
Comment 6•16 years ago
|
||
I can't believe we only notify in RemovePage. This notification is almost not even useful to implementers...
Probably need follow-up bugs (that won't make 1.9.1) for adding notifications in at least RemovePages, and maybe a few other places.
Assignee | ||
Comment 7•16 years ago
|
||
Not bad at all. Should be a pretty trivial branch patch too!
Attachment #371957 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #371957 -
Flags: review? → review?(dietrich)
Assignee | ||
Updated•16 years ago
|
Whiteboard: [needs review dietrich]
Comment 8•16 years ago
|
||
(In reply to comment #6)
> Probably need follow-up bugs (that won't make 1.9.1) for adding notifications
> in at least RemovePages, and maybe a few other places.
The problem with those notifications was that they caused views to update on every removed page, while they should have not. Clearly i think we should implement on views a sort of notification cache, during a batch they should cache all received notifications, on end batch they should analyze the received notification and see if they need to do more than a simple refresh (or if they CAN do something faster than a full refresh).
Assignee | ||
Comment 9•16 years ago
|
||
(In reply to comment #8)
> The problem with those notifications was that they caused views to update on
> every removed page, while they should have not. Clearly i think we should
> implement on views a sort of notification cache, during a batch they should
> cache all received notifications, on end batch they should analyze the received
> notification and see if they need to do more than a simple refresh (or if they
> CAN do something faster than a full refresh).
Our code is a mess in that regard, yeah. Don't even get me started about the last parameter to onVisit...
Comment 10•16 years ago
|
||
Comment on attachment 371957 [details] [diff] [review]
v1.0
r=me
Attachment #371957 -
Flags: review?(dietrich) → review+
Assignee | ||
Updated•16 years ago
|
Summary: nsINavHistoryObserver has no "onBeforeDelete" callback → nsINavHistoryObserver has no "onBeforeDeleteURI" callback
Assignee | ||
Comment 11•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Whiteboard: [needs review dietrich]
Assignee | ||
Comment 12•16 years ago
|
||
There actually isn't much change here, but I'd like dietrich to skim it over anyway.
Attachment #372138 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #372138 -
Flags: review? → review?(dietrich)
Comment 13•16 years ago
|
||
Comment on attachment 372138 [details] [diff] [review]
branch v1.0
r=me, thanks
Attachment #372138 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 14•16 years ago
|
||
Keywords: dev-doc-needed,
fixed1.9.1
Comment 15•16 years ago
|
||
Question: would it be okay for me to just document this method within nsINavBookmarkObserver even though in 1.9.1 it's in its own interface, since it'll be moved in later, and this is largely an implementation detail that doesn't impact most people? With a note mentioning the situation for those people that it does actually affect?
Comment 16•16 years ago
|
||
Except, you know, I meant nsINavHistoryObserver. :)
Assignee | ||
Comment 17•16 years ago
|
||
I would say that it's OK to document it there, and make a note on how to use it in 1.9.1.
Updated•16 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
Updated•11 years ago
|
tracking-fennec: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•