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: case *page.EventFrameClearedScheduledNavigation:
id, op = e.FrameID, frameClearedScheduledNavigation id, op = e.FrameID, frameClearedScheduledNavigation
// ignored events
case *page.EventDomContentEventFired: case *page.EventDomContentEventFired:
return return
case *page.EventLoadEventFired: case *page.EventLoadEventFired:
return return
case *page.EventFrameResized: case *page.EventFrameResized:
return return
case *page.EventLifecycleEvent:
return
default: default:
h.errorf("unhandled page event %s", reflect.TypeOf(ev)) h.errorf("unhandled page event %s", reflect.TypeOf(ev))