[BUG #8493] Fixed target detection for iframes