Error", function() { iframe.contentWindow.location.toString(); });
          // Set document.domain
          document.domain = ORIGINAL_HOST;
          // After setting document.domain, the iframe is
          // same-origin-domain, so security checks pass.
          assert_equals(iframe.contentDocument.domain, document.domain);
          assert_equals(iframe.contentWindow.frameElement, iframe);
          assert_equals(iframe.contentWindow.origin, iframe_url.origin);
          assert_equals(iframe.contentW