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

Issue 921443003: Fix RenderFrameCreated and RenderFrameDeleted WebContentsObserver methods (Closed)

Created:
5 years, 10 months ago by nasko
Modified:
5 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix RenderFrameCreated and RenderFrameDeleted WebContentsObserver methods The RenderFrameCreated and RenderFrameDeleted observer methods aren't matching the lifetime of the renderer-side RenderFrame object. This CL fixes the methods to be called at the right times to match. BUG=450799, 425397 Committed: https://crrev.com/b21fe487807106de1344974db463ec27a370b995 Cr-Commit-Position: refs/heads/master@{#317792}

Patch Set 1 #

Patch Set 2 : Fix Geolocation unit tests to create TestWebContents instead of regular WebContents. #

Total comments: 33

Patch Set 3 : Fixes. #

Total comments: 6

Patch Set 4 : Fixed nits. #

Patch Set 5 : Fix FrameDeleted consistency checker. #

Total comments: 1

Patch Set 6 : Remove checks from FrameDeleted #

Patch Set 7 : Fix for autofill test. #

Total comments: 2

Patch Set 8 : Undo comment change in autofill. #

Patch Set 9 : Rebase on ToT #

Patch Set 10 : Rebase on ToT. #

Patch Set 11 : Remove superclass call in OnPopupHidden. #

Patch Set 12 : Delete pending callbacks in ManifestManagerHost destructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -73 lines) Patch
M chrome/browser/background/background_contents.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_tree_unittest.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -9 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M content/browser/manifest/manifest_manager_host.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -21 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/test/web_contents_observer_sanity_checker.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/public/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 5 11 chunks +32 lines, -25 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -1 line 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (17 generated)
nasko
Hey Charlie, Can you review this CL for me? It only fixes RenderFrameCreated/Deleted and disables ...
5 years, 10 months ago (2015-02-11 18:15:44 UTC) #2
Charlie Reis
Wow, this is heroic. I can see why it was so difficult! I've got some ...
5 years, 10 months ago (2015-02-12 00:29:31 UTC) #3
nasko
Yes, indeed this should fix 425397, at least the consistency checker says so : ) ...
5 years, 10 months ago (2015-02-12 17:52:27 UTC) #4
Charlie Reis
Thanks! LGTM. https://codereview.chromium.org/921443003/diff/20001/content/public/test/web_contents_observer_sanity_checker.cc File content/public/test/web_contents_observer_sanity_checker.cc (right): https://codereview.chromium.org/921443003/diff/20001/content/public/test/web_contents_observer_sanity_checker.cc#newcode117 content/public/test/web_contents_observer_sanity_checker.cc:117: AssertRenderFrameExists(render_frame_host); On 2015/02/12 17:52:26, nasko wrote: > ...
5 years, 10 months ago (2015-02-12 23:51:26 UTC) #5
nasko
Nits fixed. Adding OWNERS reviewers atwilson@ - chrome/browser/background/background_contents.cc mvanouwerkerk@ - chrome/browser/geolocation/geolocation_permission_context_unittest.cc https://codereview.chromium.org/921443003/diff/40001/content/browser/frame_host/frame_tree_unittest.cc File content/browser/frame_host/frame_tree_unittest.cc (right): ...
5 years, 10 months ago (2015-02-13 00:18:52 UTC) #8
nasko
Really adding mvanouwerkerk@ for OWNERS review.
5 years, 10 months ago (2015-02-13 00:19:35 UTC) #10
Michael van Ouwerkerk
geolocation_permission_context_unittest.cc lgtm
5 years, 10 months ago (2015-02-13 10:56:39 UTC) #11
Andrew T Wilson (Slow)
lgtm
5 years, 10 months ago (2015-02-13 13:22:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921443003/60001
5 years, 10 months ago (2015-02-13 15:16:54 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/24830)
5 years, 10 months ago (2015-02-13 16:14:41 UTC) #16
Charlie Reis
The change to web_contents_observer_sanity_checker.cc in patch set 5 LGTM, with a note. https://codereview.chromium.org/921443003/diff/80001/content/public/test/web_contents_observer_sanity_checker.cc File content/public/test/web_contents_observer_sanity_checker.cc ...
5 years, 10 months ago (2015-02-13 17:15:19 UTC) #18
nasko
Adding estade@ for OWNERS review of chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc
5 years, 10 months ago (2015-02-13 22:07:50 UTC) #21
Evan Stade
autofill lgtm https://codereview.chromium.org/921443003/diff/120001/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc File chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc (right): https://codereview.chromium.org/921443003/diff/120001/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc#newcode93 chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc:93: // destroy it when the frame is ...
5 years, 10 months ago (2015-02-13 22:09:21 UTC) #22
nasko
https://codereview.chromium.org/921443003/diff/120001/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc File chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc (right): https://codereview.chromium.org/921443003/diff/120001/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc#newcode93 chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc:93: // destroy it when the frame is deleted. On ...
5 years, 10 months ago (2015-02-13 22:11:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921443003/140001
5 years, 10 months ago (2015-02-13 22:12:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/26445)
5 years, 10 months ago (2015-02-13 23:59:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921443003/200001
5 years, 10 months ago (2015-02-23 22:13:01 UTC) #31
nasko
Adding mlamouri@ for FYI about changes in content/browser/manifest/manifest_manager_host.cc.
5 years, 10 months ago (2015-02-24 02:32:41 UTC) #33
mlamouri (slow - plz ping)
lgtm
5 years, 10 months ago (2015-02-24 13:56:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921443003/220001
5 years, 10 months ago (2015-02-24 13:57:02 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 10 months ago (2015-02-24 14:16:06 UTC) #38
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 14:16:53 UTC) #39
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b21fe487807106de1344974db463ec27a370b995
Cr-Commit-Position: refs/heads/master@{#317792}

Powered by Google App Engine
This is Rietveld 408576698