* Returns the given domain if the current origin is not the AMP proxy origin, * otherwise returns the empty string. * * On proxy origin, we want cookies to be partitioned by subdomain to prevent * sharing across unrelated publishers, in which case we want to set the domain * equal to the empty
(win, domain)
| 17 | * @return {string} |
| 18 | */ |
| 19 | function getProxySafeDomain(win, domain) { |
| 20 | return isProxyOrigin(win.location) ? '' : domain; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @param {!Window} win |
no test coverage detected