This website requires JavaScript.
Explore
Help
Register
Sign In
Filip
/
playwright
Watch
1
Star
0
Fork
You've already forked playwright
0
Code
Issues
Pull requests
Actions
Packages
Projects
Releases
Wiki
Activity
736ef4e879
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 22:49:39 +01:00
1410
Changed: dgozman@gmail.com Tue Dec 22 18:36:56 PST 2020
Reference in a new issue
Copy permalink