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

Disable WebView debug modes by default and expose configuration to enable it #2785

Open
rmartin16 opened this issue Aug 22, 2024 · 0 comments
Labels
bug A crash or error in behavior.

Comments

@rmartin16
Copy link
Member

Describe the bug

Currently, a "debug mode" is enabled for the WebView on each platform. For Windows, macOS, iOS, and Gtk, this is explicitly enabled by Toga; for Android, this debug mode should be controlled by whether the running build is debug or release. Ideally, the WebView would not be configured this way in distributed apps using Toga....but developers using Toga do not have a way to disable it.

Steps to reproduce

Start an app using the WebView and access its "dev tools" at runtime.

Expected behavior

Debugging tools/settings for WebView are disabled for released apps. However, developers should have the option to enable these tools during their development.

Screenshots

No response

Environment

  • Operating System: all
  • Python version: any
  • Software versions:
    • Toga: 0.4.6.dev0+g9a8d7a903

Logs

No response

Additional context

No response

@rmartin16 rmartin16 added the bug A crash or error in behavior. label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior.
Projects
None yet
Development

No branches or pull requests

1 participant