Closed
Bug 1001243
Opened 11 years ago
Closed 11 years ago
Hitting the right edge of the toolbar in editing mode may fall through to the tabs button on devices without animations
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(firefox30 wontfix, firefox31+ fixed, firefox32 fixed)
RESOLVED
FIXED
Firefox 32
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(1 file, 2 obsolete files)
2.63 KB,
patch
|
bnicholson
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Turns out there is a difference between padding and margins on ImageViews! On certain devices, you can tap through the margins to the Views underneath them (hitting those buttons instead). In our case, this is tapping through the cancel button to the open tabs tray button underneath.
This is only a problem on devices without animations, where the tabs button does not get translated off screen. This is easily reproducible on an Xperia device I have but difficult on a Motorola Droid device (both pre-ICS).
Options:
* Replace the toolbar ImageView margins with padding
* setVisibility(View.INVISIBLE/GONE) on the menu items
We set a translation on the toolbar views [1], which I assume is not getting translated. So, we can *actually* translate the views off-screen if we wanted to too, but we should investigate why we bothered to try to do that in the first place (performance?).
[1]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/toolbar/BrowserToolbar.java?rev=2ca6c9728ed9#1009
Assignee | ||
Comment 1•11 years ago
|
||
I can confirm that this is reproducable on 30 with the go button (though it's much more difficult to do). I feel it's pretty insignificant so I'm going to WONTFIX 30 and below.
status-firefox28:
--- → wontfix
status-firefox29:
--- → wontfix
status-firefox30:
--- → wontfix
status-firefox31:
--- → affected
Summary: Hitting the toolbar cancel button will fall through to the tabs button on devices without animations → Hitting the right edge of the toolbar in editing mode may fall through to the tabs button on devices without animations
Assignee | ||
Comment 2•11 years ago
|
||
Actually, I suppose I never tested 29 and lower.
status-firefox28:
wontfix → ---
status-firefox29:
wontfix → ---
Comment 3•11 years ago
|
||
Does this look bad enough to track 31?
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8421306 -
Flags: review?(bnicholson)
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Aaron Train [:aaronmt] from comment #3)
> Does this look bad enough to track 31?
It's really bad on the Xperia, and it's impossible to say how many devices are affected so yes, I think we should uplift.
The patch in comment 4 is a quick and easy solution. I tried to play around and fix some potential efficiency issues while I was at it, but it ended up not being worth my time - bug 1009250.
Assignee | ||
Updated•11 years ago
|
tracking-firefox31:
--- → ?
Comment 6•11 years ago
|
||
Comment on attachment 8421306 [details] [diff] [review]
Disable tabs button when in editing mode.
Review of attachment 8421306 [details] [diff] [review]:
-----------------------------------------------------------------
Wouldn't it be preferable to replace the margins with the padding so that the hit area is as large as it should be? Changing the enabled state of the behind views seems hacky.
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8421360 -
Flags: review?(bnicholson)
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8421360 [details] [diff] [review]
Disable tabs button when in editing mode.
Unintentional upload.
Attachment #8421360 -
Attachment is obsolete: true
Attachment #8421360 -
Flags: review?(bnicholson)
Assignee | ||
Comment 9•11 years ago
|
||
As discussed on IRC, changing the margins to padding does not fix this issue on the Droid so here is an updated patch also disabling the menuButton.
Attachment #8421372 -
Flags: review?(bnicholson)
Assignee | ||
Updated•11 years ago
|
Attachment #8421306 -
Attachment is obsolete: true
Attachment #8421306 -
Flags: review?(bnicholson)
Comment 10•11 years ago
|
||
Comment on attachment 8421372 [details] [diff] [review]
Disable tabs button when in editing mode.
Review of attachment 8421372 [details] [diff] [review]:
-----------------------------------------------------------------
I'd prefer to fix this in the foreground somehow instead of changing the enabled state of the behind views, which seems fragile. But I don't have any better suggestions for now.
Attachment #8421372 -
Flags: review?(bnicholson) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8421372 [details] [diff] [review]
Disable tabs button when in editing mode.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Pre-existing but became prevalent in bug 965548.
User impact if declined:
Users on pre-ICS phones may unexpectedly open the tabs tray by hitting the not-visible tabs button when tapping the cancel button of the toolbar when trying to exit the awesomescreen
Testing completed (on m-c, etc.):
Tested locally.
Risk to taking this patch (and alternatives if risky):
Low - these are the only entry points to the awesomescreen and we're disabling/enabling two buttons that are drawn over at either point - it's hard to mess up, though something can always be overlooked.
String or IDL/UUID changes made by this patch: None
Attachment #8421372 -
Flags: approval-mozilla-aurora?
Comment 13•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
Updated•11 years ago
|
Updated•11 years ago
|
Attachment #8421372 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•11 years ago
|
||
status-firefox32:
--- → fixed
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•