Closed
Bug 425563
Opened 16 years ago
Closed 16 years ago
Clicked links not colored as visited, or visited color forgotten after hard refresh
Categories
(Firefox :: Bookmarks & History, defect, P2)
Firefox
Bookmarks & History
Tracking
()
VERIFIED
FIXED
Firefox 3
People
(Reporter: stevee, Assigned: mak)
References
()
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
4.09 KB,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
5.01 KB,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008032523 Minefield/3.0b5pre ID:2008032523 1. New profile, start firefox 2. Visit http://tinderbox.mozilla.org/showbuilds.cgi?tree= 3. In the 'guilty' column, left click on a name. A translucent popup appears 4. Left click on some white-space in the main page to dismiss the popup. Note the name you clicked on has changed colour to indicate it has been visited 5. Press CTRL+R Expected: - Page reloads from web server, but the name you clicked remains coloured as per a visited link Actual: - Page reloads but the name you clicked is not coloured to indicate you've clicked it previously. Works: 20080326_2045_firefox-3.0pre.en-US.win32 Broken: 20080326_2223_firefox-3.0pre.en-US.win32 Checkins to module PhoenixTinderbox between 2008-03-26 20:45 and 2008-03-26 22:22 : http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1206589500&maxdate=1206595379 Bug 423514? Bug 416313? CC'ng Jesse and Mak77. (I also see a similar problem on http://hourly-archive.localgho.st/ when right-clicking on one of the .zip files and choosing Save As. Most of the time the file starts downloading, but the link isn't coloured appropriately.)
Flags: blocking1.9?
Assignee | ||
Comment 1•16 years ago
|
||
(In reply to comment #0) > (I also see a similar problem on http://hourly-archive.localgho.st/ when > right-clicking on one of the .zip files and choosing Save As. Most of the time > the file starts downloading, but the link isn't coloured appropriately.) this is normal since downloads are not considered in visit_count
Assignee | ||
Comment 2•16 years ago
|
||
the first is a popup with a dhtml content, so again i doubt it is considered a visit by the current system... previously visit_count was bogus, while now it counts real visits. link coloring is based on that
Blocks: 416313
Component: General → Places
Flags: blocking1.9?
Product: Core → Firefox
QA Contact: general → places
Comment 3•16 years ago
|
||
There is something wrong with the concept of marking 'read' linked to visit count. 1. Go here: http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox 2. Find a checkin and in the 'Guilty' column click the Name 3. Note you get the dhtml pop-up you refer to with 4 links...Click any link to 'visit' then when done click 'back' note that the link is marked 'read' 4. click outside the box to dismiss and note that the Name is marked 'read' 5. Now refresh the page and note the Name is not marked 'read' anymore 6. click the Name and note that the pop-up still has the link marked "read" The Guilty column is the only column losing the 'read' marker. If you click the time of the checkin it is marked 'read' and a refresh does not clear the 'read' marker... so something is not right IMO, its been working this way for as long as I've been working with Firefox/Minefield and to remove the 'read' marker makes looking for checkins from the last time you looked, i.e. relying on the 'read' name the last time you looked, to find new checkins is counter-productive as to where I last looked...now I can't find it... Same argument goes for downloads, not marking them as 'read' is counter-productive, how are we to tell if we have already downloaded a certain file in a long list of files ? Marking as 'read' has never cared about visit count before AFAIK since its something new with 'Places', so IMO the 'visit count' should not be making the determinination if the item has been visited. Any click on anything is 'visited', you clicked it... mark it so!
Assignee | ||
Comment 4•16 years ago
|
||
we could replace the query with SELECT h.id FROM moz_places h WHERE h.url ?1 AND EXISTS (SELECT id FROM moz_historyvisits WHERE place_id = h.id LIMIT 1) ; from my testing the actual query speed is about the same SELECT id, visit_count, typed, hidden FROM moz_places WHERE url = ?1 ;
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•16 years ago
|
||
forgot an header this will check for every transition type, should be ok also for transition_embed since we are asking if an uristring has been already visited, so also an embed visit could be valid here
Attachment #312255 -
Attachment is obsolete: true
Attachment #312259 -
Flags: review?(dietrich)
Assignee | ||
Updated•16 years ago
|
Flags: blocking-firefox3?
Updated•16 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Priority: -- → P2
Comment 6•16 years ago
|
||
requesting in-litmus?, we need regression tests for link coloring for each of the transition types.
Flags: in-litmus?
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Firefox 3
Comment 7•16 years ago
|
||
Comment on attachment 312259 [details] [diff] [review] patch looks fine, r=me.
Attachment #312259 -
Flags: review?(dietrich) → review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 8•16 years ago
|
||
Checking in toolkit/components/places/src/nsNavHistory.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp new revision: 1.283; previous revision: 1.282 done Checking in toolkit/components/places/src/nsNavHistory.h; /cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.h,v <-- nsNavHistory.h new revision: 1.154; previous revision: 1.153 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Summary: Clicked links not coloured as visited, or visited colour forgotten after hard refresh → Clicked links not colored as visited, or visited color forgotten after hard refresh
Reporter | ||
Comment 9•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008032900 Minefield/3.0pre ID:2008032900 --> VERIFIED Thanks Marco!
Status: RESOLVED → VERIFIED
Comment 10•16 years ago
|
||
this is easily tested via xpcshell, and should've been caught in tests for bug 416313.. marco, please add an automated test for this fix.
Flags: in-litmus? → in-testsuite?
Assignee | ||
Comment 11•16 years ago
|
||
here is the unit test, check that all transitions are marked as visited, andthat visit_count does not count embed and download
Attachment #312874 -
Flags: review?(dietrich)
Comment 12•16 years ago
|
||
Comment on attachment 312874 [details] [diff] [review] unit test r=me, thanks!
Attachment #312874 -
Flags: review?(dietrich) → review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 13•16 years ago
|
||
Checking in toolkit/components/places/tests/unit/test_425563.js; /cvsroot/mozilla/toolkit/components/places/tests/unit/test_425563.js,v <-- test_425563.js initial revision: 1.1 done
Flags: in-testsuite? → in-testsuite+
Keywords: checkin-needed
Comment 14•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in
before you can comment on or make changes to this bug.
Description
•