зеркало из https://github.com/mozilla/lightbeam.git
588 B
588 B
Heuristic for determining first party-ness
- Does the request have a referrer?
- Is the request made in a tab (window)?
- Is this request part of resolving the page (not Ajax)?
- Are we able to resolve a host domain for referrer and tab URIs?
- Are they the same?
- Are they not 'about:blank'?
- Ignore requests that come from within the add-on
- Ignore requests that don't have a valid target or source
- Ignore requests coming from localhost
- Ignore requests that are neither http or https protocols (we want to extend this to include websockets and WebRTC connections).