mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Disable cross origin check for mozbrowser-enabled top level pipelines
This commit is contained in:
parent
b97ffffb48
commit
dd08e904eb
3 changed files with 54 additions and 6 deletions
|
@ -6060,6 +6060,12 @@
|
|||
"url": "/_mozilla/mozilla/mime_sniffing_font_context.html"
|
||||
}
|
||||
],
|
||||
"mozilla/mozbrowser/crossorigin_xhr.html": [
|
||||
{
|
||||
"path": "mozilla/mozbrowser/crossorigin_xhr.html",
|
||||
"url": "/_mozilla/mozilla/mozbrowser/crossorigin_xhr.html"
|
||||
}
|
||||
],
|
||||
"mozilla/mozbrowser/iframe_goback.html": [
|
||||
{
|
||||
"path": "mozilla/mozbrowser/iframe_goback.html",
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue