Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
adding heuristic doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dethe committed Jan 9, 2014
1 parent a18b964 commit e2b1fec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/Heuristic for determining first party-ness.md
@@ -0,0 +1,12 @@
Heuristic for determining first party-ness

1. Does the request have a referrer?
2. Is the request made in a tab (window)?
3. Is this request part of resolving the page (not Ajax)?
4. Are we able to resolve a host domain for referrer and tab URIs?
5. Are they the same?
6. Are they *not* 'about:blank'?
7. Ignore requests that come from within the add-on
8. Ignore requests that don't have a valid target or source
9. Ignore requests coming from localhost
10. Ignore requests that are neither http or https protocols (we want to extend this to include websockets and WebRTC connections).

0 comments on commit e2b1fec

Please sign in to comment.