Closed zakharvoit closed 6 months ago
I wonder if we can use canGoBack()
before accessing goBack()
to prevent CHECK crash.
I wonder if we can use
canGoBack()
before accessinggoBack()
to prevent CHECK crash.
Yes, it was my idea originally. But since I replaced goBack() with goToOffset() it's not needed anymore. The canGoToOffset() check is performed inside findBackForwardNavigationOffset().
Allow browser to mark navigation entries as 'skippable' so that they are not used when performing back/forward navigation. This allows us to fix navigation issues caused by YouTube redirects to desktop app.
This change also fixes a crash which happened when rapidly clicking back/forward button multiple times by ensuring that any navigation doesn't go out of bounds.
Fixes #66