Add manual sytem insets handling
Categories
(Firefox for Android :: General, enhancement)
Tracking
()
People
(Reporter: petru, Assigned: petru)
References
(Depends on 1 open bug)
Details
(Whiteboard: [fxdroid][group3])
Attachments
(5 files, 4 obsolete files)
To support Android 15's edge to edge functionality - bug 1916695
And to improve layout animations when the software keyboard is being shown or hidden - bug 1911042
We should handle ourselves applying and reacting to system and ime insets.
This was initially done in bug 1911042 but later backed out in bug 1933488 after problems were reported in displaying websites.
After the patches from bug 1937785 I think the issues with empty - non-rendered space after opening the keyboard do not reproduce anymore so we should land back the patches from bug 1911042.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
To get more confidence in landing this work again I ask for support in testing the scenarios from bug 1933488 and bug 1933227 on Android 10+, including on the Oppo device from bug 1933488 comment 15 on the builds from this try (using probably the target.arm64-v8a.apk artifact).
Comment 2•1 year ago
|
||
I've tested the scenarios mentioned in the tickets from the previous comment using the debug build provided, and all seems in good order: none of the previous issue could be reproduced and no other issues were observed at this point. Tested with OPPO A15s (Android 10), Samsung Galaxy Note 8 (Android 12) and Lenovo Yoga Tab 11 (Android 12).
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
We are now handling edge to edge ourselves.
| Assignee | ||
Comment 6•1 year ago
|
||
This is a workaround for the issue from
https://github.com/material-components/material-components-android/issues/3446
which can be avoided if the parent of the snackbar does not provide MarginLayoutParams.
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 8•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3355377fb4b1
https://hg.mozilla.org/mozilla-central/rev/ac46b0f1f7d3
https://hg.mozilla.org/mozilla-central/rev/83ed17be8e13
| Assignee | ||
Comment 9•1 year ago
|
||
@QA Please help validate that this
- fixes the issue from bug 1911042 (the bottom toolbars follow the show/hide keyboard animations and do not jump to the final position)
- does not cause issues with snackbar placements - like seen previously in bug 1932904
- does not cause issues in web rendering after the keyboard opens - like seen previously in bug 1933488
This should be verified on Android 10 devices, including a OPPO A15s with Android 10 device which previously shown issues.
| Assignee | ||
Comment 10•1 year ago
|
||
Will ask to backout this as it enables bug 1934443 comment 11 to be reproducing.
| Assignee | ||
Updated•1 year ago
|
Comment 11•1 year ago
|
||
Backed out as requested by plingurar for enabling rendering issues, pending more investigation.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 13•1 year ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/5e54a7b06c8b
| Assignee | ||
Comment 14•1 year ago
|
||
| Assignee | ||
Comment 15•1 year ago
|
||
We are now handling edge to edge ourselves.
| Assignee | ||
Comment 16•1 year ago
|
||
This is a workaround for the issue from
https://github.com/material-components/material-components-android/issues/3446
which can be avoided if the parent of the snackbar does not provide MarginLayoutParams.
Updated•1 year ago
|
| Assignee | ||
Comment 17•1 year ago
|
||
Using these APIs on lower versions of Android on devices from some
manufacturers was shown to lead to bugs in the application from the
inconsistencies of the insets framework of those devices.
Comment 18•1 year ago
|
||
Comment 19•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/76453fe8bc1a
https://hg.mozilla.org/mozilla-central/rev/50ed43521a03
https://hg.mozilla.org/mozilla-central/rev/682db1ec8722
https://hg.mozilla.org/mozilla-central/rev/1772f74a856d
| Assignee | ||
Comment 20•1 year ago
|
||
@QA Please help validate that this
- fixes the issue from bug 1911042 (the bottom toolbars follow the show/hide keyboard animations and do not jump to the final position) on Android 13+.
- does not cause issues with snackbar placements - like seen previously in bug 1932904
- does not cause issues in web rendering after the keyboard opens - like seen previously in bug 1933488
This should be verified on devices with different versions of Android (below and after Android 13) and different form factors.
Comment 21•1 year ago
|
||
Verified as fixed in latest Nightly 138.0a1 from 03/21. All 3 scenarios were tested with different pages (web searches, filling forms, using "find in page" on webpages and pdfs) and no issues were observed.
There are no black spaces above/under the toolbar/nav bar and all snackbars displayed throughout the application appear in the correct position.
Tested with the following devices: Google Pixel 8 Pro (Android 15), Nothing Phone (2a) 5G (Android 14), Motorola Moto G30 (Android 12), OPPO A15s (Android 10).
Comment 22•1 year ago
|
||
Those changes probably caused https://bugzilla.mozilla.org/show_bug.cgi?id=1955723
Updated•1 year ago
|
Updated•11 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Description
•