| Index: webkit/glue/webframeloaderclient_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webframeloaderclient_impl.cc (revision 30764)
|
| +++ webkit/glue/webframeloaderclient_impl.cc (working copy)
|
| @@ -628,9 +628,14 @@
|
| DCHECK(ds) << "DataSource NULL when navigating to reference fragment";
|
| if (ds) {
|
| GURL url = ds->request().url();
|
| - GURL chain_end = ds->GetEndOfRedirectChain();
|
| - ds->ClearRedirectChain();
|
| + GURL chain_end;
|
|
|
| + if (ds->HasRedirectChain()){
|
| + chain_end = ds->GetEndOfRedirectChain();
|
| + ds->ClearRedirectChain();
|
| + }
|
| +
|
| +
|
| // Figure out if this location change is because of a JS-initiated client
|
| // redirect (e.g onload/setTimeout document.location.href=).
|
| // TODO(timsteele): (bugs 1085325, 1046841) We don't get proper redirect
|
|
|