Closed Bug 1103978 Opened 10 years ago Closed 10 years ago

aNewValue=undefined in onItemChange for removed keyword

Categories

(Toolkit :: Places, defect)

defect
Not set
normal
Points:
3

Tracking

()

RESOLVED FIXED
mozilla36
Iteration:
37.1

People

(Reporter: asaf, Assigned: asaf)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For removing a keyword from a bookmark, the new API expects update to be called with an empty string keyword value, rather than null. The empty string is then stored in the DB. This makes the old API (getKeywordForBookmark) and maybe also the new API (fetch, I didn't test) return different values for keyword-less bookmarks, depending on whether they have ever had a keyword (an empty string returned if they did; null if they didn't).

This breaks the test for the EditKeyword transaction if it's converted to use the update API.
Flags: firefox-backlog+
Flags: qe-verify?
Flags: qe-verify?
Flags: qe-verify-
Flags: in-testsuite?
Summary: Removing a keyword sets it to an empty string → aNewValue=undefined in onItemChange for removed keyword
Attached patch patchSplinter Review
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #8528390 - Flags: review?(mak77)
Iteration: --- → 37.1
Attachment #8528390 - Flags: review?(mak77) → review+
https://hg.mozilla.org/mozilla-central/rev/0c112347e322
https://hg.mozilla.org/mozilla-central/rev/b8d490a607e7
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: