Skip to content

Commit 42a4865

Browse files
committed
cleanup
1 parent cfa56a7 commit 42a4865

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

  • src/plugins/browser/android/com/foxdebug/browser

src/plugins/browser/android/com/foxdebug/browser/Browser.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -211,22 +211,10 @@ public void onDownloadStart(String url, String userAgent,
211211
settings.setDomStorageEnabled(true);
212212
settings.setAllowContentAccess(true);
213213
settings.setDisplayZoomControls(false);
214-
settings.setDomStorageEnabled(true);
215-
216-
// Enable media streaming (camera/microphone)
217-
settings.setMediaPlaybackRequiresUserGesture(false);
218-
settings.setJavaScriptCanOpenWindowsAutomatically(true);
219-
220-
// Allow mixed content (needed for some camera APIs on HTTPS sites)
221-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
222-
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
223-
}
224-
225-
// Additional settings for file access and databases
226214
settings.setAllowFileAccess(true);
227215
settings.setDatabaseEnabled(true);
228216

229-
// Enable hardware acceleration for video rendering
217+
// Enable hardware acceleration for better performance
230218
webView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
231219

232220
// Add clipboard bridge for JavaScript access

0 commit comments

Comments
 (0)