forked from puppeteer/puppeteer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(page): fix "timeout: 0" to actually disable any navigation timeout (
puppeteer#1435) Since non-promise values always win the `Promise.race`, we shouldn't return `null` for timeout promise in NavigationWatcher. Instead, we can return a promise that never resolved. It should be GC'd later with the navigation watcher itself. Fixes puppeteer#1417.
- Loading branch information
1 parent
cafd040
commit 88eaede
Showing
2 changed files
with
5 additions
and
2 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