Closed
Bug 821221
Opened 13 years ago
Closed 12 years ago
[SMS] Text on "select all" or "deselect all" button disappears when scrolling the "edit" view of a SMS conversation
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect, P2)
Tracking
(blocking-basecamp:+)
People
(Reporter: wachen, Assigned: dholbert)
References
Details
(Keywords: regression)
Attachments
(2 files)
145.00 KB,
patch
|
Details | Diff | Splinter Review | |
73 bytes,
text/html
|
vingtetun
:
review+
|
Details |
*Phone: Unagi
2012-12-12
https://releases.mozilla.com/b2g/
*How to reproduce:
0. send an message to phone A
1. receive an message from phone A
2. send an message to phone A
3. keep sending the messages to make it more than 1.5 pages
3. click Edit icon on upper-right corner of messages screen
4. try to scroll up and down
*Expected Result:
Nothing happened
*Actual Result:
The buttons went blank
Reporter | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Comment 1•13 years ago
|
||
Triage: BB+, C3, P2 - regression for broken feature
blocking-basecamp: ? → +
Keywords: regression
Priority: -- → P2
Target Milestone: --- → B2G C3 (12dec-1jan)
Updated•13 years ago
|
Assignee: nobody → mbudzynski
Updated•13 years ago
|
Component: Gaia::SMS → Layout
Product: Boot2Gecko → Core
QA Contact: mbarone976
Comment 2•13 years ago
|
||
According to my research it's not a Gaia bug, nothing changes in the button.
:cjones do you know who can help with this?
Flags: needinfo?(jones.chris.g)
(In reply to Michal Budzynski (:michalbe) from comment #2)
> According to my research it's not a Gaia bug, nothing changes in the button.
If nothing changes after pressing the "Edit" button, that seems like a gaia bug?
> :cjones do you know who can help with this?
The best way is to download nightly builds and find when this behavior regressed.
Flags: needinfo?(jones.chris.g)
Keywords: regressionwindow-wanted
Comment 4•13 years ago
|
||
I think I don't understand. You can get into the EDIT mode, but when you scroll the labels on buttons went blank. From Gaia perspective nothing changes - the label is still set on the button, and CSS classes don't change. Platform is the only explanation here.
Updated•13 years ago
|
Assignee: mbudzynski → nobody
Comment 5•13 years ago
|
||
To dholbert for a look. Unclear where/when this broke, though bisecting builds may take longer than inspecting the frame tree log.
Assignee: nobody → dholbert
Reporter | ||
Comment 6•13 years ago
|
||
I think last time when I report the message can't get selected bug, the buttons are still okay. I believe it's still okay 1~2weeks ago.
QA Contact: wachen
Assignee | ||
Comment 7•13 years ago
|
||
Well, here's a frame dump from an instance where I reproduced this on trunk. I think it's a painting/invalidation issue... not sure how do debug those on B2G. Gonna try for a bit, but I think it may be more efficient to investigate this by doing build bisecting. (regression range tracking)
Assignee | ||
Comment 8•13 years ago
|
||
If I add "opacity: 0.99" to .edit-button, here:
https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/style/sms.css#L434
it "fixes" this bug (without any side-effects, AFAICT).
So:
1) That indicates that this is likely from putting things in the wrong part of the display
list or something... (since setting opacity forces a stacking context, IIRC)
2) Worst-case, that tweak could be used as a workaround for this.
3) I wonder if maybe we used to have an opacity specified on these buttons by default -
if so, that removal might've been what "regressed" this.
Summary: [SMS] "select all" or "deselect all" button would disappear → [SMS] Text on "select all" or "deselect all" button disappears when scrolling the "edit" view of a SMS conversation
Assignee | ||
Comment 9•13 years ago
|
||
One other data-point: If I turn disable painting button-backgrounds, then the bug goes away.
In more detail -- if I add an "if(false)" around this chunk (which paints the button's background/border) here...
https://mxr.mozilla.org/mozilla-central/source/layout/forms/nsHTMLButtonControlFrame.cpp?rev=8697feee8fa1&mark=118-121#112
...then the "Select all" text remains visible in cases where this bug would normally disappear.
So I think what's happening here is that we're painting the button background on top of its label, or something like that.
Assignee | ||
Comment 10•13 years ago
|
||
Also: for the record, I've been unable to reproduce this with the B2G desktop client on my Linux machine -- I can only repro it on actual hardware (my unagi). If anyone *has* been able to repro it on the desktop, let me know, because it'd be much easier to debug there, if it were possible to reproduce...
Assignee | ||
Comment 11•13 years ago
|
||
(at mattwoodrow's suggestion, I checked whether setting gfx.xrender.enabled=false makes this reproducible on B2G desktop client. That didn't seem to have any effect -- still can't repro on desktop.)
Assignee | ||
Comment 12•13 years ago
|
||
So -- I did the following:
(a) Toggled gfxUtils::sDumpPaintList to dump display lists
(b) Reproduced the bug (on the "Select all" button), & saved the last display-list
(c) Tapped the "Select all" button (w/ missing text) and then "Deselect all", which returned me to the same selection-state as in (b), except with the button-text now visible, and saved that last display list.
From comparing the display lists, mattwoodrow & I discovered that the display lists at the end of (b) and (c) were **the same**. (There was only one difference, and it wasn't significant -- we replaced the old opacity-layer around the (disabled) "Deselect all" button with a new one, because it temporarily lost its opacity when it was enabled in the middle of step (c).)
mattwoodrow says this indicates that this is a painting bug. (since, given the same display list, we're painting different things) I don't really know how to debug that -- I suspect it's tricky, and mattwoodrow suggests that it might be best to throw a cairo expert at it. (jrmuizel?) I don't know how soon that can happen or how long that will take.
In the meantime, I think it's probably best that we just hack around this in the SMS app by adding the one line of CSS that I suggested in comment 8 -- "opacity:0.99" in .edit-button.
Unassigning, so that others can take this and do either or both of those things. (I might file a pull request for that opacity tweak in the next day or so, if no one else beats me to it.)
Assignee: dholbert → nobody
Comment 13•13 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #8)
> If I add "opacity: 0.99" to .edit-button, here:
>
> https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/style/sms.css#L434
> it "fixes" this bug (without any side-effects, AFAICT).
>
> So:
> 1) That indicates that this is likely from putting things in the wrong part
> of the display
> list or something... (since setting opacity forces a stacking context,
> IIRC)
> 2) Worst-case, that tweak could be used as a workaround for this.
> 3) I wonder if maybe we used to have an opacity specified on these buttons
> by default -
> if so, that removal might've been what "regressed" this.
Over to Gaia to evaluate the workaround that dholbert proposed in comment 8.
Component: Layout → Gaia::SMS
Product: Core → Boot2Gecko
Assignee | ||
Comment 14•13 years ago
|
||
Attachment #694485 -
Flags: review?(21)
Comment 15•12 years ago
|
||
Comment on attachment 694485 [details]
pull request for workaround
r+ to land this workaround as long as there is a bug to track the gecko issue. (Could be this one or another)
Attachment #694485 -
Flags: review?(21) → review+
Comment 16•12 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/45cb8ba540adbdd24a1b97d26f4bb2bca44c64cc
Since there is a workaround I don't think this bug is still a blocking-basecamp. Renominating just to keep it visible for triagers but should really be minus now.
blocking-basecamp: + → ?
Comment 17•12 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #16)
> https://github.com/mozilla-b2g/gaia/commit/
> 45cb8ba540adbdd24a1b97d26f4bb2bca44c64cc
>
> Since there is a workaround I don't think this bug is still a
> blocking-basecamp. Renominating just to keep it visible for triagers but
> should really be minus now.
As often Daniel is right and prefer to keep this one blocking+ with a new bug opened to track the platform issue. So let's do that.
blocking-basecamp: ? → +
Assignee | ||
Comment 18•12 years ago
|
||
Thanks! I filed bug 824088 on the underlying gecko issue, and I'm resolving this as FIXED.
Assignee: nobody → dholbert
Status: NEW → RESOLVED
Closed: 12 years ago
Keywords: qawanted,
regressionwindow-wanted
Resolution: --- → FIXED
Reporter | ||
Comment 19•12 years ago
|
||
Per vivien: "prefer to keep this one blocking+ with a new bug opened to track the platform issue"
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 20•12 years ago
|
||
I think you misunderstood -- vivien wasn't saying this bug here should stay open. This (blocking) bug (the SMS app being messed up) is now fixed, as of the pull request being merged.
There remains an underlying platform bug which we're now working around, and I spun off bug 824088 for that (which remains open). But the SMS app should now be working, so this bug here is fixed.
--> Re-resolving as fixed.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 21•12 years ago
|
||
(Please do reopen if you can still reproduce with newer versions of gaia than the merge in comment 16, of course)
Reporter | ||
Comment 22•12 years ago
|
||
Reproduced in 2012-12-23 https://releases.mozilla.com/b2g/.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 23•12 years ago
|
||
Are you sure you had up-to-date Gaia? (up-to-date releases.mozilla.com/b2g/ wouldn't matter)
Assignee | ||
Comment 24•12 years ago
|
||
(I just tried to reproduce for ~5 minutes with an up-to-date just-compiled b2g build on my unagi, and I haven't been able to.)
Assignee | ||
Comment 25•12 years ago
|
||
Oh, sorry -- I misread that URL as being a version of "git.mozilla.org/releases/b2g" -- didn't realize it had prebuilt nightly snapshots.
I'll try one of those...
Assignee | ||
Comment 26•12 years ago
|
||
I downloaded the 12/23 build from that page. Its "More Info" settings screen says
Git commit info 07:14:27
2012-12-21 e79b7f4...
I'm not sure what parts (gaia vs b2g vs ??) that datestamp/commit correspond to, but that datestamp is definitely ~5 hours **before** this bug's patch was merged to gaia (in comment 16), so it's entirely possible that that build lacks the fix.
If you're sure it's got the patch (I don't know how to demonstrate conclusively that it does/doesn't), then I'd start to worry...
Assignee | ||
Comment 27•12 years ago
|
||
The 12/24 build from https://releases.mozilla.com/b2g/ should definitely have the patch (at least, the "git commit info" has a 12/24 datestamp) -- Walter, would you mind seeing if you can reproduce in that build?
Reporter | ||
Comment 28•12 years ago
|
||
Verified in 2012/12/24 build
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 29•12 years ago
|
||
Phew -- that's good to hear, thanks! :)
Reporter | ||
Comment 30•12 years ago
|
||
No problem! Thanks for the quick response.
You need to log in
before you can comment on or make changes to this bug.
Description
•