Closed
Bug 924971
Opened 11 years ago
Closed 11 years ago
[Contacts] Trying to add a contact as a recipient opens contact details instead of returning to Messages app.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox25 | --- | wontfix |
firefox26 | --- | fixed |
firefox27 | --- | fixed |
b2g18 | --- | unaffected |
b2g-v1.2 | --- | fixed |
People
(Reporter: KTucker, Assigned: ferjm)
References
Details
(Keywords: regression, Whiteboard: burirun2)
Attachments
(2 files, 1 obsolete file)
183.86 KB,
text/plain
|
Details | |
1.89 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
Description:
If the user is composing a new SMS, taps on the "+" to add a contact to the "To:" field, it will view the contact's information instead of adding them as a recipient if the "Contacts" app is open in the background.
Repro Steps:
1) Updated Buri to Build ID: 20131009004001
2) Tap on the "Contacts" icon to open contacts.
3) Tap the "Home Button" on the phone to return to the homescreen.
4) Tap on the "SMS" icon to open messaging.
5) Tap on the "Compose New Message" icon.
6) Tap on the "+" icon and tap on a contact name to add them as a recipient.
7) Tap on the "+" icon again and tap on another contact name.
Actual:
The user will be view the contact's information instead of adding them to the "To:" field.
Expected:
The contact selected will be added as a recipient to the "To:" field.
Environmental Variables
Device: Buri v 1.2.0 Mozilla RIL
Build ID: 20131009004001
Gecko: http://hg.mozilla.org/releases/mozilla-aurora/rev/e5edb484e2a9
Gaia: 672c47bf94b69a329e0aacb9228a6aa16ade6226
Platform Version: 26.0a2
RIL Version: 01.02.00.019.056
Notes:
Repro frequency: 100%
See attached: logcat
Reporter | ||
Comment 1•11 years ago
|
||
This issue does not occur on Leo v1.1 Mozilla Rill
Environmental Variables
Device: Leo v 1.1.0 Mozilla COM RIL
Build ID: 20131001041206
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/c630289d6388
Gaia: 02b975e6ce12922928c74276ac7d19432a03f126
Platform Version: 18.1
RIL Version: 01.01.00.019.240
The contact is added to the "To:" field and not taken to the view the contact's information.
Reporter | ||
Updated•11 years ago
|
Summary: [B2G][SMS] The user is taken to view the contact instead of adding them as a recipient when composing a SMS if the contacts app is running in the background → [B2G][SMS] Trying to add a contact as a recipient on a new SMS, opens the contact's information instead when the contacts app is running in the background
Comment 2•11 years ago
|
||
(In reply to ktucker from comment #0)
> Created attachment 814951 [details]
> logcat
>
> Description:
> If the user is composing a new SMS, taps on the "+" to add a contact to the
> "To:" field, it will view the contact's information instead of adding them
> as a recipient if the "Contacts" app is open in the background.
>
> Repro Steps:
> 1) Updated Buri to Build ID: 20131009004001
> 2) Tap on the "Contacts" icon to open contacts.
> 3) Tap the "Home Button" on the phone to return to the homescreen.
> 4) Tap on the "SMS" icon to open messaging.
> 5) Tap on the "Compose New Message" icon.
> 6) Tap on the "+" icon and tap on a contact name to add them as a recipient.
> 7) Tap on the "+" icon again and tap on another contact name.
>
> Actual:
> The user will be view the contact's information instead of adding them to
> the "To:" field.
>
> Expected:
> The contact selected will be added as a recipient to the "To:" field.
Confirmed. This is actually controlled by the Contacts app: updating component.
Component: Gaia::SMS → Gaia::Contacts
Summary: [B2G][SMS] Trying to add a contact as a recipient on a new SMS, opens the contact's information instead when the contacts app is running in the background → [Contacts] Trying to add a contact as a recipient opens contact details instead of returning to Messages app.
Updated•11 years ago
|
blocking-b2g: --- → koi?
Comment 3•11 years ago
|
||
Seems to be a similar problem than bug 924694
Updated•11 years ago
|
Assignee: nobody → francisco.jordano
Updated•11 years ago
|
QA Contact: laliaga
Comment 4•11 years ago
|
||
View contact on 2nd SMS recipient first occurs on the 10/8 1.3 build.
- Issue doesn't appear on Buri 1.3 Moz 10/5 -
Gaia c9090021f7d642bae1db73a1093ab3dbb5078642
SourceStamp b5d24ef1eb37
BuildID 20131005040201
Version 27.0a1
Builds 10/6 and 10/7 are untestable and stuck in a boot loop.
- Issue first starts appearing on Buri 1.3 Moz 10/8 -
Gaia 122ff8c6363227501f4121e5a3892ba41d4c0417
SourceStamp 64b497e6f593
BuildID 20131008064334
Version 27.0a1
Keywords: regressionwindow-wanted
Comment 5•11 years ago
|
||
Pretty bad user experience and hence bumping it to koi+
blocking-b2g: koi? → koi+
Updated•11 years ago
|
Target Milestone: --- → 1.2 C3(Oct25)
Comment 6•11 years ago
|
||
Hi all,
I'll need some help from @fabrice here.
The second time that we launch the activity (following the steps to verify) we have this error:
E/GeckoConsole( 892): [JavaScript Error: "NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" {file: "jar:file:///system/b2g/omni.ja!/components/ActivityWrapper.js" line: 47}]
I was debugging and saw in the second call how we were setting up the handler:
https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/contacts/js/contacts.js#L739-L741
but whenver we really setup the handler:
|window.navigator.mozSetMessageHandler('activity', actHandler); |
We got the error above:
[nsISupports.QueryInterface]" {file: "jar:file:///system/b2g/omni.ja!/components/ActivityWrapper.js" line: 47}]
Ending up in not executing the |actHandler| function, in this case |ActivityHandler.handle| who is in charge of making the clicks that we do behave in a different way depending if we are handling an activity or not.
So, seems to me that we will need some of the magic help from Fabrice here.
Thanks!
F.
Flags: needinfo?(fabrice)
Comment 8•11 years ago
|
||
Francisco, I don't see any big change on the gaia side around this code lately, so I'm going to bisect gecko. Stop me if I'm wrong ;)
Flags: needinfo?(fabrice)
Comment 9•11 years ago
|
||
From the logs, after we complete the first activity we get an "inner-window-destroyed" notification. That usually means that the page serving the activity was closed or navigated to another url. Is that the case here?
Comment 10•11 years ago
|
||
So, I have good news and bad news...
The good news is that I isolated the gecko regression. The bad news (especially for ferjm), is that it's bug 915598 again (I also had to backout 927363 to get a build that worked.
Fernando, the fact that we get an inner-window-destroyed with 915598 makes me think that we may not use the right kind of message listener, but I didn't test a change yet. If we can't fix that fast, we'll have to backout I'm afraid.
Flags: needinfo?(ferjmoreno)
Assignee | ||
Updated•11 years ago
|
Assignee: francisco.jordano → ferjmoreno
Flags: needinfo?(ferjmoreno)
Assignee | ||
Comment 11•11 years ago
|
||
1- This patch fixes the issue (at least on my local tests).
2- We need a bigger "+" button or smaller fingers :\
Attachment #818496 -
Flags: review?(fabrice)
Assignee | ||
Comment 12•11 years ago
|
||
And now without whites paces... Sorry for the spam
Attachment #818496 -
Attachment is obsolete: true
Attachment #818496 -
Flags: review?(fabrice)
Attachment #818498 -
Flags: review?(fabrice)
Assignee | ||
Updated•11 years ago
|
Component: Gaia::Contacts → DOM
Product: Boot2Gecko → Core
Updated•11 years ago
|
Attachment #818498 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Assignee | ||
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
I think we'll switch to an inline activity instead of a window activity for the "send sms" activity. Do you think this will fix/break something here ?
Comment 18•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 19•11 years ago
|
||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•