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:
Grace Kloba
2009-09-24 14:14:11 -07:00
committed by android-build SharedAccount
parent 8c2623e997
commit bf54f02b59
2 changed files with 20 additions and 18 deletions

View File

@@ -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];
}
/**