Author: cosimoc
Date: Fri Feb 15 10:34:48 2008
New Revision: 7946
URL: http://svn.gnome.org/viewvc/epiphany?rev=7946&view=rev
Log:
Make Go Up recognize HTML anchors. Bug #335631.
Modified:
trunk/embed/mozilla/mozilla-embed.cpp
Modified: trunk/embed/mozilla/mozilla-embed.cpp
==============================================================================
--- trunk/embed/mozilla/mozilla-embed.cpp (original)
+++ trunk/embed/mozilla/mozilla-embed.cpp Fri Feb 15 10:34:48 2008
@@ -428,8 +428,18 @@
nsCString encoding;
rv = membed->priv->browser->GetEncoding (encoding);
if (NS_FAILED (rv)) return FALSE;
-
+
+ /* Check for HTML anchors */
nsCOMPtr<nsIURI> uri;
+ const char *anchor = strrchr (aUri, '#');
+ if (anchor)
+ {
+ aParent.Assign (aUri);
+ aParent.SetLength (anchor - aUri);
+
+ return TRUE;
+ }
+
rv = EphyUtils::NewURI (getter_AddRefs(uri), nsCString(aUri),
encoding.get());
if (NS_FAILED(rv) || !uri) return FALSE;
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.