Issue 7079: improve a bit isFrameInlineEvent(frame)