Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e7e1d86
refactor(tauri): share embedded native view lifecycle
pascalandr Nov 5, 2026
734314d
feat(tauri): prepare isolated WebKit child views
pascalandr Nov 5, 2026
e1601cb
fix(tauri): import native WebKitGTK permission traits
pascalandr Nov 5, 2026
1f86356
ci(tauri): qualify WebKit hosts on draft pull requests
pascalandr Nov 5, 2026
3b8be7a
fix(ci): pass the macOS binary before lipo verification flags
pascalandr Nov 5, 2026
07fe7ce
feat(tauri): add native WebKit preview history
pascalandr Nov 7, 2026
ceb7823
docs(browser): describe native Tauri WebKit previews
pascalandr Nov 5, 2026
8da53a9
fix(tauri): retain hidden GTK child bounds before reveal
pascalandr Nov 7, 2026
8dd7fc5
feat(browser): separate native embedding from WebKit automation
pascalandr Nov 7, 2026
2c08325
test(ci): normalize workflow line endings for CRLF checkouts
pascalandr Nov 7, 2026
d62eab6
merge: integrate dev and requalify WebKit patches on Tauri 2.12
pascalandr Nov 7, 2026
f12470d
test(tauri): qualify GTK children on Plasma Wayland and X11
pascalandr Nov 7, 2026
13adb2f
fix(tauri): preserve WebKit browser refusal without native transport
pascalandr Nov 7, 2026
fd137e9
fix(automation): prefer an available native parent over host hints
pascalandr Nov 7, 2026
a79effc
test(tauri): qualify targeted WebKit native input primitives
pascalandr Nov 7, 2026
3266bac
test(tauri): fence native qualification and record each acceptance check
pascalandr Nov 7, 2026
48e5226
fix(tauri): scope synthetic AppKit button state to native guest dispatch
pascalandr Nov 7, 2026
1b2ea60
test(tauri): qualify modifier release and primed WebKit hover
pascalandr Nov 7, 2026
2407ffc
fix(tauri): prevent duplicate native Enter edits and qualify macOS li…
pascalandr Nov 7, 2026
42062e2
feat(tauri): add fenced Unix native-parent browser transport
pascalandr Nov 7, 2026
082a185
feat(tauri): enable WebKit preview popups downloads and dialogs
pascalandr Nov 7, 2026
f167eb0
fix(tauri): qualify WebKit parent-channel lifetimes and navigation re…
pascalandr Nov 7, 2026
6acb298
refactor(automation): introduce a versioned semantic page driver
pascalandr Nov 7, 2026
9e2e386
feat(browser): add isolated WebKit semantic page reads
pascalandr Nov 7, 2026
0c86980
fix(browser): retain WebKit worlds and qualify semantic refs
pascalandr Nov 7, 2026
3af2a80
feat(browser): implement WebKit actions and captured closed roots
pascalandr Nov 7, 2026
bfc72eb
feat(preview): align native windows downloads and consent policies
pascalandr Nov 7, 2026
1850873
fix(browser): isolate preview prompts and complete native WebKit dialogs
pascalandr Nov 7, 2026
8ab5208
fix(browser): qualify native WebKit closed-root action flows
pascalandr Nov 7, 2026
029705d
test(browser): add native mobile profile qualification probes
pascalandr Nov 7, 2026
706bb3f
fix(browser): preserve pointer focus and popup unload decisions
pascalandr Nov 8, 2026
02b5ceb
feat(browser): apply native WebKit device profiles
pascalandr Nov 8, 2026
d58022b
fix(browser): fence preview lifetimes and sandboxed frame prompts
pascalandr Nov 8, 2026
ef69b40
merge: integrate WebKit automation and mobile profiles
pascalandr Nov 8, 2026
e0d56d4
merge: integrate native preview capabilities and lifetime guards
pascalandr Nov 8, 2026
3c68ab5
feat(browser): activate native WebKit agent automation
pascalandr Nov 8, 2026
4d6b010
test(browser): qualify real agent calls in isolated desktop apps
pascalandr Nov 8, 2026
ecf5751
fix(browser): preserve Cocoa wheel coordinates in app windows
pascalandr Nov 8, 2026
27bb8e9
test(browser): isolate built UI and qualify draft Windows builds
pascalandr Nov 8, 2026
2dab644
test(browser): wire merged native example dependencies
pascalandr Nov 8, 2026
c86eb71
test(browser): link native trial adapters only for qualification
pascalandr Nov 8, 2026
6190523
fix(browser): target native WebKit guest zoom and image downloads
pascalandr Nov 8, 2026
4f6f0ee
fix(browser): close popups natively and recover blank previews
pascalandr Nov 8, 2026
6a878a9
fix(automation): match composed text and shadow host hits
pascalandr Nov 8, 2026
1770e79
test(automation): exercise WebKit appear and gone polling
pascalandr Nov 8, 2026
b63ee58
fix(automation): preserve inline text and frame hit ancestry
pascalandr Nov 8, 2026
4305ab6
test(automation): cover disabled composed ancestors
pascalandr Nov 8, 2026
75d0071
fix(browser): map transformed WebKit frame coordinates exactly
pascalandr Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Vendored-crate patches apply to the published LF crates; keep them byte-exact on every checkout.
packages/tauri-app/vendor/patches/*.patch -text
packages/tauri-app/tests/webkit-capabilities/*.sh text eol=lf
29 changes: 29 additions & 0 deletions .github/scripts/tauri-webkit-workflow.test.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const assert = require('node:assert/strict')
const fs = require('node:fs')
const path = require('node:path')
const { test } = require('node:test')

test('Windows native qualification also runs authorized drafts without signing secrets', () => {
const workflow = fs.readFileSync(path.join(__dirname, '../workflows/pr-build.yml'), 'utf8').replace(/\r\n/g, '\n')
const job = workflow.split(' tests-tauri-windows:\n')[1].split('\n tests-')[0]
assert.match(job, /needs: authorize/)
assert.match(job, /if: \$\{\{ needs\.authorize\.outputs\.allowed == 'true' \}\}/)
assert.doesNotMatch(job, /pull_request\.draft|secrets\.|secrets:|actions: write/)
assert.match(job, /cargo test --locked -- --test-threads=1/)
})

test('WebKit qualification runs authorized drafts on Intel, ARM64 and Linux without secrets', () => {
const workflow = fs.readFileSync(path.join(__dirname, '../workflows/pr-build.yml'), 'utf8').replace(/\r\n/g, '\n')
const job = workflow.split(' tests-tauri-webkit:\n')[1].split('\n # Exercise the window persistence')[0]
assert.match(job, /needs: authorize/)
assert.match(job, /if: \$\{\{ needs\.authorize\.outputs\.allowed == 'true' \}\}/)
assert.doesNotMatch(job, /pull_request\.draft|secrets\.|secrets:|actions: write/)
for (const runner of ['macos-15-intel', 'macos-26', 'ubuntu-24.04']) assert.ok(job.includes(`os: ${runner}`))
for (const command of ['cargo check --locked', 'cargo clippy --locked', 'cargo test --locked', 'tauri build --no-bundle', 'tauri bundle --bundles app ', 'tauri bundle --bundles appimage']) assert.ok(job.includes(command), command)
assert.ok(job.includes('cargo build --locked --example browser-parent-webkit --features browser-parent-qualification'))
assert.match(job, /Print :LSMinimumSystemVersion/)
assert.match(job, /test "\$minimum" = '14\.0'/)
assert.ok(job.includes('lipo "${apps[0]}/Contents/MacOS/$executable" -verify_arch "$EXPECTED_ARCH"'))
assert.match(job, /path: .*\/appimage\/\*\.AppImage/)
assert.match(job, /persist-credentials: false/)
})
100 changes: 99 additions & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
- tests-session-pruning-native
- tests-runtime-contracts
- tests-tauri-macos
- tests-tauri-webkit
if: ${{ needs.authorize.outputs.allowed == 'true' && !github.event.pull_request.draft }}
uses: ./.github/workflows/build-and-upload.yml
with:
Expand Down Expand Up @@ -628,7 +629,7 @@ jobs:

tests-tauri-windows:
needs: authorize
if: ${{ needs.authorize.outputs.allowed == 'true' && !github.event.pull_request.draft }}
if: ${{ needs.authorize.outputs.allowed == 'true' }}
runs-on: windows-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -782,6 +783,103 @@ jobs:
if ($LASTEXITCODE) { exit $LASTEXITCODE }
}

# Native WebKit qualification also runs on drafts, without signing credentials.
tests-tauri-webkit:
needs: authorize
if: ${{ needs.authorize.outputs.allowed == 'true' }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- os: macos-15-intel
arch: x86_64
- os: macos-26
arch: arm64
- os: ubuntu-24.04
arch: x86_64
runs-on: ${{ matrix.os }}
timeout-minutes: 90
env:
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
CARGO_PROFILE_TEST_DEBUG: "0"
steps:
- uses: actions/checkout@v7.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: actions/setup-node@v7.1.0
with:
node-version-file: .node-version
cache: npm
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Linux WebKit dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config zsh libgtk-3-dev \
libglib2.0-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev \
libayatana-appindicator3-dev librsvg2-dev
- run: npm ci --workspaces --include=optional
- name: Test WebKit qualification workflow contract
run: node --test .github/scripts/tauri-webkit-workflow.test.cjs
- name: Prepare packaged server and browser resources
run: npm run prebuild --workspace @codenomad/tauri-app
- name: Check Tauri crate
working-directory: packages/tauri-app
run: cargo check --locked
- name: Clippy Tauri crate
working-directory: packages/tauri-app
run: cargo clippy --locked --no-deps
- name: Build native parent qualification example
working-directory: packages/tauri-app
run: cargo build --locked --example browser-parent-webkit --features browser-parent-qualification
- name: Test Tauri crate
working-directory: packages/tauri-app
run: CODENOMAD_TEST_ZSH=/bin/zsh CODENOMAD_TEST_NODE="$(command -v node)" cargo test --locked -- --test-threads=4
- name: Build Tauri without bundling
working-directory: packages/tauri-app
run: npm exec -- tauri build --no-bundle --config src-tauri/tauri.prebuilt.conf.json
- name: Bundle unsigned macOS app
if: runner.os == 'macOS'
working-directory: packages/tauri-app
run: npm exec -- tauri bundle --bundles app --config src-tauri/tauri.prebuilt.conf.json
- name: Verify macOS minimum and architecture
if: runner.os == 'macOS'
env:
EXPECTED_ARCH: ${{ matrix.arch }}
run: |
set -euo pipefail
shopt -s nullglob
apps=(packages/tauri-app/target/release/bundle/macos/*.app)
test "${#apps[@]}" -eq 1
plist="${apps[0]}/Contents/Info.plist"
minimum=$(/usr/libexec/PlistBuddy -c 'Print :LSMinimumSystemVersion' "$plist")
test "$minimum" = '14.0'
executable=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "$plist")
lipo "${apps[0]}/Contents/MacOS/$executable" -verify_arch "$EXPECTED_ARCH"
echo "Verified $EXPECTED_ARCH bundle: LSMinimumSystemVersion=$minimum" >> "$GITHUB_STEP_SUMMARY"
- name: Bundle unsigned Linux AppImage
if: runner.os == 'Linux'
working-directory: packages/tauri-app
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
# Keep the WSLg/system display and GPU stack, as in release packaging.
LINUXDEPLOY_EXCLUDED_LIBRARIES: libwayland-*;libxkbcommon*;libxcb*;libX11*;libXau*;libXdmcp*;libEGL*;libGL*;libgbm*;libdrm*
run: npm exec -- tauri bundle --bundles appimage --verbose --config src-tauri/tauri.prebuilt.conf.json
- name: Upload Linux AppImage for WSLg trials
if: runner.os == 'Linux'
uses: actions/upload-artifact@v7.0.2
with:
name: pr-${{ github.event.pull_request.number }}-tauri-webkit-linux-x64
path: packages/tauri-app/target/release/bundle/appimage/*.AppImage
if-no-files-found: error
retention-days: 7

# Exercise the window persistence regressions on the architecture reported in
# #676, independently of the Linux server gate. Packaging alone cannot test them.
tests-tauri-macos:
Expand Down
9 changes: 5 additions & 4 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ then rebuild and smoke-test the packaged applications on Windows, macOS, and
Linux. Check the upstream platform requirements before changing a pin or the
Electron version: Tauri's bundled Node 24 requires macOS 13.5 or later, and
the pinned Electron (`packages/electron-app/package.json`) requires macOS 13
or later and Windows 10 or later. Both macOS bundles declare 13.5 so the two
desktop builds share one minimum; keep them aligned. Keep the versions exact
or later and Windows 10 or later. Electron declares macOS 13.5; Tauri declares macOS 14 for identified
WKWebView preview stores. Keep the versions exact
rather than resolving `latest` or `lts/*` at build time so release inputs remain
reproducible.

Expand Down Expand Up @@ -142,8 +142,9 @@ Electron names deb architectures the Debian way (`amd64`) and Tauri keeps its na

### macOS

- **Build on:** macOS 13.5+ with the required Xcode tools (CI uses macOS 15)
- **Run on:** macOS 13.5+ (Intel and Apple Silicon; required by Tauri's bundled Node 24, shared by Electron)
- **Build on:** macOS 13.5+ for Electron, macOS 14+ for Tauri, with the required Xcode tools (CI uses macOS 15)
- **Run on:** Electron macOS 13.5+; Tauri macOS 14+ (Intel and Apple Silicon)
- **Tauri bundles:** keep `minimumSystemVersion` and `LSMinimumSystemVersion` at 14.0 for both architectures; scope any `MACOSX_DEPLOYMENT_TARGET=14.0` override to Tauri build steps.
- **Code signing:** Optional (recommended for distribution)

### Windows
Expand Down
Loading
Loading