Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: chrome_frame/chrome_active_document.cc

Issue 6546081: Fix for the chrome frame anchor url navigation test failures. Fix is to appen... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_active_document.cc
===================================================================
--- chrome_frame/chrome_active_document.cc (revision 75656)
+++ chrome_frame/chrome_active_document.cc (working copy)
@@ -250,6 +250,17 @@
DCHECK(info);
if (info && !info->GetUrl().empty()) {
url = info->GetUrl();
+ if (mgr) {
+ // If the original URL contains an anchor, then the URL queried
+ // from the protocol sink wrapper does not contain the anchor. To
+ // workaround this we retrieve the anchor from the navigation manager
+ // and append it to the url retrieved from the protocol sink wrapper.
+ GURL url_for_anchor(mgr->url());
+ if (url_for_anchor.has_ref()) {
+ url += L"#";
+ url += UTF8ToWide(url_for_anchor.ref());
+ }
+ }
} else {
// If the original URL contains an anchor, then the URL queried
// from the moniker does not contain the anchor. To workaround
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698