electron/spec-main/fixtures
Fedor Indutny d4a1b41129
fix: microtasks policy in CreateEnvironment (#29531)
* fix: microtasks policy in CreateEnvironment

Microtasks policy should not be updated for the renderer because
`NodeBindings::CreateEnvironment` might be entered with or without
`UvRunOnce()` on stack. One of the examples of such calls is
`window.open()` which is possible to invoke while `uv_run()` is still
running (e.g. with `setImmediate()`).

All in all, it doesn't matter that much which policy we use since
`v8::MicrotasksScope` has a check for the policy in its destructor and
no commits will be made if the policy is `kExplicit`. It is important,
however, to not change the policy in the middle of `UvRunOnce()` so we
should respect whatever we currently have and move on.

Fix: #29463

* Move test to a better place

* Update spec-main/fixtures/crash-cases/setimmediate-window-open-crash/index.html

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>

* Update spec-main/fixtures/crash-cases/setimmediate-window-open-crash/index.html

Co-authored-by: Jeremy Rose <nornagon@nornagon.net>

* simplify crash-case

* comment

* fix comment

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: Fedor Indutny <indutny@signal.org>
2021-06-21 14:06:17 +09:00
..
api feat: add ContextBridgeMutability feature (#27348) 2021-03-22 10:16:35 -07:00
apps feat: bring --enable-logging functionality in line with Chromium (#25089) 2021-06-17 14:17:25 -07:00
auto-update ci: cleanup up test app directories (#25145) 2020-08-31 14:07:12 -04:00
chromium chore: bump chromium to 6b9fa6b352d824d052222e1abe541 (master) (#25558) 2020-10-15 18:30:41 -07:00
crash-cases fix: microtasks policy in CreateEnvironment (#29531) 2021-06-21 14:06:17 +09:00
devtools-extensions build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
extensions feat: support registering MV3 extension service workers (#27562) 2021-02-11 10:58:03 -05:00
module chore: rename process.contextIsolation to process.contextIsolated (#28259) 2021-03-18 14:00:19 -07:00
native-addon fix: export libuv symbols (#24659) 2020-08-11 19:17:18 +09:00
pages test: add test for datalist autofills (#23110) 2020-04-21 12:28:31 -07:00
release-notes/cache chore: graceful handling of notes with sub-lists (#25279) 2020-09-03 14:42:48 -05:00
snapshots feat: remove BrowserWindow option inheritance (#28550) 2021-04-21 10:55:17 -07:00
sub-frames feat: enable context isolation by default (#26890) 2021-03-01 16:52:29 -05:00
version-bumper build: update support.md on stable version bumps (#29381) 2021-06-02 12:53:23 -07:00
blank.html
blank.png ci: fix WOA failing tests (#25018) 2020-08-24 12:58:55 -04:00
cat.pdf
dogs-running.txt fix: improper wrapping of fs.promises.readFile (#29528) 2021-06-07 21:19:39 +02:00