Closed Bug 786926 Opened 13 years ago Closed 13 years ago

updateBookmark doesn't set DATE_MODIFIED

Categories

(Firefox for Android Graveyard :: Data Providers, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 19

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

(Whiteboard: [qa+])

Attachments

(1 file)

public void updateBookmark(ContentResolver cr, int id, String uri, String title, String keyword) { ContentValues values = new ContentValues(); values.put(Browser.BookmarkColumns.TITLE, title); values.put(Bookmarks.URL, uri); values.put(Bookmarks.KEYWORD, keyword); cr.update(mBookmarksUriWithProfile, values, Bookmarks._ID + " = ?", new String[] { String.valueOf(id) }); } This means that changes to title etc. during bookmark edits don't propagate to other devices. (Reported by user on IRC.)
Flagging the tap-and-hold, "Edit Bookmark" path for future QA.
Flags: in-litmus?
Whiteboard: [qa+]
Attached patch Draft patch. v1Splinter Review
Oh hey, look! A one line fix and fifty lines of tests. This builds, but I can't actually run the test until Bug 787931 is resolved. Feedback welcome on that :D
Oh, and I did a tiny amount of cleanup in that test file, too. Couldn't resist.
try, Y U NO RUN ROBOTIUM SO I CAN SEE? https://tbpl.mozilla.org/?tree=Try&rev=08d85dc1bc4d
Let's have a try build that will actually run tests. https://tbpl.mozilla.org/?tree=Try&rev=fcbf98f585d6
Comment on attachment 658149 [details] [diff] [review] Draft patch. v1 Let's just land the fix, and I'll land the test when I get a chance to finish it!
Attachment #658149 - Flags: review?(mark.finkle)
Comment on attachment 658149 [details] [diff] [review] Draft patch. v1 >diff --git a/mobile/android/base/db/LocalBrowserDB.java b/mobile/android/base/db/LocalBrowserDB.java > values.put(Bookmarks.KEYWORD, keyword); >+ values.put(Bookmarks.DATE_MODIFIED, System.currentTimeMillis()); I assume you'll only land this part and not the test changes. The test changes will be a separate patch.
Attachment #658149 - Flags: review?(mark.finkle) → review+
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Component: Bookmarks → Data Providers
Product: Fennec → Firefox for Android
Target Milestone: --- → Firefox 19
Blocks: 810624
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: