Merge "SF: fix a bug in isFrameActive"