(ev map[string]any)
| 695 | } |
| 696 | |
| 697 | func (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 | |
| 706 | func (b *browserContextImpl) onServiceWorker(worker *workerImpl) { |
| 707 | worker.context = b |
nothing calls this directly
no test coverage detected