Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: html fullscreen transitions stacking #34909

Closed
wants to merge 1 commit into from

Conversation

codebytere
Copy link
Member

Backport of #32905.

See that PR for details.

Notes: Fixes an issue with fullscreen transitions when HTML fullscreen is requested.

@codebytere codebytere requested a review from a team July 13, 2022 16:39
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 13, 2022
@trop trop bot mentioned this pull request Jul 13, 2022
4 tasks
@trop trop bot added 18-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jul 13, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 13, 2022
Copy link
Contributor

@RaisinTen RaisinTen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some related macOS failures

const width = await w.webContents.executeJavaScript(
"document.querySelector('iframe').offsetWidth"
);
expect(width).to.equal(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion is failing on macOS builds:

not ok 1114 iframe using HTML fullscreen API while window is OS-fullscreened can fullscreen from out-of-process iframes (macOS)
  AssertionError: expected 1024 to equal 0
      at Context.<anonymous> (electron/spec-main/chromium-spec.ts:1701:22)

// TODO(jkleinsc) fix this flaky test on WOA
ifit(process.platform !== 'win32' || process.arch !== 'arm64')('can fullscreen from in-process iframes', async () => {
if (process.platform === 'darwin') await emittedOnce(w, 'enter-full-screen');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this event is not emitted and so, this test times out on macOS:

not ok 1115 iframe using HTML fullscreen API while window is OS-fullscreened can fullscreen from in-process iframes
  Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/distiller/project/src/electron/spec-main/chromium-spec.ts)
      at listOnTimeout (node:internal/timers:557:17)
      at processTimers (node:internal/timers:500:7)

@codebytere
Copy link
Member Author

Gonna leave this in 19 and 20. Forgot this hinged on an upstream change not in 18.

@codebytere codebytere closed this Jul 14, 2022
@zcbenz zcbenz deleted the fix-fs-transitions-for-chrome-fs-18 branch October 26, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
18-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants