Closed Bug 1103978 Opened 7 years ago Closed 7 years ago
New Value=undefined in on Item Change for removed keyword
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.
7 years ago
Summary: Removing a keyword sets it to an empty string → aNewValue=undefined in onItemChange for removed keyword
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #8528390 - Flags: review?(mak77)
Status: ASSIGNED → RESOLVED
Closed: 7 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.