Skip to content

[InAppBrowser] MacOS - Flutter App Crash when calling close() from fullscreen #2582

Open
@marcosgcd

Description

@marcosgcd

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

App Crash When calling close() and Browser Window is in Fullscreen mode.

Works fine if not in Fullscreen Mode.

Expected Behavior

Flutter App should not Crash

Steps with code example to reproduce

Example Code:
marcosgcd@136c82d

Video:
https://github.com/user-attachments/assets/e2a65fc6-8ab6-4c79-a84d-b053507760df

Stacktrace/Logs

Stacktrace/Logs
flutter: TEST: Closing in 1 seconds...
flutter: TEST: Closing browser! NOW
"FindInteractionControl - dealloc"
flutter: 

Browser closed!
2

[MacOSInAppBrowser] (macOS) MacOSInAppBrowser ID 119119417420963516020712316214113529206253210 calling "onExit" using {}
2025-03-28 17:13:12.826 flutter_inappwebview_example[51441:3361034] ERROR: Expected a non-nil view or subclass override
2025-03-28 17:13:12.826 flutter_inappwebview_example[51441:3361034] ReloadButton
2025-03-28 17:13:12.826 flutter_inappwebview_example[51441:3361034] ERROR: Expected a non-nil view or subclass override
2025-03-28 17:13:12.826 flutter_inappwebview_example[51441:3361034] ReloadButton
Lost connection to device.

Exited.

Flutter version

v3.29.2

Operating System, Device-specific and/or Tool

macOS

Plugin version

main

Additional information

No response

Self grab

  • I'm ready to work on this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions