After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142143 - Epiphany stored URL's that you haven't explicitly visited in history
Epiphany stored URL's that you haven't explicitly visited in history
Status: RESOLVED INCOMPLETE
Product: epiphany
Classification: Core
Component: History
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 137848 313756 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-08 18:46 UTC by André Dahlqvist
Modified: 2010-02-12 15:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot showing the history window in Mozilla after visiting OSNews.com (23.01 KB, image/png)
2004-05-08 18:48 UTC, André Dahlqvist
  Details
Screenshot showing Epiphany's history window after visiting OSnews.com (28.84 KB, image/png)
2004-05-08 18:50 UTC, André Dahlqvist
  Details
port changes from mozilla (2.06 KB, patch)
2004-05-29 12:26 UTC, Christian Persch
none Details | Review
patch as committed to gnome-2-6 (1.90 KB, patch)
2004-05-29 19:21 UTC, Christian Persch
none Details | Review
proposed fix (762 bytes, patch)
2004-06-14 22:14 UTC, Christian Persch
none Details | Review
updated patch (1.42 KB, patch)
2004-06-15 14:16 UTC, Christian Persch
none Details | Review

Description André Dahlqvist 2004-05-08 18:46:05 UTC
[Using Epiphany 1.2.5]

When visiting a page with Epiphany it currently stores not only the URL you
visit, but also some other URL's that are unvoluntarily fetched (such as ad
related URL's) in the browser history. Mozilla only stores the URL you have
explicitly visited, which reduces history clutter (and makes going to a previous
site from the location bar quicker, since less URL's are shown there).

Below I will attach two screenshots - one from Mozilla and one from Epiphany -
that clearly should show the difference in behaviour between Mozilla and
Epiphany.  I have taken OSNews.com as an example site, but the same thing
happens on other sites as well.
Comment 1 André Dahlqvist 2004-05-08 18:48:03 UTC
Created attachment 27486 [details]
Screenshot showing the history window in Mozilla after visiting OSNews.com

As can be seen from this screenshot only the URL you explicitly visited -
namely osnews.com - is stored in Mozilla's history.
Comment 2 André Dahlqvist 2004-05-08 18:50:23 UTC
Created attachment 27487 [details]
Screenshot showing Epiphany's history window after visiting OSnews.com

Epiphany also stores two other URL's that were apparently fetched when
osnews.com was loaded. These are not useful to the user.
Comment 3 Christian Persch 2004-05-12 21:38:34 UTC
http://lxr.mozilla.org/seamonkey/source/xpfe/components/history/src/nsGlobalHistory.cpp#590
has a bunch of checks for that, and they were introduced with the latest API
changes in nsIGlobalHistory2/nsIBrowserHistory and not there before. Seems we
should just copy that, marco?
Comment 4 Marco Pesenti Gritti 2004-05-23 15:48:22 UTC
chpe please wait on this until I land mozilla-embed-strings branch (when 1.7 
is released)
Comment 5 Christian Persch 2004-05-29 12:25:38 UTC
*** Bug 137848 has been marked as a duplicate of this bug. ***
Comment 6 Christian Persch 2004-05-29 12:26:10 UTC
Created attachment 28145 [details] [review]
port changes from mozilla
Comment 7 Christian Persch 2004-05-29 19:21:23 UTC
Created attachment 28153 [details] [review]
patch as committed to gnome-2-6

I've committed something to gnome-2-6 branch which should fix this (this should
happen on moz >= 1.7* only). Will commit to HEAD after string api port;
attaching patch here for reference.
Comment 8 Ganesh (Novell) 2004-06-04 06:20:52 UTC
I understand from the above udpate that the above changes work fine only with
moz >=1.7*.
chpe: can you point out the corresponding Mozilla bug it depends on?. It would
be useful for the people who are releasing the products based on mozilla 1.6.
Comment 9 Marco Pesenti Gritti 2004-06-04 07:29:37 UTC
I'm a bit confused by Christian comment. There are no defines in the patch so it
should work also with mozilla 1.6. Christian did you mean that this bug should
be reproducable with mozilla >= 1.7 only ?
Comment 10 Christian Persch 2004-06-04 10:29:46 UTC
Does this problem even exist using mozilla 1.6 ?

As far as I know, the code I added in GlobalHistory existed in nsDocShell prior
to the nsIGlobalHistory2 introduction, see
http://bugzilla.mozilla.org/attachment.cgi?id=140724&action=view which is the
final patch on bug http://bugzilla.mozilla.org/show_bug.cgi?id=224829 .
Comment 11 André Dahlqvist 2004-06-04 12:02:31 UTC
I reported the bug with Epiphany compiled against Mozilla 1.6, so the problem
certainly exists there.
Comment 12 Christian Persch 2004-06-04 13:46:32 UTC
Ok, I think what needs to be done is to replace

NS_IMETHODIMP MozGlobalHistory::HidePage(const char *url)
{
        return NS_ERROR_NOT_IMPLEMENTED;

}

with a real implementation in GlobalHistory.cpp.
Comment 13 Marco Pesenti Gritti 2004-06-14 20:12:36 UTC
Christian, can you explain the status of this ? Is it fixed for mozilla 1.7  ?
Comment 14 Christian Persch 2004-06-14 22:14:52 UTC
Created attachment 28703 [details] [review]
proposed fix

Can someone who uses epiphany with mozilla 1.4, 1.5 or 1.6 please test this
patch?
Comment 15 Christian Persch 2004-06-14 22:15:56 UTC
Marco: I cannot repro this using 1.8a2, and the GlobalHistory code is the same
with 1.7.
Comment 16 Christian Persch 2004-06-14 22:17:01 UTC
The patch is only for gnome-2-6 branch, obviously.
Comment 17 Christian Persch 2004-06-15 14:16:56 UTC
Created attachment 28732 [details] [review]
updated patch

Seems we need to implement is for GlobalHistory2 too, it's called on redirects.
Comment 18 Ganesh (Novell) 2004-06-16 06:54:08 UTC
I had a patch which was very close to comment #14, that is working fine.  Is
there any specific testcase to test your updated patch?.

This what I did in the hide page:
I just called
ephy_history_remove_page (mGlobalHistory, url);
and implmented the ephy_history_remove_page(..) by calling ephy_node_unref(..)
[similar to yours]
Comment 19 Christian Persch 2004-06-20 08:05:04 UTC
Committed.

To test, use the URL from comment 1.
Comment 20 Christian Persch 2004-06-20 13:22:41 UTC
Re comment 17: it's not necessary to implement it on GlobalHistory2 (mozilla >=
1.7) after all, the only place that calls it is nsHistoryLoadListener.cpp which
doesn't get built (and isn't even updated for the API change). I've therefore
removed that again; only the case for mozilla <= 1.6 is really needed, i.e. the
patch from attachment 28703 [details] [review].
Comment 21 Christian Persch 2004-09-19 22:37:19 UTC
This patch has introduced the following problems:

- redirected pages doesn't show in autocompletion. So you type a page, it
redirects (happens for example on wikipedia.org), you want it again but it
doesn't autocomplete

- pages loaded in frames don't show in history (only the toplevel load shows)

Reopening.
Comment 22 Christian Persch 2004-10-13 10:55:16 UTC
Mass reassigning of Epiphany bugs to epiphany-maint@b.g.o
Comment 23 Raphael Slinckx 2005-08-18 12:44:31 UTC
*** Bug 313756 has been marked as a duplicate of this bug. ***
Comment 24 Christian Persch 2005-08-22 13:56:26 UTC
I've removed the redirected-url check because of dup bug 313756.
Comment 25 Christian Persch 2005-09-22 20:35:05 UTC
Some notes from irc:

tko there was a flag that indicated whether the page had been 'toplevel'
document (as opposed to iframes etc. as I understood it) . you only show
toplevel URLs in history searches
tko if you alread have a URL in history as non-toplevel, and it comes in again
with the toplevel flag set, upgrade it :)tko chpe, I update the history record
every time, but record toplevel = false only if toplevel was previously undefined
chpe and you omit !toplevel sites in the history window
tko yep
chpe should be relatively easy to port to ephy
tko now, if you see a URL as iframe, it's !toplevel and doesn't show up in
dialog. if you ever open the frame URL itself, the toplevel is recorded as TRUE
and will never get downgraded
tko and then of course there's the 'hide' flag which I was giving precedence,
but I forgot the semantics
tko I figured that it's better to record as much info as possible, then tweaking
the UI becomes easier
Comment 26 Javier Jardón (IRC: jjardon) 2009-08-12 21:44:28 UTC
You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you.

Can you please check again if the issue you reported here still happens in a recent version and update this report by adding a comment and adjusting the 'Version' field?

Again thank you for reporting this and sorry that it could not be fixed for the version you originally used here.

Without feedback this report will be closed as INCOMPLETE after 6 weeks.
Comment 27 Tobias Mueller 2010-02-12 15:38:05 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!