MCPcopy
hub / github.com/mxschmitt/playwright-go / onBackgroundPage

Method onBackgroundPage

browser_context.go:697–704  ·  view source on GitHub ↗
(ev map[string]any)

Source from the content-addressed store, hash-verified

695}
696
697func (b *browserContextImpl) onBackgroundPage(ev map[string]any) {
698 b.Lock()
699 p := fromChannel(ev["page"]).(*pageImpl)
700 p.browserContext = b
701 b.backgroundPages = append(b.backgroundPages, p)
702 b.Unlock()
703 b.Emit("backgroundpage", p)
704}
705
706func (b *browserContextImpl) onServiceWorker(worker *workerImpl) {
707 worker.context = b

Callers

nothing calls this directly

Calls 2

fromChannelFunction · 0.85
EmitMethod · 0.65

Tested by

no test coverage detected