sTreatMouseAsTouch needs to be initialized lazily
Categories
(GeckoView :: General, defect)
Tracking
(firefox88 unaffected, firefox89 unaffected, firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox88 | --- | unaffected |
firefox89 | --- | unaffected |
firefox90 | --- | fixed |
People
(Reporter: agi, Assigned: agi)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
We call initMouseAsTouch
when creating GeckoSession, normally this happens after a GeckoRuntime has been created so GeckoAppShell.getApplicationContext()
will return a non-null value, but if the GeckoSession is created before then, that method will return null causing a NullPointerException (a AC unit test does that).
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
We call initMouseAsTouch when creating GeckoSession, normally this happens
after a GeckoRuntime has been created, so GeckoAppShell.getApplicationContext()
will return a non-null value.
If the GeckoSession is created before then, however, that method will return
null causing a NullPointerException (a AC unit test does that).
We fix this problem by initializing sTreatMouseAsTouch lazily, and not assuming
that the Context is present.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•