Closed
Bug 1394459
Opened 7 years ago
Closed 7 years ago
Add support for Pocket context menu items
Categories
(Firefox for Android Graveyard :: General, enhancement, P1)
Tracking
(fennec+, firefox55 unaffected, firefox56 unaffected, firefox57 verified)
VERIFIED
FIXED
Firefox 57
Tracking | Status | |
---|---|---|
fennec | + | --- |
firefox55 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | --- | verified |
People
(Reporter: liuche, Assigned: liuche)
References
Details
(Whiteboard: [MobileAS])
Attachments
(1 file)
Bug 1380808 added Pocket to new tab, but context menu items don't work (Bookmarking, Remove, etc).
From comment [1], we want the following:
Bookmark
---
Open in new tab
Open in private tab
---
Remove
---
Share
Copy address
The "Remove" item will be handled by bug 1393178.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1380808#c6
Updated•7 years ago
|
tracking-fennec: ? → +
Priority: -- → P2
Assignee | ||
Updated•7 years ago
|
Rank: 1
Assignee | ||
Comment 1•7 years ago
|
||
Picking this up bc all other bugs in the sprint are assigned/blocked.
Assignee: nobody → liuche
Iteration: --- → 1.29
Priority: P2 → P1
Assignee | ||
Comment 2•7 years ago
|
||
Actually, to keep things simple, I'm just going to keep all the normal context-menu items (except Remove) so that all the items will have "pin", "add to homescreen". So this will make bookmarking and pinning work for Top Stories, and also hide the "Remove" option.
Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8902470 [details]
Bug 1394459 - Support bookmarking, pinning of Pocket items in context menu.
https://reviewboard.mozilla.org/r/174052/#review179684
A little hacky but simple so it seems fine to me.
::: mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/model/TopStory.java:81
(Diff revision 1)
> +
> + @Override
> + public void onStateCommitted() {
> + // Since Top Stories are not loaded from a cursor that automatically notifies of
> + // changes to bookmark or pin state, trash this cached state once we've committed it
> + // so it will be fetched every time.
nit: I didn't understand this comment until I found the code in `postInit` that refreshes isPinned when `isPinned == null`. Can we make the comment stand on its own, or reference postInit (to avoid duplicating information)? (maybe it's not possible)
I also only just noticed the docs in `WebpageModel.isPinned` that explains when these values are null - perhaps you should say to reference those too?
Attachment #8902470 -
Flags: review?(michael.l.comella) → review+
Comment hidden (mozreview-request) |
Pushed by cliu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/abe144dae14e
Support bookmarking, pinning of Pocket items in context menu. r=mcomella
![]() |
||
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Updated•7 years ago
|
status-firefox55:
--- → unaffected
status-firefox56:
--- → unaffected
Comment 8•7 years ago
|
||
Devices:
- HTC 10 (Android 7.0);
- Nexus 5 (Android 6.0.1);
Verified on the latest nightly. All menu items properly work for all 3 currently displayed pocket items. Remove item is still not available and will verify this once it is implemented in bug 1393178.
Status: RESOLVED → VERIFIED
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
•