Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ protected void onCreate(Bundle savedInstanceState) {

WebSettings settings = web.getSettings();
settings.setJavaScriptEnabled(true);
settings.setAllowFileAccess(true);
// The WebView is used to browse the web for downloadable links and
// hand them off to aria2. shouldInterceptRequest below routes every
// request through an OkHttpClient that only handles http and https
// (HttpUrl.parse returns null for file:// URIs and the request is
// dropped). file:// inputs are not a supported use case here, so
// there is no reason to leave the default file-access surface on.
settings.setAllowFileAccess(false);
settings.setDomStorageEnabled(true);
settings.setDatabaseEnabled(true);

Expand Down