Fix missing webview provider crash on Android#32165
Fix missing webview provider crash on Android#32165RodolfoGS wants to merge 1 commit intofacebook:mainfrom
Conversation
|
Hi @RodolfoGS! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Base commit: a950634 |
Base commit: a950634 |
|
@sota000 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary
I applied the changes requested in this PR: #29089
We upgraded to RN 0.62.2 on our latest release and started to see again the "Failed to load WebView provider: No WebView installed" (see below for Crashlytics screenshot)
This crash had been fixed by #24533 but #26189 (added in 0.62) reverted the fix
Indeed the exception raised in Crashlytics is actually a
AndroidRuntimeExceptionandMissingWebViewPackageExceptionis only part of the message.For instance, in the screenshot above, the exception message is
android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installedNow these crashes are quite tricky to reproduce, so to be on the safe side, I'm filtering out all exceptions containing
WebViewas suggested by @thorbenprimke on the original fix.If my reasoning is correct, it should fix @siddhantsoni 's issue as well, since
WebViewis included inMissingWebViewPackageExceptionBut following that reasoning, I am not sure #26189 fixed @siddhantsoni 's issue, so @siddhantsoni if you could check that this PR also fixes your issue, that would be great!
Changelog
[Android] [Fixed] - Fix missing WebView provider crash in ForwardingCookieHandler
Test Plan
I created a version of react native with this patch applied
Before the fix ~0.1% of our users were impacted on Android, no new crashes have occurred after the update.
This is putting back what was already in place and working for us, but making the check wider to catch more errors.