Not all WebView's host have permission to read the history.
Add a security catch and return an empty list. We don't use tab in the code. Fix http://b/viewIssue?id=2144339
This commit is contained in:
committed by
android-build SharedAccount
parent
8c2623e997
commit
bf54f02b59
@@ -312,7 +312,9 @@ final class WebViewCore {
|
||||
}
|
||||
|
||||
protected String[] populateVisitedLinks() {
|
||||
return Browser.getVisitedHistory(mContext.getContentResolver());
|
||||
// FIXME: getVisitedHistory needs permission and host may not have.
|
||||
// return Browser.getVisitedHistory(mContext.getContentResolver());
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user