Repository navigation
Cache crossorigin test - #24370
Cache crossorigin test#24370
Conversation
|
Heads up! This PR modifies the following files:
|
| } | ||
| } | ||
|
|
||
| const url = "http://{{hosts[][www]]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/is-script-goal.js?pipe=trickle(d5)|header(Cache-Control,max-age=3600)|header(Pragma,)|header(Expires,36000)"; |
There was a problem hiding this comment.
When I logged this locally, it came out as
http://www.web-platform.test:8000/html/semantics/scripting-1/the-script-element/is-script-goal.js?pipe=trickle(d5)|header(Cache-Control,max-age=3600)|header(Pragma,)|header(Expires,36000,
withlocation.hrefcoming out ashttp://web-platform.test:8000/_mozilla/mozilla/cache_crossorigin_response.sub.html.
So that appears same-origin to me.
I think changing it to http://{{hosts[][www1]]}}... would make it cross-origin.
There was a problem hiding this comment.
Ah, I now see the www. is missing from the url of the test, so it's basically the same. It might be clearer and more robust to use www1, I wasn't aware the test are run without the leading www, and that might be subject to change? Many other cross-origin tests, for example in webmessaging, use www1.
There was a problem hiding this comment.
Clearer is debatable, since there are lots of tests that use the www host. Robust is also debatable, since changing the default host to use a subdomain is not a realistic concern.
|
@bors-servo r=gterzian |
|
📌 Commit b282ed9 has been approved by |
Cache crossorigin test This adds a test for #24356 to ensure that we don't regress our cache behaviour. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24370) <!-- Reviewable:end -->
|
☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster |
This adds a test for #24356 to ensure that we don't regress our cache behaviour.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is