Skip to content

Remove vestigial Qt-era desktop workarounds - #17638

Closed
jmg421 wants to merge 1 commit into
rstudio:mainfrom
jmg421:cleanup/17509-remove-qt-workarounds
Closed

jmg421 wants to merge 1 commit into
rstudio:mainfrom
jmg421:cleanup/17509-remove-qt-workarounds

Conversation

@jmg421

@jmg421 jmg421 commented May 14, 2026

Copy link
Copy Markdown

Fixes #17509

Removes workarounds that were specific to QtWebKit/QtWebEngine, now that RStudio Desktop runs on Electron/Chromium:

  • kQtMathJaxConfigScript (SessionHTMLPreview.hpp/.cpp, SessionRMarkdown.cpp): Forced minScaleAdjust: 125 and availableFonts: [] to compensate for QtWebKit font rendering. Chromium renders MathJax correctly with defaults.

  • Transition disabling (SlideRequestHandler.cpp): Disabled reveal.js transitions in desktop mode because 'qtwebkit can't keep up'. Chromium handles transitions fine.

Net: -26 lines of dead code, presentations now get transitions on Desktop.

Testing

  • Render an Rmd with MathJax equations on Windows Desktop — verify equations render correctly
  • Open a reveal.js presentation on Desktop — verify transitions work

RStudio Desktop migrated from Qt to Electron/Chromium. Remove
workarounds that were specific to QtWebKit/QtWebEngine:

- Remove kQtMathJaxConfigScript macro and its injection sites in
  SessionHTMLPreview.cpp and SessionRMarkdown.cpp. The forced
  minScaleAdjust:125 and availableFonts:[] were compensating for
  QtWebKit font rendering; Chromium renders MathJax correctly with
  defaults.

- Remove desktop-mode transition disabling in SlideRequestHandler.cpp.
  The comment says 'qtwebkit can't keep up' — Chromium handles
  reveal.js transitions without issue.
@posit-snyk-bot

posit-snyk-bot commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@kevinushey

Copy link
Copy Markdown
Collaborator

This PR does not even build. Please don't submit changes that you haven't even tested.

@kevinushey kevinushey closed this May 14, 2026
@jmg421

jmg421 commented May 14, 2026

Copy link
Copy Markdown
Author

Fair point — I didn't have the build environment set up. Closing this. I'll make sure to build-test future contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tech debt: audit Qt-era desktop workarounds in session HTML/MathJax paths

3 participants