This website requires JavaScript.
Explore
Help
Register
Sign In
yujunjun
/
playwright
Watch
1
Star
0
Fork
0
You've already forked playwright
mirror of
https://github.com/microsoft/playwright.git
synced
2025-06-26 21:40:17 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
playwright
/
browser_patches
/
webkit
/
BUILD_NUMBER
3 lines
61 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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
1410
Changed: dgozman@gmail.com Tue Dec 22 18:36:56 PST 2020
Reference in New Issue
Copy Permalink