Description:
Our plugin displays a webview (JBCefBrowser
) inside the editor tab.
In IntelliJ 2025.1 and 2025.2 we’ve observed repaint issues:
-
Theme Change Issue
-
When switching themes (Light ↔ Dark), the webview does not fully update.
-
Some portions remain in the previous theme until the user scrolls inside the webview.
-
-
Loader Issue
-
Our plugin also shows a loader (React-based) inside the webview while performing background actions.
-
Sometimes the loader remains stuck (even though the action is complete) until the user scrolls or interacts with the UI.
-
Both issues disappear after scrolling, which indicates a repaint invalidation problem.
Neither issue is reproducible in IntelliJ 2024.x.
Steps to Reproduce:
-
Install the plugin that displays a webview in the editor.
-
Open the webview tab.
-
Perform one of the following:
-
Change the IDE theme (Light ↔ Dark).
-
Trigger an action that shows the loader, then wait until it should disappear.
-
-
Observe:
- Theme or loader does not update correctly until scrolling inside the webview.
Expected Behavior:
-
Webview content should update immediately when the IDE theme changes.
-
Loader should hide automatically once the action is complete.
Actual Behavior:
- Theme update and loader hiding both only occur after user interaction (e.g., scrolling).
Environment:
-
IntelliJ IDEA 2025.1, 2025.2 → Reproducible
-
IntelliJ IDEA 2024.x → Not reproducible
-
JDK: [21]
-
OS: [Windows/macOS]
Notes :
- Appears to be a repaint invalidation issue with JCEF integration in IntelliJ 2025.x.