Closed
Bug 1135796
Opened 10 years ago
Closed 10 years ago
ActivityUtils incorrectly divides API levels
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox37+ fixed, firefox38+ fixed, firefox39 fixed, fennec37+)
RESOLVED
FIXED
Firefox 39
People
(Reporter: mcomella, Assigned: mcomella, Mentored)
References
Details
Attachments
(1 file, 1 obsolete file)
We check (Versions.features11Plus), but then proceed to use flags introduced in 16 and 14.
https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/util/ActivityUtils.java
Updated•10 years ago
|
Blocks: splitapk
Mentor: rnewman
tracking-fennec: --- → ?
status-firefox37:
--- → ?
status-firefox38:
--- → affected
status-firefox39:
--- → affected
Updated•10 years ago
|
tracking-fennec: ? → 37+
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → michael.l.comella
Assignee | ||
Comment 1•10 years ago
|
||
/r/4375 - Bug 1135796 - Update ActivityUtils to use proper API levels. r=rnewman
Pull down this commit:
hg pull review -r aafbbb38566d3b6fe6cccf877c5462aaa1781cb2
Attachment #8570019 -
Flags: review?(rnewman)
Assignee | ||
Comment 2•10 years ago
|
||
Haven't tested on ICS to see if this regressed, but I'm not sure we have an ICS device around.
Maybe we hadn't seen this sooner because the 3.0.x-4.0.x has so few users and none of them bothered to go into full screen mode.
Updated•10 years ago
|
Status: NEW → ASSIGNED
Comment 3•10 years ago
|
||
Comment on attachment 8570019 [details]
MozReview Request: bz://1135796/mcomella
https://reviewboard.mozilla.org/r/4373/#review3575
Ship It!
::: mobile/android/base/util/ActivityUtils.java
(Diff revision 1)
> } else {
No need for else after return.
Attachment #8570019 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Found a device. NI self to test on it.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 5•10 years ago
|
||
Before this patch, the system status bar is not hidden but no crash; after this patch it is. Huzzah.
Doesn't seem like a super important uplift to beta, but who knows how it affects HC-ICS-.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8570019 [details]
MozReview Request: bz://1135796/mcomella
Will likely need a branch patch since I added ActivityUtils.isFullScreen. If the uplifter wants to handle this branch patch, just don't include the isFullScreen changes.
Approval Request Comment
[Feature/regressing bug #]: N/A
[User impact if declined]:
Users on HC - ICS devices will not have the system status bar hidden when they enter fullscreen mode. A polish issue.
May also crash by accessing an invalid field, but I can't repro locally.
[Describe test coverage new/current, TreeHerder]:
None
[Risks and why]:
Low, we're conforming to API levels and falling back to old features. We don't have devices to test all the API levels in between, however, so maybe something terrible will happen.
[String/UUID change made/needed]: None
Attachment #8570019 -
Flags: approval-mozilla-beta?
Attachment #8570019 -
Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/6ad61d16c331
https://hg.mozilla.org/mozilla-central/rev/176f46639237
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Updated•10 years ago
|
Attachment #8570019 -
Flags: approval-mozilla-beta?
Attachment #8570019 -
Flags: approval-mozilla-beta+
Attachment #8570019 -
Flags: approval-mozilla-aurora?
Attachment #8570019 -
Flags: approval-mozilla-aurora+
Updated•10 years ago
|
Comment 9•10 years ago
|
||
It's early in beta still so let's take this now and ensure it doesn't have a wider impact to user if we *didn't*.
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Michael, can you please provide some instructions on how to reproduce this issue, so we can test your fix.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 13•10 years ago
|
||
On HC-ICS devices, when other devices entered full screen mode, these devices remained in the normal viewing mode. To test this,
1) Go to a fullscreen page (e.g. people.mozilla.org/~atrain/mobile/tests/test.mp4)
2) Long-press the video and select fullscreen
Expected: System status bar dims
Actual: Status bar does not dim
After this patch, the expected happens. There was no crash because the Android fullscreen APIs use binary flags.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 14•9 years ago
|
||
Attachment #8570019 -
Attachment is obsolete: true
Attachment #8619563 -
Flags: review+
Assignee | ||
Comment 15•9 years ago
|
||
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
•