Hi,
I've been implementing Contacts API proxy on Firefox OS and been asked
if there is a reason for calling error callback on removing a non
existing contact.
FFOS is calling success.
Let mi quote Ben Kelly :
"Hmm, does the spec actually call this out as an error? I find success
in the "remove a non-existent entry" case more intuitive. The client
asked for the state where the DB does not contain X and open completion
the DB does not contain X. Whether any work is done is not really
relevant to the caller, is it?"
https://bugzilla.mozilla.org/show_bug.cgi?id=949575#c1
We might consider changing that behaviour in FFOS if there is a good reason.
Thanks
--
Piotr Zalewa
Mozilla