This test currently fails because we check the port and protocol even if document.domain is explicitly set (rdar://problem/5366437). PASS: Cross frame access to a different port, after explicitly setting document.domain, was allowed! -------- Frame: 'aFrame' -------- PASS: Cross frame access to a different port, after explicitly setting document.domain, was allowed! Inner iframe with explicit document.domain set.