Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d9c4afc authored by Abhijith Nair's avatar Abhijith Nair
Browse files

Disallow WV APIs being used from different threads

Currently we throw an exception if WebView APIs are
used from different threads if the target SDK version
of the app is >= JBMR2 unless the app uses reflection
to alter the value of the sEnforceThreadChecking variable.

Given that Android ToT doesn't allow apps to target
<JMBR2, the only way apps can get around this restriction
is through reflection.

This CL adds a flag to always enforce thread checking.
Bug: 440569275
Test: Existing presubmit tests
Flag: android.webkit.always_enforce_thread_checking

Change-Id: I7dc83c640829a664d68521904a0cc17c3a6536f5
parent f96b7617
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment