Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with null VirtualView in HybridVewHandler on iOS #26928

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

michalpobuta
Copy link
Contributor

@michalpobuta michalpobuta commented Jan 2, 2025

Description of Change

Checking if Handler has container before using VirtualView which can crash app if is null

Issues Fixed

Fixes #26883

@rmarinho
Copy link
Member

rmarinho commented Jan 3, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@MartyIX
Copy link
Contributor

MartyIX commented Jan 7, 2025

Fixes #
https://github.com/dotnet/maui/issues/26883

The correct syntax to mark the issue #26833 as fixed by this PR is:

Fixes #26833

(Your link does not work)

@rmarinho
Copy link
Member

rmarinho commented Jan 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho
Copy link
Member

rmarinho commented Jan 7, 2025

Do we know whats the case that this is called without a VirtualView? can we add a test?

@michalpobuta
Copy link
Contributor Author

@mattleibow now should be good. U used is not null but there should be is null

@rmarinho
Copy link
Member

rmarinho commented Jan 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@mattleibow
Copy link
Member

Maybe a test would be to show a page with a hybrid view, start some JS operation and then navigate back? How reliable is this? A manual call to DisconnectHandler may also be a trigger...

@michalpobuta can you repro this issue in a simple page example where you call JS and then manually trigger a dispose before the JS finishes?

@rmarinho rmarinho enabled auto-merge (squash) January 8, 2025 11:03
@rmarinho rmarinho merged commit 950f479 into dotnet:main Jan 8, 2025
104 checks passed
@PureWeen PureWeen added this to the .NET 9 SR3 milestone Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community ✨ Community Contribution
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

HybridWebViewHandler "VirtualView cannot be null here"
5 participants