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

Issue 305103003: Fix for 'Simple Adblock' extension crashes (Closed)

Created:
6 years, 6 months ago by michaeln
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Visibility:
Public.

Description

When deleting a WebContents, keep SessionStorageNamespaces used in the tab alive until we receive an acknowledgment from the renderer that the renderer side constructs have been cleaned up. Otherwise we can receive messages from still executing content referring to sessions that were prematurely deleted. BUG=371304 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275383

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : RenderProcessHost can be a mock in unittests #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : rebase #

Total comments: 12

Patch Set 6 : jsbell's review comments #

Total comments: 8

Patch Set 7 #

Total comments: 1

Patch Set 8 : shell->Close() [looks like that resolved the test failures] #

Patch Set 9 : move the SessionStorageNamespaceMap typedef #

Patch Set 10 : rebased #

Patch Set 11 : #include <map> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -9 lines) Patch
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +50 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -7 lines 0 comments Download
M content/public/browser/session_storage_namespace.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A content/test/data/access-session-storage.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
michaeln
https://codereview.chromium.org/305103003/diff/40001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/305103003/diff/40001/content/browser/renderer_host/render_view_host_impl.cc#newcode1052 content/browser/renderer_host/render_view_host_impl.cc:1052: // cast doesn't work there. i'll have to do ...
6 years, 6 months ago (2014-06-02 20:13:39 UTC) #1
michaeln
ptal
6 years, 6 months ago (2014-06-03 00:52:22 UTC) #2
jsbell
I don't see any problems, but there are parts of the code I don't feel ...
6 years, 6 months ago (2014-06-03 16:56:39 UTC) #3
michaeln
https://codereview.chromium.org/305103003/diff/80001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/305103003/diff/80001/content/browser/renderer_host/render_process_host_impl.h#newcode188 content/browser/renderer_host/render_process_host_impl.h:188: // with mock hosts as input in test cases. ...
6 years, 6 months ago (2014-06-03 18:58:09 UTC) #4
michaeln1
thats odd, the title and description got squashed somehow?
6 years, 6 months ago (2014-06-03 19:44:44 UTC) #5
michaeln
james, can you please take a look https://codereview.chromium.org/305103003/diff/80001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/305103003/diff/80001/content/renderer/render_widget.cc#newcode709 content/renderer/render_widget.cc:709: RenderThread::Get()->Send(new ViewHostMsg_Close_ACK(routing_id_)); ...
6 years, 6 months ago (2014-06-03 23:16:57 UTC) #6
jsbell
lgtm with the latest change, but an OWNER review is necessary and a really good ...
6 years, 6 months ago (2014-06-03 23:29:30 UTC) #7
jamesr
I'm not a good reviewer for this change.
6 years, 6 months ago (2014-06-03 23:30:02 UTC) #8
michaeln
On 2014/06/03 23:30:02, jamesr wrote: > I'm not a good reviewer for this change. can ...
6 years, 6 months ago (2014-06-03 23:37:52 UTC) #9
michaeln
jochen, can you take a look please
6 years, 6 months ago (2014-06-03 23:57:09 UTC) #10
jochen (gone - plz use gerrit)
is it possible to write a test for this? I guess the user data will ...
6 years, 6 months ago (2014-06-04 08:16:24 UTC) #11
michaeln
On 2014/06/04 08:16:24, jochen wrote: > is it possible to write a test for this? ...
6 years, 6 months ago (2014-06-04 20:20:58 UTC) #12
michaeln
added a test, ptal https://codereview.chromium.org/305103003/diff/100001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/305103003/diff/100001/content/browser/renderer_host/render_process_host_impl.cc#newcode359 content/browser/renderer_host/render_process_host_impl.cc:359: public: On 2014/06/04 08:16:24, jochen ...
6 years, 6 months ago (2014-06-04 23:53:27 UTC) #13
jochen (gone - plz use gerrit)
lgtm with comment addressed https://codereview.chromium.org/305103003/diff/120001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/305103003/diff/120001/content/browser/renderer_host/render_process_host_impl.h#newcode20 content/browser/renderer_host/render_process_host_impl.h:20: #include "content/public/browser/navigation_controller.h" i think render ...
6 years, 6 months ago (2014-06-05 07:03:02 UTC) #14
michaeln
> https://codereview.chromium.org/305103003/diff/120001/content/browser/renderer_host/render_process_host_impl.h#newcode20 > content/browser/renderer_host/render_process_host_impl.h:20: #include > "content/public/browser/navigation_controller.h" > i think render process host including navigation ...
6 years, 6 months ago (2014-06-05 18:44:19 UTC) #15
michaeln
also i have to add the .html file to test/data
6 years, 6 months ago (2014-06-05 18:49:39 UTC) #16
michaeln
Hmmm... i think my test may have exposed some other bugs that can occur when ...
6 years, 6 months ago (2014-06-05 19:49:34 UTC) #17
michaeln
> I'm not going to be able to commit this test right now. Maybe its ...
6 years, 6 months ago (2014-06-05 20:37:42 UTC) #18
michaeln
@tsepez for view_messages.h review
6 years, 6 months ago (2014-06-05 22:28:02 UTC) #19
Tom Sepez
Messages themselves LGTM, but what happens if the renderer never acks? Could a compromised renderer ...
6 years, 6 months ago (2014-06-05 22:33:00 UTC) #20
michaeln
On 2014/06/05 22:33:00, Tom Sepez wrote: > Messages themselves LGTM, but what happens if the ...
6 years, 6 months ago (2014-06-05 22:35:46 UTC) #21
Tom Sepez
> nope, the ack doesn't affect a renderer processes lifetime in anyway Ok. Good. Thanks.
6 years, 6 months ago (2014-06-05 22:36:39 UTC) #22
michaeln
The CQ bit was checked by michaeln@chromium.org
6 years, 6 months ago (2014-06-05 23:36:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/305103003/200001
6 years, 6 months ago (2014-06-05 23:38:26 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 10:46:49 UTC) #25
Message was sent while issue was closed.
Change committed as 275383

Powered by Google App Engine
This is Rietveld 408576698