### Bug summary canvas.manager.set_window_title does not work to figure with `WebAgg` backend (but MacOSX). the title is still `Figure 1` by default. ### Code for reproduction ```Python import matplotlib.pyplot as plt import numpy as np import matplotlib matplotlib.use("WebAgg") fig = plt.figure(figsize=(7, 5)) fig.canvas.manager.set_window_title("My figure") ax = fig.add_subplot(111) dx, dy = 0.05, 0.05 y, x = np.mgrid[slice(1, 5 + dy, dy), slice(1, 5 + dx, dx)] z = np.sin(x)**10 + np.cos(10 + y*x) * np.cos(x) cf = ax.contourf(x + dx/2., y + dy/2., z) fig.colorbar(cf, ax=ax) plt.show() ``` ### Actual outcome <img width="724" alt="image" src="https://github.com/user-attachments/assets/065b0b52-ec9e-44f6-85cd-86fb3a7486d4"> ### Expected outcome <img width="709" alt="image" src="https://github.com/user-attachments/assets/4fec14df-fc6f-4f4e-bd01-db872f4c8250"> ### Additional information it works in MacOSX backends <img width="700" alt="image" src="https://github.com/user-attachments/assets/6c4b67ef-28f3-46d7-ae65-532af995979f"> ### Operating system macOS Sequoia 15.1.1 ### Matplotlib Version 3.9.3 ### Matplotlib Backend WebAgg ### Python version 3.12.7 ### Jupyter version _No response_ ### Installation pip