Closed
Bug 1031331
Opened 11 years ago
Closed 11 years ago
[homescreen] Do not show the contextmenu while in edit mode
Categories
(Firefox OS Graveyard :: Gaia::Homescreen, defect)
Firefox OS Graveyard
Gaia::Homescreen
Tracking
(b2g-v2.0 fixed, b2g-v2.1 fixed)
RESOLVED
FIXED
2.0 S5 (4july)
People
(Reporter: vingtetun, Assigned: vingtetun, NeedInfo)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
|
4.02 KB,
patch
|
crdlc
:
review+
bajaj
:
approval-gaia-v2.0+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Christian, here is the followup I promised in bug 1028708, with a patch and the according test.
Assignee: nobody → 21
Attachment #8447190 -
Flags: review?(crdlc)
| Assignee | ||
Comment 2•11 years ago
|
||
Updated•11 years ago
|
Whiteboard: [systemsfe]
Target Milestone: --- → 2.0 S5 (4july)
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking-][VH-FC-blocking?]
Comment 3•11 years ago
|
||
From a UX perspective this bug should not be a blocker.
Comment 4•11 years ago
|
||
(In reply to jsavory from comment #3)
> From a UX perspective this bug should not be a blocker.
Given this lets consider approval for uplift here once ready and not block on it.
blocking-b2g: 2.0? → ---
Updated•11 years ago
|
QA Whiteboard: [VH-FL-blocking-][VH-FC-blocking?] → [VH-FL-blocking-][VH-FC-blocking-]
Updated•11 years ago
|
Blocks: vertical-home-next
Comment 5•11 years ago
|
||
Comment on attachment 8447190 [details] [diff] [review]
bug1031331.patch
LGTM although I prefer to do it via events
window.addEventListener('gaiagrid-editmode-start', this);
window.addEventListener('gaiagrid-dragdrop-end', this);
case 'gaiagrid-editmode-start':
this.container.removeEventListener('contextmenu', this);
case 'gaiagrid-editmode-end':
this.container.addEventListener('contextmenu', this);
But as I said you can follow this idea or yours, up to you, both of them are good. Although if you implement the code based on events please fix it [1]. The event was named wrongly
[1] https://github.com/mozilla-b2g/gaia/blob/master/shared/elements/gaia_grid/js/grid_dragdrop.js#L376
Attachment #8447190 -
Flags: review?(crdlc) → review+
Comment 6•11 years ago
|
||
Sorry window.addEventListener('gaiagrid-dragdrop-end', this); instead of window.addEventListener('gaiagrid-editmode-end', this); I cannot edit my last comment as in github :)
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Cristian Rodriguez (:crdlc) from comment #6)
> Sorry window.addEventListener('gaiagrid-dragdrop-end', this); instead of
> window.addEventListener('gaiagrid-editmode-end', this); I cannot edit my
> last comment as in github :)
Yeah, that's one of the thing that is painful on bugzilla (but I really prefer the rest of the review interface).
| Assignee | ||
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 9•11 years ago
|
||
Comment on attachment 8447190 [details] [diff] [review]
bug1031331.patch
This is needed for the vertical homescreen.
Attachment #8447190 -
Flags: approval-gaia-v2.0?(bbajaj)
Updated•11 years ago
|
Attachment #8447190 -
Flags: approval-gaia-v2.0?(bbajaj) → approval-gaia-v2.0+
Comment 10•11 years ago
|
||
status-b2g-v2.0:
--- → fixed
status-b2g-v2.1:
--- → fixed
Updated•11 years ago
|
Comment 11•10 years ago
|
||
Hi Vivien,
Could you provide the detailed reproduce steps for me to verify this bug?
Thank you!
Flags: needinfo?(21)
You need to log in
before you can comment on or make changes to this bug.
Description
•