Skip to content

feat: improved webview - #2924

Merged
RohitKushvaha01 merged 5 commits into
Acode-Foundation:mainfrom
RohitKushvaha01:improved_webview
Oct 26, 2026
Merged

RohitKushvaha01 merged 5 commits into
Acode-Foundation:mainfrom
RohitKushvaha01:improved_webview

Conversation

@RohitKushvaha01

Copy link
Copy Markdown
Member

Closes #2772

@greptile-apps

greptile-apps Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge, with no outstanding findings.

Summary

The PR expands the WebView API with profiles, runtime settings, navigation helpers, and more events.

  • Callers can configure WebViews and control their pages through one API.
  • WebViews can use named profiles or request isolated incognito data.
  • WebView instances report page changes and keep current state for callers.
  • Fullscreen WebViews can show video and other custom page views.

Reviews (4) · Last reviewed commit: "fix" · Reviewed by Greptile

Comment thread src/plugins/webview/src/android/com/foxdebug/webview/WebViewInstance.java Outdated
Comment thread src/plugins/webview/src/android/com/foxdebug/webview/ProfileManager.java Outdated
@greptile-apps

This comment has been minimized.

@RohitKushvaha01

Copy link
Copy Markdown
Member Author

@greptile

@RohitKushvaha01 RohitKushvaha01 moved this from Backlog to In progress in The Code Board - Acode Sep 22, 2026
…vents

Rework the Acode WebView API end to end.

- Incognito mode backed by AndroidX WebKit multi-profile isolation, with
  reference-counted profiles, automatic cleanup and a documented best-effort
  fallback when the provider lacks multi-profile support.
- Configurable user agent (explicit string or desktop/mobile presets) and a
  broad set of WebSettings, applied at creation and at runtime on the UI
  thread.
- Expanded event stream (page lifecycle, progress, navigation, errors,
  console, dialogs, permissions, fullscreen, downloads, scroll) plus
  navigation/settings helpers, capability probes and registry utilities.
- Split the native plugin into WebViewPlugin/WebViewInstance/WebViewOptions/
  ProfileManager and the JS into a thin bridge plus a public AcodeWebView API.
- Harden profile names (reject non-canonical or reserved names instead of
  rewriting them) and use the originating profile's cookie jar for downloads.
@RohitKushvaha01
RohitKushvaha01 marked this pull request as ready for review October 26, 2026 08:50
@RohitKushvaha01

Copy link
Copy Markdown
Member Author

@greptile

Comment thread src/plugins/webview/src/android/com/foxdebug/webview/WebViewInstance.java Outdated
Comment thread src/lib/webview.js
Comment thread src/plugins/webview/src/android/com/foxdebug/webview/WebViewOptions.java Outdated
@RohitKushvaha01

Copy link
Copy Markdown
Member Author

@greptile

@RohitKushvaha01
RohitKushvaha01 added this pull request to the merge queue Oct 26, 2026
Merged via the queue into Acode-Foundation:main with commit 143fa8d Oct 26, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in The Code Board - Acode Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improve Webview API

1 participant