Windows: Running with initial full-screen state doesn't restore window correctly on exit

Issue #3243 new
Marshall Greenblatt created an issue

What steps will reproduce the problem?

To reproduce with the Chrome runtime:

  1. Run cefclient --enable-chrome-runtime --use-views --initial-show-state=fullscreen
  2. Press F11 to exit full-screen mode.
  3. Note that the resulting window is unusable (black content area, can’t be moved/resized, etc).

To reproduce with the Alloy runtime:

  1. Run cefclient --use-views --initial-show-state=fullscreen --url=https://www.w3schools.com/html/html5_video.asp
  2. Click the full-screen button on the video element to enter full-screen.
  3. Click the full-screen button on the video element to exit full-screen.
  4. Note that the resulting window is unusable (black content area, can’t be moved/resized, etc).

The window restore size is set by FullscreenHandler::SetFullscreenImpl. Likely that class doesn’t have useful state to begin with due to the window launching in full-screen mode. We should probably look at how Chrome implements the --start-fullscreen command-line flag as reference.

What version of the product are you using? On what operating system?

Tested with M98 on Windows 10.

Comments (0)

  1. Log in to comment