Merge "Add implementation for onFrameDetached and onFrameCancelled"