Closed
Bug 968738
Opened 11 years ago
Closed 11 years ago
Bookmarks opened from home screen are not marked as bookmarked
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox27 affected, firefox28 affected, firefox29 affected, firefox30 affected, fennec+)
RESOLVED
FIXED
Firefox 30
People
(Reporter: cos_flaviu, Assigned: bnicholson)
References
Details
Attachments
(1 file, 1 obsolete file)
6.33 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
Environment:
Device: Google Nexus 7 (Android 4.4.2);
Build: Nightly 30.0a1 (2014-02-04);
Steps to reproduce:
1. Load any page (e.g. ebay.com);
2. Bookmark the page;
3. On the toaster notification tap on Options;
4. Tap on Add to Home Screen;
5. Go to the home screen and tap on the bookmark;
6. Check if the opened page is bookmarked.
Expected result:
The page appears as bookmarked.
Actual result:
The page does not appear as bookmarked.
Reporter | ||
Updated•11 years ago
|
status-firefox27:
--- → affected
status-firefox28:
--- → affected
status-firefox29:
--- → affected
status-firefox30:
--- → affected
Updated•11 years ago
|
tracking-fennec: --- → ?
Updated•11 years ago
|
Assignee: nobody → bnicholson
Updated•11 years ago
|
tracking-fennec: ? → +
Assignee | ||
Comment 1•11 years ago
|
||
I'm assuming this short-circuiting logic was to added prevent flickering favicons/page titles, but we don't want to miss other state updates.
Attachment #8372747 -
Flags: review?(rnewman)
Assignee | ||
Comment 2•11 years ago
|
||
An overview of what's happening here:
1) All tabs loaded from Java are created as stubs, meaning their URLs are set before Gecko responds with a Tab:Added message (http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/Tabs.java#758).
2) We get a location changed event, but we return early because the URL is the same (http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/Tab.java#612).
3) Consequently, updateBookmark never gets called.
Assignee | ||
Comment 3•11 years ago
|
||
Minor update that adds an updateBookmark() call to the Tab constructor so that we don't need to rely on the location change event for updates. This means we can avoid doing extra updateBookmark() calls if oldUrl == url, like we had before.
Attachment #8372747 -
Attachment is obsolete: true
Attachment #8372747 -
Flags: review?(rnewman)
Attachment #8373545 -
Flags: review?(rnewman)
Comment 4•11 years ago
|
||
Comment on attachment 8373545 [details] [diff] [review]
Don't short-circuit most tab updates if the URL is the same, v2
Review of attachment 8373545 [details] [diff] [review]:
-----------------------------------------------------------------
Imma say this looks good to me, under the assumption that you've tested the crap out of this and we have several weeks to notice if titles or icons don't get updated correctly.
Thanks for doing the digging!
::: mobile/android/base/Tab.java
@@ +419,4 @@
> }
>
> + mBookmark = BrowserDB.isBookmark(getContentResolver(), url);
> + mReadingListItem = BrowserDB.isReadingListItem(getContentResolver(), url);
/me files bug to only hit the DB *once* on every tab load.
/me files bug to not hit the DB on every tab load.
Attachment #8373545 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Status: NEW → ASSIGNED
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Updated•4 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
•