summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/navigation_controller.cc
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 01:28:17 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 01:28:17 +0000
commit7ec6f3878bd653c52b69f45936c4aa5e4eeaee90 (patch)
tree168e956dea7e7e316dbd30825f2c33c1197353ce /content/browser/tab_contents/navigation_controller.cc
parenta46bcef82b29d30836a0f26226e3d4aca4fa9612 (diff)
downloadchromium_src-7ec6f3878bd653c52b69f45936c4aa5e4eeaee90.zip
chromium_src-7ec6f3878bd653c52b69f45936c4aa5e4eeaee90.tar.gz
chromium_src-7ec6f3878bd653c52b69f45936c4aa5e4eeaee90.tar.bz2
Get more crash data to track down a bug.
BUG=102408 TEST=More data in OnTempCrashWithData dumps. Review URL: http://codereview.chromium.org/8527014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller.cc')
-rw-r--r--content/browser/tab_contents/navigation_controller.cc22
1 files changed, 14 insertions, 8 deletions
diff --git a/content/browser/tab_contents/navigation_controller.cc b/content/browser/tab_contents/navigation_controller.cc
index d234210..40935b2 100644
--- a/content/browser/tab_contents/navigation_controller.cc
+++ b/content/browser/tab_contents/navigation_controller.cc
@@ -674,17 +674,23 @@ content::NavigationType NavigationController::ClassifyNavigation(
LOG(ERROR) << "terminating renderer for bad navigation: " << params.url;
UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_NC"));
- // Temporary code so we can get more information:
+ // Temporary code so we can get more information. Format:
+ // http://url/foo.html#page1#max3#frame1#ids:2,x,3
std::string temp = params.url.spec();;
- temp.append("#");
- temp.append(params.referrer.spec());
- temp.append("#");
+ temp.append("#page");
temp.append(base::IntToString(params.page_id));
- for (int i = static_cast<int>(entries_.size()) - 1; i >= 0; --i) {
- if (entries_[i]->site_instance() == tab_contents_->GetSiteInstance()) {
- temp.append("#");
+ temp.append("#max");
+ temp.append(base::IntToString(tab_contents_->GetMaxPageID()));
+ temp.append("#frame");
+ temp.append(base::IntToString(params.frame_id));
+ temp.append("#ids");
+ for (int i = 0; i < static_cast<int>(entries_.size()); ++i) {
+ // Append all same-process page_ids (with placeholders for out of process)
+ if (entries_[i]->site_instance() == tab_contents_->GetSiteInstance())
temp.append(base::IntToString(entries_[i]->page_id()));
- }
+ else
+ temp.append("x");
+ temp.append(",");
}
GURL url(temp);
tab_contents_->render_view_host()->Send(new ViewMsg_TempCrashWithData(url));