Closed
Bug 1417361
Opened 8 years ago
Closed 7 years ago
[Activity Stream] - Tablet menu is not opened correctly
Categories
(Firefox for Android Graveyard :: Activity Stream, defect, P1)
Tracking
(firefox57 unaffected, firefox58 fixed, firefox59 verified)
RESOLVED
FIXED
Firefox 59
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | unaffected |
| firefox58 | --- | fixed |
| firefox59 | --- | verified |
People
(Reporter: bsurd, Assigned: mcomella)
References
Details
Attachments
(2 files)
|
59 bytes,
text/x-review-board-request
|
liuche
:
review+
gchang
:
approval-mozilla-beta+
|
Details |
|
59 bytes,
text/x-review-board-request
|
liuche
:
review+
gchang
:
approval-mozilla-beta+
|
Details |
Device:
- Huawei MediaPad M2 (Android 5.1.1);
- Samsung Galaxy Tab S3 (Android 7.0);
Builds:
- Nightly (2017-11-14);
- Beta (58.0b3);
- Release (57.0);
Steps to reproduce:
1. Open Fennec;
2. In Top Sites tap on the 3 dot menu for Pocket stories or Highlights.
Expected result:
The menu is opened in the 3 dot menu area.
Actual result:
The menu is opened in the top left corner.
Notes:
This is reproducible for Nightly and Beta, but not for Release.
Video: https://goo.gl/CkNNVS
| Assignee | ||
Comment 1•7 years ago
|
||
We changed the view anchor in order to prevent a crash when the RecyclerView item view was no longer visible. Perhaps the solution here is to pass in the primary view to use as an anchor and a back-up that is guaranteed to be in the view hierarchy.
Blocks: 1410221
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8932677 [details]
Bug 1417361: Use anchor for context menu on tablet.
https://reviewboard.mozilla.org/r/203740/#review209570
::: mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/menu/PopupContextMenu.java:31
(Diff revision 1)
> private final PopupWindow popupWindow;
> private final NavigationView navigationView;
>
> - private final View anchor;
> + private final View contextMenuAnchor;
>
> - public PopupContextMenu(final View anchor,
> + public PopupContextMenu(final View contextMenuAnchor,
I guess we still need both because we show a snackbar for bookmarking.
Attachment #8932677 -
Flags: review?(liuche) → review+
Comment 5•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8932678 [details]
Bug 1417361: Rename OnCardLongClickListener.onClick -> onLongClick.
https://reviewboard.mozilla.org/r/203742/#review209572
Attachment #8932678 -
Flags: review?(liuche) → review+
Pushed by michael.l.comella@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/508c22743a6d
Use anchor for context menu on tablet. r=liuche
https://hg.mozilla.org/integration/autoland/rev/5189909a58bb
Rename OnCardLongClickListener.onClick -> onLongClick. r=liuche
Comment 7•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/508c22743a6d
https://hg.mozilla.org/mozilla-central/rev/5189909a58bb
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
| Reporter | ||
Comment 8•7 years ago
|
||
Verified on the latest Nightly build using a Samsung Galaxy Tab S3 (Android 7.0). The issue is no longer reproducible, marking this as verified for 59.
| Assignee | ||
Comment 10•7 years ago
|
||
Comment on attachment 8932677 [details]
Bug 1417361: Use anchor for context menu on tablet.
Approval Request Comment
[Feature/Bug causing the regression]: fix for bug 1410221
[User impact if declined]: Users on tablet will see the Activity Stream context menu menu appearing in the wrong place
[Is this code covered by automated tests?]: No
[Has the fix been verified in Nightly?]: Yes, comment 8
[Needs manual test from QE? If yes, steps to reproduce]: Already done.
[List of other uplifts needed for the feature/fix]: None.
[Is the change risky?]: Low to medium.
[Why is the change risky/not risky?]: It's a simple change – we pass an additional View instance through several layers of abstraction (the same one we passed before bug 1410221, which caused this one so it's unlikely to cause problems as we also kept the fix for bug 1410221) and anchor our context menu on it. This is slightly tricky just because of all the layers of abstraction. Normally, this would be 100% covered by type checking but we're passing two View parameters so it's possible we swapped them. However, the code is verified by QA and my self as working so it's unlikely we've done so.
[String changes made/needed]: None
Flags: needinfo?(michael.l.comella)
Attachment #8932677 -
Flags: approval-mozilla-beta?
| Assignee | ||
Comment 11•7 years ago
|
||
Comment on attachment 8932678 [details]
Bug 1417361: Rename OnCardLongClickListener.onClick -> onLongClick.
Approval Request Comment: see comment 10. This patch isn't necessary but for simplicity, I figure we should uplift both. This is a simple rename, done by the IDE, so shouldn't have any problems.
Attachment #8932678 -
Flags: approval-mozilla-beta?
| Assignee | ||
Updated•7 years ago
|
Priority: -- → P1
Comment 12•7 years ago
|
||
Comment on attachment 8932677 [details]
Bug 1417361: Use anchor for context menu on tablet.
Fix an incorrect tablet menu in Activity Stream and was verified. Beta58+.
Attachment #8932677 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•7 years ago
|
Attachment #8932678 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 13•7 years ago
|
||
| bugherder uplift | ||
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
•