Project

General

Profile

Actions

Bug #468

closed

Create a check when attempting to open a URL with a browser

Added by Soren Stoutner almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Next Release
Start date:
06/21/2019
Due date:
% Done:

0%

Estimated time:

Description

Some non-standard URLs can cause the system to crash.

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEX39/f4+Pj5+fn8/PyoqKjZ2dn09PTm5uYyMjLx8fHp6ene3t5HR0fFxcU5OTm1tbWTk5O+vr6tra10dHR+fn4/Pz+EhISfn5+MjIxlZWVvb29PT08dHR27u7taWlrV1dV/GLK5AAAAm0lEQVQYlX2PNxLDMAwEAYgkGCRGZSv8/5emQmtvcYPZQbMACJV7foBUQUIEgnoBWFlhyZatYukUyLb0QzdOcxwh+VkBLSVot88rz4q1aKCJn33bhdBdeEXycRuFOfxJtyCn12MI6NoF7CXAtEfczuQ6L8IlkNaSWpMDf4biQ/2gnF3E3E+T6Fe+GoxRBoxlpaR5mp68uoR/K1++K/4HpOjKAZoAAAAASUVORK5CYII= typ=text/html flg=0x10000000 }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2030)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1685)
at android.app.Activity.startActivityForResult(Activity.java:4482)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:767)
at android.app.Activity.startActivityForResult(Activity.java:4440)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:754)
at android.app.Activity.startActivity(Activity.java:4805)
at android.app.Activity.startActivity(Activity.java:4773)
at com.stoutner.privacybrowser.activities.MainWebViewActivity.openWithBrowser(MainWebViewActivity.java:4043)

Actions #1

Updated by Soren Stoutner almost 5 years ago

  • Tracker changed from Feature to Bug
Actions #2

Updated by Soren Stoutner almost 5 years ago

This problem can be replicated by performing a search on Google with JavaScript enabled and the user agent set to WebView Default. Links are presented to the user as `data:image/png` URLs that match the favorite icon for the target URL. If the user selects `Open with Browser` from the context menu Privacy Browser will crash.

Actions #3

Updated by Soren Stoutner almost 5 years ago

  • Description updated (diff)
Actions #4

Updated by Soren Stoutner almost 5 years ago

  • Status changed from New to Closed

Fixed in commit: https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=76eb19024380afb90929e5ef72c650cc18f99c07.

This commit also reworks the WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE to pull the link URL instead the data:image URL.

Actions

Also available in: Atom PDF