Bug 1077637 - Actually set the visited history correctly. r=kgrandon
Merge pull request #24990 from daleharvey/1077637

Bug 1077637 - Actually set the visited history correctly.