-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Fix situations where asset discovery might hang (#490)
* π Log a better message for network idle timeouts * β» Move page resizing out of page init π And always pass the minHeight when resizing * π Disable browser translate feature correctly * π Automatically initialize subframe sessions This allows request interception bindings to propagate down to subframes * β» Unprivate some page properties * π Track and properly cleanup frame requests If a request for a document results in a new session, such as for isolated pages, the frame is detached before the request's loading finished event gets a chance to fire. Requests for new frames can be tracked and when the frame becomes detached the associated request can be cleaned up. * β Prefer localhost subdomains for some tests * π Adjust coverage comments * β» Refactor page navigation to be more reliable The existing lifecycle handling combined with the polling nature of navigation resolution could sometimes result in a situation where a page's lifecycle is reset before navigation can be deemed complete. We can use the same technique watching for the proper lifecycle as we do for frame navigation. However, rather than repeating code within the handlers, they were refactored slightly to be mapped handlers. The navigation trigger was also refactored slightly into a callback that can be called the moment we start waiting for the navigation handlers to finish. * π Fix flakey redirect handling Do to certain race conditions, intecepted redirects were not properly getting associated with an intercept id. But since the previous request in the chain had been cleaned up, this could sometimes cause asset discovery to hang. Adjusting the if-else logic of this handling fixes this issue by ensuring that if a request is not being handled, it is always set up to be intercepted.
- Loading branch information
Wil Wilsman
authored
Aug 11, 2021
1 parent
65bafbc
commit d88a3d0
Showing
5 changed files
with
276 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.