Closed Bug 903401 Opened 11 years ago Closed 11 years ago

[Contacts] The close button on Merge duplicates screen is kept like pressed on

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+)

RESOLVED DUPLICATE of bug 908100
blocking-b2g koi+

People

(Reporter: isabelrios, Assigned: gtorodelvalle)

References

Details

(Whiteboard: [u=commsapps-user c=contacts p=0])

Attachments

(2 files)

Attached image 2013-08-09-15-00-30.png
Unagi device master 08/09 build:
Gecko-9fc67ed
Gaia-845abbb
ref ril

STR
At least there should be two contacts in the contacts list with for example same Name and same Phone number
1. Open contacts app
2. Tap on one of the contacts
3. On details view, tap on 'Find duplicates'
4. When the Merge duplicates screen is shown tap on the 'x' button, without lifting the finger from the screen move it to the right.

EXPECTED
The 'x' button should go back to normal after it has been tapped 

ACTUAL
The 'x' button looks like it is pressed althouth it is not. 
Please see screenshot attached
Blocks: 894851
Whiteboard: [u=commsapps-user c=contacts p=0]
koi+ as it links to koi-comms bug
blocking-b2g: --- → koi+
Adding Salva to the bug :)
Assignee: nobody → salva
This is a very weird bug. This is happening for the buttons inside those views being loaded via the `extensionFrame` in `service_extension.js`. You can reproduce it in the import formulary from Gmail as well.
Hey, Isma, I need some of your magic. The problem is in the presence of classes `view-right` and `view-bottom`.

You can test it by:

1- Comment all the JavaScript in `index.html` and `matching_contacts.html`
2- Add an <iframe> to `index.html` with the src attribute set to `matching_contacts.html`
3- Use CSS to show it over the rest of views.

Now you can see the `matching_contacts.html` layout, check the issue is reproducing. Tap on the X button, drag the finger outside the X and leave the screen to see how the button keeps pressed.

Now remove `view-right` and `view-bottom` classes and check again.

What could it be? Thank you.
Flags: needinfo?(igonzaleznicolas)
Wooow. This was tricky but I think I found the root cause

It is related with position: absolute or position: fixed. When using the CSS snippet:

* {
  margin: 0;
  padding: 0;
}

.view {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

We can already move the .view a little bit. It seems when moving the underlying div and releasing, Gecko is not removing the pseudo-class :active for the buttons. This can be avoided by using position: fixed instead. It has the same practical result in this context.

I'm going prepare a workaround for this bug and opening a platform issue with a simple test application.
Flags: needinfo?(igonzaleznicolas)
You didn't give the chance to test it Salva! Glad to see you've find a workaround.
But yes seems to be a platform issue :D thx!
Attached file Fixing markup and CSS
Attachment #793892 - Flags: review?(francisco.jordano)
Comment on attachment 793892 [details]
Fixing markup and CSS

r+ just a small comment on github.

Thank Salva!
Attachment #793892 - Flags: review?(francisco.jordano) → review+
ready for landing? thanks
Flags: needinfo?(salva)
Master: 96b2b6b87433bc0f818de431b63e70c3f3d79135

Sorry for the delay!
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(salva)
Resolution: --- → FIXED
Bug verified with:
Device: unagi
Branch: master 
Gecko: d445929
Gaia: 0395f26
Status: RESOLVED → VERIFIED
https://github.com/vingtetun/gaia/commit/29fc735cf923564ceb856d2a2a25f6f66d9467a4

Sorry guys I had to backout this one because of fps scrolling performance regression on the main contact list. Those are due to the switch from |absolute| to |fixed|.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
No longer blocks: 908100
Depends on: 908100
Then please, review the bug 908100.
Apart, )'m getting curious, can you explain to me (or refer me to some discussion / article) why fixed position is affecting performance, please?
Flags: needinfo?(21)
Blocks: 915169
No longer blocks: 894851
Target Milestone: --- → 1.2 QE1(Oct11)
Blocks: 921977
Flags: needinfo?(21) → needinfo?(gtorodelvalle)
German,

How is this bug?

Can we close it?
Assignee: salva → gtorodelvalle
Nope, it still reproduces... :-) I do not know if Salva got the info he requested from Vivien regarding the performance issue, did you Salva? Thanks!

I'll keep as assigned to me until we decide the way to go and who implements the agreed solution.
Flags: needinfo?(gtorodelvalle)
Flags: needinfo?(salva)
Once Bug 908100 (platform one) is fixed no additional changes should be needed on gaia side, at that stage, we could mark this issue as RESOLVED FIXED or WORKSFORME so let's wait till Bug 908100 is fixed in order to close this one.
Flags: needinfo?(salva)
Target Milestone: 1.2 C2(Oct11) → 1.2 C3(Oct25)
Target Milestone: 1.2 C3(Oct25) → ---
(In reply to Noemí Freire (:noemi) from comment #17)
> Once Bug 908100 (platform one) is fixed no additional changes should be
> needed on gaia side, at that stage, we could mark this issue as RESOLVED
> FIXED or WORKSFORME so let's wait till Bug 908100 is fixed in order to close
> this one.

Let's actually dupe in that case - the root problem is platform level, which is tracked in bug 908100.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
No longer depends on: 908100
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: