MixinNetwork / MixinNetwork/flutter-plugins

Warnings about Java applets

Open Beginner friendly
#401 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

desktop_webview_window tries to enable Java applets, leading to this warning when running or building:

/Users/dukese01/.pub-cache/hosted/pub.dev/desktop_webview_window-0.2.3/macos/Classes/WebViewLayoutController.swift:90:39: warning: 'javaEnabled' was deprecated in macOS 10.15: Java is no longer supported
    webView.configuration.preferences.javaEnabled = true

Reproduce Steps

Steps to reproduce the behavior:

  1. Add flutter_web_auth_2 (depends on desktop_webview_window)
  2. Build for macOS
  3. See warning

Expected behavior

Shouldn't try to enable Java applets.

https://github.com/MixinNetwork/flutter-plugins/blob/6c2845f959617afd0db70f19b3e3f4e946137ebc/packages/desktop_webview_window/macos/Classes/WebViewLayoutController.swift#L90

Version (please complete the following information):

  • Flutter Version: 3.29.2
  • OS: macOS
  • plugin: desktop_webview_window

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect macos/Classes/WebViewLayoutController.swift at the reported line where javaEnabled is set. Build the desktop_webview_window plugin for macOS and confirm the Java applet warning is reproduced. Done means the plugin no longer attempts to enable Java applets and the warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter, macos, swift
Domain
desktop-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.