Today I noticed that for some iframes www.cnn.com ( window[0]in the example) they have
Array.prototype === window[0].Array.prototype
Of course, from within the frame they also have
Array.prototype === top.Array.prototype
the same applies to Object, Functionetc. But I can not find any information about this behavior, and I can not reproduce it if I create plunkr with the same original iframe. On the main page and in the frame, both parameters document.domainare equal cnn.com, but this also does not help in my case. Array.prototypeis not configurable, so it’s not clear to me how this can be done specifically with the script. I experienced this (but could not play it) on FF 29 and not on Chrome 33.
source
share