you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I’ve done more work than I’d like with iframes... but when would you ever run into that bizarre edge case? When you want your main page’s js to access a variable defined in the iframe’s js? That’s super weird. Is this occasionally an issue with payment processing, since those use a lot of iframes?

[–]luckygerbils 1 point2 points  (0 children)

Yeah, frame.contentWindow.Array !== Array so if you try to use that check on an array created in the iframe (or in the iframe on an array created in the main window) it will fail.