MCPcopy Create free account
hub / github.com/SolarLune/masterplan / NavigateBack

Method NavigateBack

browser.go:702–714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

700}
701
702func (b *BrowserTab) NavigateBack() {
703
704 // Some sites hang indefinitely with chromedp.NavigateBack() - see issue: https://github.com/chromedp/chromedp/issues/1346
705 // entries := []*page.NavigationEntry{}
706 // currentEntry := int64(0)
707 // chromedp.Run(b.Context, chromedp.NavigationEntries(&currentEntry, &entries))
708 // if int(currentEntry) >= 1 {
709 // b.Do(chromedp.NavigateBack())
710 // }
711
712 b.Do(chromedp.EvaluateAsDevTools("history.back()", nil))
713
714}
715
716func (b *BrowserTab) NavigateForward() {
717 // entries := []*page.NavigationEntry{}

Callers 2

NewInternetContentsFunction · 0.80
UpdateMethod · 0.80

Calls 1

DoMethod · 0.95

Tested by

no test coverage detected