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)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 19
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
(Whiteboard: [qa+])
Attachments
(1 file)
|
8.31 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
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.)
| Assignee | ||
Comment 1•13 years ago
|
||
Flagging the tap-and-hold, "Edit Bookmark" path for future QA.
Flags: in-litmus?
Whiteboard: [qa+]
| Assignee | ||
Comment 2•13 years ago
|
||
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
| Assignee | ||
Comment 3•13 years ago
|
||
Oh, and I did a tiny amount of cleanup in that test file, too. Couldn't resist.
| Assignee | ||
Comment 4•13 years ago
|
||
try, Y U NO RUN ROBOTIUM SO I CAN SEE?
https://tbpl.mozilla.org/?tree=Try&rev=08d85dc1bc4d
| Assignee | ||
Comment 5•13 years ago
|
||
Let's have a try build that will actually run tests.
https://tbpl.mozilla.org/?tree=Try&rev=fcbf98f585d6
| Assignee | ||
Comment 6•13 years ago
|
||
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 7•13 years ago
|
||
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 | ||
Comment 8•13 years ago
|
||
Code-only change:
https://hg.mozilla.org/integration/mozilla-inbound/rev/77b4e5ec2e78
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Component: Bookmarks → Data Providers
Product: Fennec → Firefox for Android
Target Milestone: --- → Firefox 19
Comment 9•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•