Closed Alex-302 closed 5 years ago
There are two flaws that are related to this. First is of overlay detection logic - Currently, when retrieving Event
object representing user action, the Popup Blocker may retrieve it from ancestor frames, because websites may call open
from descendant frames. From the event, we retrieve its target and check whether it looks like an artificial overlay. However, I made a mistake that the size of target element is only compared with the 'current' frame, where the correct way would be to compare it with the frame from where we retrieved the event.
The second is with 'create test' in event timeline, we should add a mutation observer for iframes to prevent some iframes from stay long undetected. Actually I started to feel that this test is intrinsically not very robust. The create test has been important in FF, because some detection logic that relies on parent frame's window.event is unavailable there. We may consider removing it after improving the polyfill.
can't repro with AG for win v7.0