playwright/browser_patches/webkit
Dmitry Gozman ded2bc2396
browser(webkit): postpone creation of the first page (#4769)
When we create the first page in the default context in headless mode on mac,
it gets NSWindow that is "not visible". Although we call [window setIsVisible:YES],
later on window.isVisible still returns NO.

We create our offscreen "headless" NSWindow directly from applicationDidFinishLaunching:.
Experiments show that delaying this by 100ms makes everything work. As a symptom,
we get applicationDidUnhide: notification that does not happen when we create the window
immediately.

Perhaps, we create the window too early, and there is some essential initialization
that happens after applicationDidFinishLaunching:. However, if we call
[NSApp activateIgnoringOtherApps:YES] like we do in headful mode, everything works.

The only solution that worked so far is creating the first page after a timeout.
2020-12-29 13:49:39 -08:00
..
embedder/Playwright browser(webkit): postpone creation of the first page (#4769) 2020-12-29 13:49:39 -08:00
patches yury comments (#4639) 2020-12-23 08:04:59 -08:00
.gitignore Initial commit 2019-11-19 10:58:15 -08:00
archive.sh devops(windows): fix vswhere location (#4636) 2020-12-08 10:27:05 -08:00
build.sh devops: fix webkit building on windows (#4618) 2020-12-07 09:21:36 -08:00
BUILD_NUMBER browser(webkit): postpone creation of the first page (#4769) 2020-12-29 13:49:39 -08:00
buildwin.bat devops: absolute paths for webkit libraries and output directory (#4627) 2020-12-07 14:30:06 -08:00
cheatsheet.md docs(webkit): update core dump analisys instructions (#2778) 2020-06-30 17:00:16 -07:00
clean.sh devops: suppport WK_CHECKOUT_PATH variable (#4617) 2020-12-07 08:42:20 -08:00
concat_protocol.js devops: fix webkit archiving (#4642) 2020-12-08 16:32:45 -08:00
pw_run.sh browser(webkit): use webkit generate-bundle tool to generate the bundles (#3563) 2020-08-28 10:48:57 -07:00
pw_run_debug.sh chore(webkit): build wpe and gtk to different folders (#616) 2020-01-24 11:54:50 -08:00
UPSTREAM_CONFIG.sh browser(webkit): roll to 12-21 (#4794) 2020-12-21 16:07:45 -08:00
upstream_status.md Update upstream_status.md 2020-06-17 23:23:51 -07:00