Closed danpalmer closed 4 years ago
Does window.shown
work for you?
It doesn't appear to. The window appears to be shown as soon as it's created.
shown
is implemented as a mixed bag. In some cases it is fired in the constructor after everything else, in other cases on a dedicated event. The best course would be to fire shown after a webview is ready.
Would this help your use case?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The message to post on the issue when closing it. If none provided, will not comment when closing an issue.
Specification
Description
The current lifecycle of a window is roughly...
loaded
is fired.I'm attempting to inject some custom configuration (cookies, see #548) directly into the
WKWebView
backing a window, but there isn't a convenient hook to do this when the webview has been instantiated. My current solution is to wait for 1 second in the init function.I can work around this, but it seems like it would be nice to have another event for this more advanced use-case.
Practicalities
No and No. This isn't blocking me so I'm afraid I can't dedicate time to solving it.