Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Disable cross origin check for mozbrowser-enabled top level pipelines
- Loading branch information
1 parent
b97ffff
commit dd08e90
Showing
3 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/wpt/mozilla/tests/mozilla/mozbrowser/crossorigin_xhr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<head> | ||
<title>cross origin xhr() with mozbrowser</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
|
||
async_test(function(t) { | ||
var xhr = new XMLHttpRequest(); | ||
xhr.open("GET", "http://www2.web-platform.test:8000"); | ||
xhr.send(); | ||
|
||
xhr.onerror = this.unreached_func("Cross origin xhr() should not have failed"); | ||
|
||
xhr.onload = this.step_func_done(() => { | ||
assert_equals(xhr.status, 200, "Cross origin xhr() is successful"); | ||
}); | ||
}); | ||
|
||
</script> | ||
</body> |