Describe the bug
The bug was reported in the Slack channel:
I just noticed that the JavaScriptInterface method getCurrentPosition inhence the UI related method View.getGlobalVisibleRect is called in JavaBridge thread, which is a background thread. And this causes a lot of native crashes in our app.
Describe the bug The bug was reported in the Slack channel:
I just noticed that the JavaScriptInterface method getCurrentPosition inhence the UI related method View.getGlobalVisibleRect is called in JavaBridge thread, which is a background thread. And this causes a lot of native crashes in our app.
https://github.com/prebid/prebid-mobile-android/blob/master/PrebidMobile/PrebidMobile-core/src/main/java/org/prebid/mobile/rendering/views/webview/mraid/BaseJSInterface.java#L175
To Reproduce
No steps. Prod crash.
Expected behavior
No crash.
Screenshots
Smartphone (please complete the following information):