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

Fix for Issue #6 (first attempt) #108

Merged
merged 2 commits into from
Oct 8, 2012
Merged

Fix for Issue #6 (first attempt) #108

merged 2 commits into from
Oct 8, 2012

Conversation

jonoxia
Copy link
Contributor

@jonoxia jonoxia commented Oct 8, 2012

Hey Dethe,
Here's a first pass at a fix for bug 6. The tab.ready() listener now looks at the history of the tab -- if the last two sites are A and B, then it knows you navigated from A to B, and it adds the "user_navigation" datatype to that link. The grapher simply doesn't display any links with "user_navigation" as a datatype.

This is not strictly correct, since it's possible that something made a tracking connection between A and B AND the user manually navigated between them. The new behavior will be to not show the link, when really we would like to show it. But this is still better than nothing?

The way this is implemented is not the most elegant -- I had to dip into XPCOM to examine the tab history, and then interate through the simpleEnumerator to get all the items even though I only want the next-to-last one. If you know of a better way, I'm open to suggestions.

Manual test case: go to mozilla.com. Click the link to Twitter at the bottom of the page. Open the Collusion graph: observe there's no link from Mozilla to Twitter.

@jonoxia
Copy link
Contributor Author

jonoxia commented Oct 8, 2012

Oops, discovered a regression introduced by my previous changeset. Fixed it.

dethe added a commit that referenced this pull request Oct 8, 2012
Fix for Issue #6 (first attempt)
@dethe dethe merged commit a1f4ca6 into mozilla:master Oct 8, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants