Add empty *page.EventLifecycleEvent handler

Fixes #154
This commit is contained in:
Kenneth Shaw 2017-12-18 11:03:22 +07:00
parent 335d22d376
commit 6afa874714

View File

@ -534,12 +534,15 @@ func (h *TargetHandler) pageEvent(ctxt context.Context, ev interface{}) {
case *page.EventFrameClearedScheduledNavigation:
id, op = e.FrameID, frameClearedScheduledNavigation
// ignored events
case *page.EventDomContentEventFired:
return
case *page.EventLoadEventFired:
return
case *page.EventFrameResized:
return
case *page.EventLifecycleEvent:
return
default:
h.errorf("unhandled page event %s", reflect.TypeOf(ev))