Skip to content

feat: add WebView support for extension#1359

Merged
monkeyWie merged 25 commits into
mainfrom
feat/webview
Apr 24, 2026
Merged

feat: add WebView support for extension#1359
monkeyWie merged 25 commits into
mainfrom
feat/webview

Conversation

@monkeyWie

Copy link
Copy Markdown
Member

No description provided.

@monkeyWie monkeyWie added the enhancement New feature or request label Apr 17, 2026
# Conflicts:
#	cmd/extmock/main.go
#	internal/protocol/gblob/README.md
#	internal/protocol/gblob/fetcher.go
#	internal/protocol/gblob/registry.go
#	pkg/download/downloader.go
#	pkg/download/engine/engine.go
#	pkg/download/engine/inject/stream/module.go
#	pkg/download/engine/inject/stream/stream.js
#	pkg/download/extension.go
#	pkg/download/extension_engine_session.go
#	pkg/download/extension_test.go
#	pkg/download/extmock.go
#	pkg/download/testdata/extensions/gblob/index.js
#	pkg/download/testdata/extensions/gblob_recover/index.js
- Renamed `Navigate` to `Goto` in the Page interface and its implementations for clarity.
- Introduced `Click` and `Type` methods in the Page interface for simulating user interactions.
- Added `Focus`, `Click`, and `Type` methods to the PageHandle struct with appropriate JavaScript execution logic.
- Updated tests to reflect the new method names and added tests for new interaction methods.
- Switched from `webview_flutter` to `flutter_inappwebview` for enhanced webview capabilities in the Flutter UI.
@codecov

codecov Bot commented Apr 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.33949% with 837 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.69%. Comparing base (a205c0b) to head (e694ab1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/download/engine/webview/runtime.go 68.35% 122 Missing and 34 partials ⚠️
pkg/download/extension_runtime_webview.go 26.55% 103 Missing and 27 partials ⚠️
internal/webview/goprovider/provider.go 69.27% 94 Missing and 24 partials ⚠️
pkg/download/engine/inject/stream/module.go 58.90% 94 Missing and 19 partials ⚠️
internal/webview/integrationtest/contract.go 55.55% 61 Missing and 51 partials ⚠️
internal/protocol/gblob/registry.go 62.87% 33 Missing and 16 partials ⚠️
internal/webview/rpcprovider/provider.go 60.17% 34 Missing and 11 partials ⚠️
pkg/download/engine/engine.go 63.52% 24 Missing and 7 partials ⚠️
internal/protocol/gblob/fetcher.go 66.66% 21 Missing and 4 partials ⚠️
pkg/download/extension_engine.go 58.13% 13 Missing and 5 partials ⚠️
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1359      +/-   ##
==========================================
- Coverage   69.45%   68.69%   -0.77%     
==========================================
  Files          54       60       +6     
  Lines        7272     9177    +1905     
==========================================
+ Hits         5051     6304    +1253     
- Misses       1723     2179     +456     
- Partials      498      694     +196     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@monkeyWie monkeyWie merged commit def54f8 into main Apr 24, 2026
23 of 25 checks passed
@monkeyWie monkeyWie deleted the feat/webview branch April 24, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant