Open toppermitz opened 4 months ago
Have you checked permissions? Since tauri v2, you must provide permissions via capabilities.
In the src-tauri/capabilities/xxx.json
:
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "application-capability",
"description": "Capability for the application",
"windows": ["*"],
"permissions": ["shell:allow-open"]
}
I double check the permissions .
if you check my demo project the permission is granted but inside an iframe nothing happen
Describe the bug
If I have a anchor with target="_blank" inside an iframe nothing happen when I click.
anchors outside iframe open in a normal way (new page on my default browser)
Reproduction
I make a small repo to reproce this bug
https://github.com/toppermitz/tauri-iframe-bug
Just click on link inside the iframe and nothing happen.
Expected behavior
When I click in an anchor inside an iframe, the anchor href must be loaded on my default browser.
Full
tauri info
outputStack trace
No response
Additional context
This problem occours in 1.6.7 and 2.0-beta version