Closed Bug 1961452 Opened 8 months ago Closed 7 months ago

Don't call SessionAccessibility.NativeProvider.setAttached until native handle is set

Categories

(GeckoView :: General, defect)

Unspecified
Android
defect

Tracking

(firefox137 wontfix, firefox138 wontfix, firefox139 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
firefox137 --- wontfix
firefox138 --- wontfix
firefox139 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This issue is a possible crash case.

Actually SessionAccessibility.NativeProvider.setAttached is called in C++ constructor of SessionAccessibility. But native handle is set after calling the constructor. So when NativeProvider.setAttached is called, C++ side might not set native handle yet.

So we should not call setAttached in the constructor.

This issue is a possible crash case.

Actually SessionAccessibility.NativeProvider.setAttached is called in
C++ constructor of SessionAccessibility. But native handle is set
after calling the constructor. So when NativeProvider.setAttached is
called, C++ side might not set native handle yet.

So we should not call setAttached in the constructor.

Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/d04265df5fbe Don't call SetAttached until native handle is set. r=geckoview-reviewers,ohall
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch

The patch landed in nightly and beta is affected.
:m_kato, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(m_kato)
Flags: needinfo?(m_kato)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: