Skip to content

feat(electron): enable webviewTag on mainWindow for advanced extension support#67

Merged
eedali merged 1 commit into
Kobar-Project:masterfrom
arindam-sahoo:feat/enable-webview-support
Jun 3, 2026
Merged

feat(electron): enable webviewTag on mainWindow for advanced extension support#67
eedali merged 1 commit into
Kobar-Project:masterfrom
arindam-sahoo:feat/enable-webview-support

Conversation

@arindam-sahoo

@arindam-sahoo arindam-sahoo commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Description
This PR updates the webPreferences configuration of the mainWindow in Electron to explicitly enable webviewTag: true.

Enabling the <webview> tag allows extensions (like the new Phone Browser) to render external content in a sandboxed, isolated environment that acts as a fully featured native browser.

Changes Made

  • electron/main.cts: Added webviewTag: true to the mainWindow initialization options.

Testing Done

  • Verified that KoBar still boots up correctly.
  • Verified that extensions utilizing <webview> (like the Phone Browser) can successfully load external websites and perform full navigation without triggering CSP or iframe rejections.

Fixes #66

Type of Change

Please check the options that are relevant:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • UI/UX improvement (visual changes or enhancements)
  • Documentation update

Checklist

Please check all the boxes before submitting your PR:

  • I have tested my code locally and it works flawlessly.
  • I am strictly sure that my changes DO NOT break KoBar's "Ghost Window" (transparent window) and click-through logic.
  • I have added necessary descriptions and comments to my code.
  • My code does not generate any new warnings or errors in the console.

This commit enables the `webviewTag` option in the `webPreferences` for the main Electron window.

Enabling `webviewTag` allows the application to use the `<webview>` tag in the renderer process. This is essential for securely embedding external web content, providing isolated browsing contexts within the application.
@arindam-sahoo arindam-sahoo changed the title feat: Enable webviewTag in Electron main window feat(electron): enable webviewTag on mainWindow for advanced extension support Jun 3, 2026
@arindam-sahoo arindam-sahoo self-assigned this Jun 3, 2026
@arindam-sahoo arindam-sahoo marked this pull request as ready for review June 3, 2026 11:04
@arindam-sahoo arindam-sahoo requested a review from eedali June 3, 2026 11:04
@eedali eedali merged commit 1cd93a5 into Kobar-Project:master Jun 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Enable <webview> tag support in mainWindow for advanced extensions

2 participants