Bug 671148 - De-bogosify test_EvalInSandbox.xul's handling of iframes. r=peterv

This commit is contained in:
Blake Kaplan 2011-08-30 15:26:57 -07:00
parent a70e6c3d8f
commit 9d762ab23e
3 changed files with 5 additions and 5 deletions

View File

@ -51,6 +51,7 @@ _CHROME_FILES = \
test_bug533596.xul \
test_doublewrappedcompartments.xul \
test_evalInSandbox.xul \
file_evalInSandbox.html \
test_sandboxImport.xul \
test_wrappers.xul \
test_bug484459.xul \
@ -68,7 +69,7 @@ _CHROME_FILES = \
test_bug658560.xul \
test_APIExposer.xul \
test_bug664689.xul \
test_precisegc.xul \
test_precisegc.xul \
$(NULL)
# Disabled until this test gets updated to test the new proxy based

View File

@ -0,0 +1 @@
<html><body><script>document.foo = 'bar';</script></body></html>

View File

@ -13,12 +13,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=533596
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml">
<iframe type="content"
src="http://example.org/tests/js/src/xpconnect/tests/mochitest/file_evalInSandbox.html"
<iframe src="http://example.org/tests/js/src/xpconnect/tests/mochitest/file_evalInSandbox.html"
onload="checkCrossOrigin(this)">
</iframe>
<iframe type="content"
src="data:text/html,&lt;html&gt;&lt;body&gt;&lt;script&gt;document.foo %3D 'bar'%3B&lt;%2Fscript&gt;&lt;%2Fbody&gt;&lt;%2Fhtml&gt;"
<iframe src="chrome://mochitests/content/chrome/js/src/xpconnect/tests/chrome/file_evalInSandbox.html"
onload="checkSameOrigin(this)">
</iframe>
</body>