Android 17 MessageQueue behavior change could break assumptions in native code
Categories
(GeckoView :: General, task)
Tracking
(firefox151 fixed)
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: mcarare, Assigned: m_kato)
References
Details
(Whiteboard: [fxdroid][group6] )
Attachments
(1 external file)
See investigation results for MessageQueue behaviour changes: https://bugzilla.mozilla.org/show_bug.cgi?id=2018171#c3. The conclusions need to be validated and code might need changes in other files besides the mentioned AndroidBridge.cpp file.
Extra technical docs: https://android-developers.googleblog.com/2026/02/under-hood-android-17s-lock-free.html
https://developer.android.com/about/versions/17/changes/messagequeue
| Assignee | ||
Comment 1•8 months ago
|
||
mMessages is deprecated. MessageQueue.isIdle() on legacy message queue checks whether mMessages is empty and next message needs to call pool. I guess that we can replace mMessages with isIdle() call.
| Assignee | ||
Comment 2•8 months ago
|
||
Actually, we use mMessage private field of MessageQueue object
whether message queue on Gecko thread is idle or not. Next Android
will be that mMessage is always null according to Android 17
changes [*].
Android 6 or later has idle method, so we should use it instead.
Updated•8 months ago
|
| Reporter | ||
Updated•7 months ago
|
Updated•7 months ago
|
Description
•