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

Unified Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 326015: First attempt at fixing a crash that occurs when we get into WebFrameLoaderCl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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: webkit/glue/webframeloaderclient_impl.cc
===================================================================
--- webkit/glue/webframeloaderclient_impl.cc (revision 30460)
+++ webkit/glue/webframeloaderclient_impl.cc (working copy)
@@ -495,8 +495,11 @@
ASSERT(ds); // Should not be null when navigating to a reference fragment!
if (ds) {
KURL url = webkit_glue::WebURLToKURL(ds->request().url());
- KURL chain_end = ds->endOfRedirectChain();
- ds->clearRedirectChain();
+ KURL chain_end;
+ if (ds->hasRedirectChain()) {
+ chain_end = ds->endOfRedirectChain();
+ ds->clearRedirectChain();
+ }
// Figure out if this location change is because of a JS-initiated client
// redirect (e.g onload/setTimeout document.location.href=).
« 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