Skip to content

Only call WebViewModel.handleNavigate for main frame navigations#1488

Merged
esimkowitz merged 1 commit into
mainfrom
evan/fix-iframe-navigate-webvie
Dec 11, 2024
Merged

Only call WebViewModel.handleNavigate for main frame navigations#1488
esimkowitz merged 1 commit into
mainfrom
evan/fix-iframe-navigate-webvie

Conversation

@esimkowitz
Copy link
Copy Markdown
Contributor

@esimkowitz esimkowitz commented Dec 11, 2024

Navigation events are issued not just for main page navigations, but also for iframes, among other things. With our old behavior, if an iframe tries to load in a webpage, we would update the webview url and make the iframe the primary page, which is wrong. Now, we only do this for main frame navigations.

closes #1487

@esimkowitz esimkowitz merged commit 6684a5c into main Dec 11, 2024
@esimkowitz esimkowitz deleted the evan/fix-iframe-navigate-webvie branch December 11, 2024 18:33
xxyy2024 pushed a commit to xxyy2024/waveterm_aipy that referenced this pull request Jun 24, 2025
…avetermdev#1488)

Navigation events are issued not just for main page navigations, but
also for iframes, among other things. With our old behavior, if an
iframe tries to load in a webpage, we would update the webview url and
make the iframe the primary page, which is wrong. Now, we only do this
for main frame navigations.

closes wavetermdev#1487
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.

[Bug]: Giscus Script in Waveterm Causes Page Redirect Instead of Loading iFrame

1 participant