add comment
This commit is contained in:
parent
db3acf12f2
commit
12104c395f
|
|
@ -432,6 +432,8 @@ class FrameSession {
|
|||
this._firstNonInitialNavigationCommittedFulfill = f;
|
||||
this._firstNonInitialNavigationCommittedReject = r;
|
||||
});
|
||||
// The Promise is not always awaited (e.g. FrameSession._initialize can throw)
|
||||
// so we catch errors here to prevent unhandled promise rejection.
|
||||
this._firstNonInitialNavigationCommittedPromise.catch(() => {});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue