3 // See ServiceWorkerBrowserTest CrossSiteTransfer.
5 var subresourceUrl
= 'cross_site_xfer_subresource';
6 var subresourceExpectedText
= 'Hello';
8 var xhr
= new XMLHttpRequest();
9 xhr
.onreadystatechange = function() {
10 if (xhr
.readyState
== 4) {
11 if (xhr
.responseText
== subresourceExpectedText
)
12 document
.title
= 'OK_2';
14 document
.title
= 'FAIL_2';
17 xhr
.open('GET', subresourceUrl
);