MCPcopy Create free account
hub / github.com/angular/dev-infra / sameOrigin

Function sameOrigin

github-actions/browserstack/set-browserstack-env.js:4598–4606  ·  view source on GitHub ↗
(A, B)

Source from the content-addressed store, hash-verified

4596 function tryUpgradeRequestToAPotentiallyTrustworthyURL(request) {
4597 }
4598 function sameOrigin(A, B) {
4599 if (A.origin === B.origin && A.origin === "null") {
4600 return true;
4601 }
4602 if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
4603 return true;
4604 }
4605 return false;
4606 }
4607 function createDeferredPromise() {
4608 let res;
4609 let rej;

Callers 5

constructorMethod · 0.70
mainFetchFunction · 0.70
httpRedirectFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected