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

Issue 159887: Ensure that we never call into WebCore::Page static methods when Page constru... (Closed)

Created:
11 years, 4 months ago by dglazkov
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, jam, Ben Goodger (Google)
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

Ensure that we never call into WebCore::Page static methods when Page constructor hasn't been called. This is a top crash for Mac right now. The crash occurs because the static table of all pages in the renderer is initialized in WebCore:: Page constructor, and if we attempt to access this table before the Page was created (i.e. before WebView::Create is called), we get into a crashy situation. I am really not sure how to reproduce this, but I can defend against the situation. BUG=17555 R=darin TEST=unable to repro, speculative fix. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22540

Patch Set 1 #

Patch Set 2 : Use an explicit notification instead. #

Patch Set 3 : ... and with all relevant files. #

Patch Set 4 : now with comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M chrome/browser/renderer_host/browser_render_process_host.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/visitedlink_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
dglazkov
11 years, 4 months ago (2009-08-05 00:06:14 UTC) #1
darin (slow to review)
LGTM
11 years, 4 months ago (2009-08-05 00:09:16 UTC) #2
dglazkov
I know you lgtm'd it, but I was unhappy with overloading the meaning of RenderWidgetHost::renderer_initialized_, ...
11 years, 4 months ago (2009-08-05 18:41:50 UTC) #3
darin (slow to review)
11 years, 4 months ago (2009-08-05 20:09:08 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698