Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the API base URL in Fetch APIs. #14632

Merged
merged 3 commits into from Dec 23, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Make the multi-global tests more robust.

  • Loading branch information
Ms2ger committed Dec 19, 2016
commit 26cf0a7a8c97cd5af894f7eb3ea499491280ddc4

This file was deleted.

This file was deleted.

@@ -6,9 +6,8 @@
<script>
'use strict';

const current = document.querySelector('#c').contentWindow;

window.createRequest = (...args) => {
const current = document.querySelector('#c').contentWindow;
return new current.Request(...args);
};

@@ -18,7 +18,7 @@

promise_test(() => {
return loadPromise.then(() => {
const req = frames[0].createRequest("url");
const req = document.querySelector('iframe').contentWindow.createRequest("url");

assert_equals(req.url, new URL("current/url", location.href).href);
});
@@ -7,10 +7,9 @@
<script>
'use strict';

const current = document.querySelector('#c').contentWindow;
const relevant = document.querySelector('#r').contentWindow;

window.createRedirectResponse = (...args) => {
const current = document.querySelector('#c').contentWindow;
const relevant = document.querySelector('#r').contentWindow;
return current.Response.redirect.call(relevant.Response, ...args);
};

@@ -18,7 +18,7 @@

promise_test(() => {
return loadPromise.then(() => {
const res = frames[0].createRedirectResponse("url");
const res = document.querySelector('iframe').contentWindow.createRedirectResponse("url");

assert_equals(res.headers.get("Location"), new URL("current/url", location.href).href);
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.