In Page Info numbers for "visited today" are way too high

Bug #264745 reported by Jan Rüegg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox

When going to "Tools -> Page Info" under the Tab Security, Firefox shows me (for example on the google web page):

Have I visited this web site before today? Yes, 9910 times

These numbers are always very high... Maybe this is how many times this web site was visited before *ever*, but sure enough not *today*.

Ubuntu: 8.04.1
Firefox: 3.0.1+build1+nobinonly-0ubuntu0.8.04.3

Revision history for this message
In , Johnath (johnath) wrote :

To be clear then:

 - The primary intent of the line is to communicate to the user whether this is a site they have visited "in the past," BUT
 - It's relatively straightforward for sites to build magic that gets their name added to history hundreds of times, either to deliberately undermine history-based UI, or just because they're buggy, SO
 - We want to use a test which removes that possibility by looking for history entries that existed before today, since those are substantially more work to inject, enough so that the "attack" (such as it is) is unlikely to occur.

Hence, the intended grouping (and maybe the low bar for a string recommendation here) is:

   "Have I visited this website (before today)?"

We don't want to drop the temporal reference ("Have I visited this website before?" or "Have I visited this website in the past?") because those will make our behaviour seem buggy on newly visited sites, where visits won't immediately show up.

Other suggestions are welcome.

Revision history for this message
In , Ventnor-bugzilla (ventnor-bugzilla) wrote :

"Have I visited this web site prior to today?"

Revision history for this message
Jan Rüegg (rggjan) wrote : Firefox Page Info shows "9910" for "visited today"

Binary package hint: firefox

When going to "Tools -> Page Info" under the Tab Security, Firefox shows me (for example on the google web page):

Have I visited this web site before today? Yes, 9910 times

These numbers are always very high... Maybe this is how many times this web site was visited before *ever*, but sure enough not *today*.

Ubuntu: 8.04.1
Firefox: 3.0.1+build1+nobinonly-0ubuntu0.8.04.3

Revision history for this message
Andreas Moog (ampelbein) wrote : Reassigning issue to firefox-3

Thank you for your bugreport. Since this seems to be an issue with
version 3 of the firefox browser, I'm reassigning the package.

 affects ubuntu/firefox
 status invalid

 affects ubuntu/firefox-3.0
 status new

Changed in firefox:
status: New → Invalid
Revision history for this message
In , Florian-queze (florian-queze) wrote :

*** Bug 456198 has been marked as a duplicate of this bug. ***

Revision history for this message
Andreas Moog (ampelbein) wrote : Re: Firefox Page Info shows "9910" for "visited today"

Thank you for taking the time to report this bug and helping to make Ubuntu better. I reported this issue upstream, you can track the status and make comments here: https://bugzilla.mozilla.org/show_bug.cgi?id=456198

Changed in firefox-3.0:
importance: Undecided → Low
status: New → Confirmed
status: Confirmed → Triaged
Changed in firefox:
status: Unknown → New
Revision history for this message
Andreas Moog (ampelbein) wrote :

Upstream comment:
It's the number BEFORE today, that is yesterday and all the days before. Not
today.

The current phrase might be grammatically correct, but it sounds a bit weird,
especially for people that don't speak English as their first language (we seem
to ignore the word 'before'). I think it should be rephrased as "Have I visited
this web site in the past, (not counting today)". Or just count all the visits
together, today included.

Changed in firefox:
status: New → Invalid
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Reassigning to right upstream bug.

Changed in firefox:
status: Invalid → Unknown
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , L10n-mozilla (l10n-mozilla) wrote :

Can we get this fixed in 3.7? Sounds like a nice bug to get started.

Revision history for this message
In , A-topal (a-topal) wrote :

Right, I'll take it :)

Changed in firefox:
status: Confirmed → In Progress
Revision history for this message
In , A-topal (a-topal) wrote :

Created attachment 419784
Michael's wording

I took Michaels wording, since it's clear and doesn't need parentheses.

BTW: my first patch to the product after 7 years in the project :)

Revision history for this message
In , Johnath (johnath) wrote :

Comment on attachment 419784
Michael's wording

>diff -r e9f33e85a979 browser/locales/en-US/chrome/browser/pageInfo.dtd
> <!ENTITY securityView.privacy.header "Privacy &amp; History">
>-<!ENTITY securityView.privacy.history "Have I visited this web site before today?">
>+<!ENTITY securityView.privacy.history2 "Have I visited this web site prior to today?">
> <!ENTITY securityView.privacy.cookies "Is this web site storing information (cookies) on my computer?">

Rev'ng the entity here is sort of a fine line, we're not changing the semantic meaning so much as clarifying it, but I guess it will likely cause the other english-based locales to update themselves. If you *do* rev the entity though, then you need to also update the source code anywhere that entity is used, so that it can resolve the entity once again.

Does that make sense?

MXR says you've only got one place to update anyhow: http://mxr.mozilla.org/mozilla-central/search?string=securityView.privacy.history

Revision history for this message
In , L10n-mozilla (l10n-mozilla) wrote :

Yea, I wouldn't rev the entity here.

Revision history for this message
In , A-topal (a-topal) wrote :

Created attachment 422269
Patch without rev change

Wow, I screwed up a one liner!

Hope it works better this time ;)

Revision history for this message
In , A-topal (a-topal) wrote :

Created attachment 422270
Patch without rev change AND correct indentation

Well, third time is a charm, or something :)

Revision history for this message
In , Dao (dao) wrote :
Revision history for this message
In , Mozilla-bugs-alyoung (mozilla-bugs-alyoung) wrote :

Verified Fixed.

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.3a1pre) Gecko/20100120 Minefield/3.7a1pre (.NET CLR 3.5.30729) ID:20100120043108

Changed in firefox:
status: In Progress → Fix Released
Changed in firefox:
importance: Unknown → Medium
no longer affects: firefox-3.0 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.