Commit 113f6da7 authored by Anna Malova's avatar Anna Malova Committed by Commit Bot

[aw] Fix exception handling in scrollContainerViewTo.

Change-Id: Ic3a97e5da2203d52d20de5f0a72f28675c2c8333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398543Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Anna Malova <amalova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814176}
parent 22cafa33
...@@ -732,7 +732,14 @@ public class AwContents implements SmartClipProvider { ...@@ -732,7 +732,14 @@ public class AwContents implements SmartClipProvider {
@Override @Override
public void scrollContainerViewTo(int x, int y) { public void scrollContainerViewTo(int x, int y) {
mInternalAccessAdapter.super_scrollTo(x, y); try {
mInternalAccessAdapter.super_scrollTo(x, y);
} catch (Throwable e) {
AwThreadUtils.postToCurrentLooper(() -> {
Log.e(TAG, "The following exception was raised by scrollContainerViewTo:");
throw e;
});
}
} }
@Override @Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment