Skip to content

Commit ac6e50a

Browse files
committed
Catch badly formed URLs in WebView accessibility injector.
Bug: 7206684 Change-Id: I13e8f29043314430ea3fcfa8ab59040136d06e57
1 parent 983faee commit ac6e50a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/java/android/webkit/AccessibilityInjector.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ private int getAxsUrlParameterValue(String url) {
514514
}
515515
} catch (URISyntaxException e) {
516516
// Do nothing.
517+
} catch (IllegalArgumentException e) {
518+
// Catch badly-formed URLs.
517519
}
518520

519521
return ACCESSIBILITY_SCRIPT_INJECTION_UNDEFINED;

0 commit comments

Comments
 (0)