electron/spec-main
Darshan Sen f887000d50
fix: make BrowserWindow#isFocused() return false when blur() is called on macOS (#33734)
The isFocused() method on macOS works by checking if the selected
BrowserWindow is a key window. Unfortunately, this didn't work well
with blur() because it wasn't calling any macOS APIs that would change
the key status of the window. Hence, this changes the implementation of
blur() to call orderOut first, which removes the key
status of the window. Then when the orderBack function is called, it
moves the window to the back of its level in the screen list, without
changing the key window.

Fixes: https://github.com/electron/electron/issues/33732
Signed-off-by: Darshan Sen <raisinten@gmail.com>
2022-05-03 16:39:18 +09:00
..
fixtures test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00
.eslintrc refactor: implement ajax() in tests using native fetch instead of jQuery (#32579) 2022-01-24 10:34:23 +01:00
.gitignore spec: add tests for the autoUpdater on macOS that actually test if it works (#17442) 2019-03-29 17:32:52 -07:00
ambient.d.ts chore: cleanup spec-main/ambient.d.ts (#32363) 2022-01-07 17:52:47 +09:00
api-app-spec.ts fix: create userData on requestSingleInstanceLock() if needed (#33559) 2022-04-04 10:39:55 +09:00
api-auto-updater-spec.ts ci: enable arm64 macOS tests (#24832) 2021-01-21 18:36:52 -05:00
api-autoupdater-darwin-spec.ts feat: add new Squirrel.Mac bundle installation method behind flag (#33470) 2022-03-29 14:47:34 -07:00
api-browser-view-spec.ts fix: BrowserView background color in webContents (#33435) 2022-03-28 12:47:08 -04:00
api-browser-window-spec.ts fix: make BrowserWindow#isFocused() return false when blur() is called on macOS (#33734) 2022-05-03 16:39:18 +09:00
api-content-tracing-spec.ts chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
api-context-bridge-spec.ts chore: update to latest TypeScript (#32596) 2022-01-31 20:37:40 +09:00
api-crash-reporter-spec.ts chore: remove Breakpad tests for crashReporter on Linux (#31729) 2021-11-08 10:20:43 +01:00
api-debugger-spec.ts test: fix and re-enable Network.getResponseBody test (#33227) 2022-03-22 08:38:46 +09:00
api-deprecate-spec.ts refactor: replace a few any-s with proper types (#25681) 2020-10-08 03:01:23 +02:00
api-desktop-capturer-spec.ts test: re-enable desktop specs (#33497) 2022-03-29 11:57:21 -04:00
api-dialog-spec.ts feat: add signal option to dialog.showMessageBox (#26102) 2021-07-15 07:59:27 +09:00
api-global-shortcut-spec.ts fix: media key globalShortcuts on macOS (#30552) 2021-08-17 13:44:17 -04:00
api-in-app-purchase-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-ipc-main-spec.ts feat: enable context isolation by default (#26890) 2021-03-01 16:52:29 -05:00
api-ipc-renderer-spec.ts feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
api-ipc-spec.ts fix: apply senderFrame details to ipcMain port event (#33756) 2022-04-13 21:01:00 -07:00
api-menu-item-spec.ts feat: add Substitutions menu roles on macOS (#32024) 2022-01-06 10:41:28 -08:00
api-menu-spec.ts chore: update to latest TypeScript, which has built-in WeakRef declarations (#27425) 2021-01-22 11:25:47 -08:00
api-native-theme-spec.ts feat: add nativeTheme.inForcedColorsMode (#32956) 2022-03-21 10:30:02 +01:00
api-net-log-spec.ts chore: update to latest TypeScript, which has built-in WeakRef declarations (#27425) 2021-01-22 11:25:47 -08:00
api-net-spec.ts feat: add rawHeaders to IncomingMessage (#31853) 2022-01-24 11:46:15 -05:00
api-notification-dbus-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-notification-spec.ts feat: custom toast xml and failure reporting for notifications (#25401) 2020-09-29 12:20:10 -07:00
api-power-monitor-spec.ts feat: add powerMonitor.onBatteryPower (#26494) 2020-11-16 16:31:46 -08:00
api-power-save-blocker-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-protocol-spec.ts chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
api-safe-storage-spec.ts feat: add electron.safeStorage encryption API (#30020) 2021-08-05 15:12:54 -07:00
api-screen-spec.ts fix: add a "set" trap to the "screen" module proxy (#26818) 2020-12-07 09:20:50 -08:00
api-service-workers-spec.ts test: use new uuid for each ServiceWorker test (#27444) 2021-01-23 10:37:51 +09:00
api-session-spec.ts test: make test apps' name prefixed with electron-test- (#33511) 2022-03-30 13:17:34 -04:00
api-shell-spec.ts test: disable shell.trashItem in renderer test on win-ia32 (#28868) 2021-04-27 14:35:31 -07:00
api-subframe-spec.ts feat: enable context isolation by default (#26890) 2021-03-01 16:52:29 -05:00
api-system-preferences-spec.ts feat: allow null when subscribing notification (#33641) 2022-04-13 22:02:33 +02:00
api-touch-bar-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-tray-spec.ts refactor: remove path from nativeImage converter (#26546) 2021-01-04 12:58:31 -08:00
api-view-spec.ts refactor: rename TopLevelWindow to BaseWindow (#24305) 2020-06-29 16:06:20 +09:00
api-web-contents-spec.ts test: re-enable disabled ScriptOrModule specs (#33702) 2022-04-12 12:00:42 +02:00
api-web-contents-view-spec.ts test: disable some tests under ASan which might receive SIGKILL because of OOM (#28156) 2021-03-16 17:02:47 -04:00
api-web-frame-main-spec.ts chore: bump chromium to 100.0.4894.0 (main) (#32852) 2022-02-25 13:17:35 -05:00
api-web-frame-spec.ts chore: remove deprecated worldSafeExecuteJavaScript option (#28456) 2021-04-08 12:03:57 -04:00
api-web-request-spec.ts chore: update node types version (#33452) 2022-03-28 14:37:35 -07:00
asar-spec.ts fix: initialize asar support in worker threads (#33216) 2022-03-22 20:37:55 -04:00
autofill-spec.ts test: add test for datalist autofills (#23110) 2020-04-21 12:28:31 -07:00
chromium-spec.ts chore: bump chromium to 102.0.4989.0 (main) (#33557) 2022-04-12 13:19:14 +02:00
crash-spec.ts test: skip flaky test on 32-bit Windows (#34021) 2022-05-02 21:08:20 -04:00
events-helpers.ts chore: deprecate remote (#25293) 2020-09-10 09:17:17 -07:00
extensions-spec.ts chore: bump chromium to 100.0.4894.0 (main) (#32852) 2022-02-25 13:17:35 -05:00
guest-window-manager-spec.ts feat: remove nativeWindowOpen option (#29405) 2022-01-06 09:28:03 -08:00
index.js chore: fix typos (#32985) 2022-02-21 10:27:45 +01:00
internal-spec.ts chore: move libs only used in browser out of common (#31780) 2021-11-10 08:54:51 -08:00
logging-spec.ts spec: fix check for electron_common_testing binding in logging-spec.ts (#30086) 2021-07-12 22:11:19 -07:00
modules-spec.ts test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00
node-spec.ts chore: update to latest TypeScript (#32596) 2022-01-31 20:37:40 +09:00
package.json test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00
pipe-transport.ts chore: support --remote-debugging-pipe (#23433) 2020-05-07 21:27:55 -07:00
release-notes-spec.ts chore: graceful handling of notes with sub-lists (#25279) 2020-09-03 14:42:48 -05:00
screen-helpers.ts test: fix crash on image.crop (#33148) 2022-03-22 20:14:49 -04:00
security-warnings-spec.ts fix: do not trigger CSP violations when checking eval (#30991) 2021-10-25 14:11:24 -07:00
spec-helpers.ts test: deflake crashReporter.getLastCrashReport test (#30276) 2021-07-28 08:56:15 -07:00
spellchecker-spec.ts fix: webFrame spell checker APIs crashing in sandboxed renderers (#29053) 2021-05-10 14:19:23 +02:00
types-spec.ts chore: bump Node.js to v16.2.0 (#29244) 2021-06-17 08:50:56 +02:00
version-bump-spec.ts build: update version-bumper to support alpha (#30165) 2021-07-19 17:58:15 -07:00
video-helpers.js chore: fix minor script warnings (#25575) 2020-09-23 13:21:34 -07:00
visibility-state-spec.ts feat: enable context isolation by default (#26890) 2021-03-01 16:52:29 -05:00
webview-spec.ts chore: bump chromium to 100.0.4894.0 (main) (#32852) 2022-02-25 13:17:35 -05:00
window-helpers.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
yarn.lock test: scope internal test fixtures under @electron-ci (#33822) 2022-05-02 13:09:23 -04:00