Closed
Bug 994146
Opened 11 years ago
Closed 11 years ago
Loop client should reset panel when activated
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla33
backlog | mlp+ |
People
(Reporter: abr, Unassigned)
References
Details
(Whiteboard: [est:1d][p=1])
Attachments
(1 file)
Currently, when one clicks on the Loop icon (presently, a phone handset), the drop-down panel state is whatever was last in that panel. While this is probably the correct behavior once we have an address book to display, right now, it leads to some odd behaviors:
1) If a URL was generated, then dropping down the box again will display the same URL. This runs counter to the intention that these URLs should be individually generated.
2) If an error was generated (e.g., "could not generate URL"), and the window is closed, that error is still displayed.
I assume there is some event we can intercept (either when the pane becomes invisible, or when it is about to become visible) that would allow us to reset it to its initial state. We need to add this functionality before MLP.
Assignee | ||
Comment 1•11 years ago
|
||
I'm not aware of such an event to listen to and I can't find any doc about it, but :mixedpuppy might know.
Flags: needinfo?(mixedpuppy)
Comment 2•11 years ago
|
||
Haven't we got some sort of onshow event for the document?
Updated•11 years ago
|
Priority: -- → P3
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Yes, use socialFrameShow. Visibility api should also work, but needs verification.
Flags: needinfo?(mixedpuppy)
Updated•11 years ago
|
Whiteboard: [est:?]
Updated•11 years ago
|
Whiteboard: [est:?] → [est:1d]
Updated•11 years ago
|
backlog: --- → mlp+
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → nperriault
Assignee | ||
Comment 5•11 years ago
|
||
This patch uses the DOM visibility API, which is implemented in Desktop and works fairly great.
dmose, please take over the patch if you want DOM integration tests, I felt like unit tests & stubs were enough here.
Attachment #8413845 -
Flags: review?(dmose)
Updated•11 years ago
|
Whiteboard: [est:1d] → [est:1d][p=1]
Target Milestone: --- → mozilla32
Updated•11 years ago
|
Priority: P3 → P1
Comment 6•11 years ago
|
||
Comment on attachment 8413845 [details] [review]
https://github.com/adamroach/gecko-dev/pull/19
r=dmose. Review notes and requests in the PR; please address as appropriate and squash before merging.
Thanks for the patch!
Attachment #8413845 -
Flags: review?(dmose) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Landed on loop-ui-initial with r=dmose: https://github.com/adamroach/gecko-dev/commit/e12cdb6a6285ecbb777d4e7893666328ddb6bc65
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 8•11 years ago
|
||
Comment 9•10 years ago
|
||
Updated•10 years ago
|
Target Milestone: mozilla32 → mozilla33
Comment 10•10 years ago
|
||
Verified fixed through basic dogfooding. Adam, do you think this is worth having a regression test in Moztrap?
Status: RESOLVED → VERIFIED
Flags: needinfo?(adam)
OS: Mac OS X → All
Hardware: x86 → All
Reporter | ||
Comment 11•10 years ago
|
||
(In reply to Anthony Hughes, QA Mentor (:ashughes) from comment #10)
> Verified fixed through basic dogfooding. Adam, do you think this is worth
> having a regression test in Moztrap?
Short version: not yet.
Full version: it's going to be kind of tricky to put together a regression test will last very long, since this behavior will shortly change so that the URL changes only if it's been copied or shared. Long-term, we're going to want to test that "the right thing" happens when the panel opens, but I would hold off until we have the final UX implemented.
Flags: needinfo?(adam)
Comment 12•10 years ago
|
||
Thanks for the detailed response, Adam. Please needinfo me when you feel this needs to get a regression test.
You need to log in
before you can comment on or make changes to this bug.
Description
•