Closed
Bug 629814
Opened 14 years ago
Closed 14 years ago
Async history API should ignore place ids
Categories
(Toolkit :: Places, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b12
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: mmm, Assigned: sdwilsh)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [softblocker])
Attachments
(2 files)
1.88 KB,
patch
|
Details | Diff | Splinter Review | |
5.94 KB,
patch
|
mak
:
review+
robert.strong.bugs
:
superreview+
|
Details | Diff | Splinter Review |
If you set a placeId on a mozIPlaceInfo and then pass it into updatePlaces, you run into an assertion failure at http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/src/History.cpp#1336 rather than an error being returned.
Reporter | ||
Comment 1•14 years ago
|
||
These tests should be merged in to test_async_history_api.js after a fix has been landed.
The tests are not complete either, as the expected error code for a duplicate placeId is not known.
Assignee | ||
Comment 2•14 years ago
|
||
I'm inclined to say we should just disallow this at this point, which would be an API change. mak?
Comment 3•14 years ago
|
||
disallow what exactly? selecting by placeId?
Assignee | ||
Comment 4•14 years ago
|
||
(In reply to comment #3)
> disallow what exactly? selecting by placeId?
specifying the place id to insert as. Basically, we'd only support guid or uri.
Comment 5•14 years ago
|
||
I've always been in favor of NOT exposing database ids... if Sync does not need them it wfm.
Assignee | ||
Comment 6•14 years ago
|
||
OK then!
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
Summary: Async history visit API does not allow setting a placeId → Async history API should ignore place ids
Assignee | ||
Comment 7•14 years ago
|
||
API change, so softblocking betaN
blocking2.0: --- → betaN+
Whiteboard: [softblocker]
Comment 8•14 years ago
|
||
Yes pls. As far as Sync is concerned, Place IDs are internal bookkeeping. Sync introduced GUIDs for precisely that reason.
Assignee | ||
Comment 9•14 years ago
|
||
This makes us ignore the place id all together. Mehdi, can you update your test to check that we ignore the place id?
Attachment #509252 -
Flags: superreview?(robert.bugzilla)
Attachment #509252 -
Flags: review?(mak77)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [softblocker] → [softblocker][needs review mak][needs sr rstrong]
Updated•14 years ago
|
Attachment #509252 -
Flags: superreview?(robert.bugzilla) → superreview+
Updated•14 years ago
|
Whiteboard: [softblocker][needs review mak][needs sr rstrong] → [softblocker][needs review mak]
Comment 10•14 years ago
|
||
Comment on attachment 509252 [details] [diff] [review]
v1.0
this patch makes me happier.
Attachment #509252 -
Flags: review?(mak77) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [softblocker][needs review mak] → [softblocker][can land]
Reporter | ||
Comment 11•14 years ago
|
||
(In reply to comment #9)
> Created attachment 509252 [details] [diff] [review]
> v1.0
>
> This makes us ignore the place id all together. Mehdi, can you update your
> test to check that we ignore the place id?
Will do in next version! (for reference, tests are in bug 628865 )
Assignee | ||
Comment 12•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Keywords: dev-doc-needed
Resolution: --- → FIXED
Whiteboard: [softblocker][can land] → [softblocker]
Target Milestone: --- → mozilla2.0b12
Updated•14 years ago
|
Version: unspecified → Trunk
Comment 13•14 years ago
|
||
This looks like an internal API that's not exposed to the public anywhere. Not sure there's much to document here. I did update the list of exceptions on mozIAsyncHistory, but otherwise, is there anything that needs to be done here?
Assignee | ||
Comment 14•14 years ago
|
||
(In reply to comment #13)
> This looks like an internal API that's not exposed to the public anywhere. Not
> sure there's much to document here. I did update the list of exceptions on
> mozIAsyncHistory, but otherwise, is there anything that needs to be done here?
Well, mozIAsyncHistory isn't an internal API, and that's what was changed here. If that's what you updated, that's all that needed to be done.
Comment 15•14 years ago
|
||
The problem is that I don't see any actual API change here. As far as I can tell, it simply isn't looking at the placeId anymore; it doesn't seem to affect documentation in any appreciable way (at least not how the documentation currently reads).
Assignee | ||
Comment 16•14 years ago
|
||
(In reply to comment #15)
> The problem is that I don't see any actual API change here. As far as I can
> tell, it simply isn't looking at the placeId anymore; it doesn't seem to affect
> documentation in any appreciable way (at least not how the documentation
> currently reads).
Ah, well, it used to, and I thought it was documented that way.
Updated•14 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•