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

Issue 10835033: Only delete old frames when a new main frame navigation commits (Closed)

Created:
8 years, 4 months ago by jochen (gone - plz use gerrit)
Modified:
8 years, 4 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, Charlie Reis
Visibility:
Public.

Description

Only delete old frames when a new main frame navigation commits Also, use RVH* to identify frames, not the process id. when we run out of processes, several unrelated RVHs might share a process. BUG=136090, 139117 TEST=browser_tests:*WebNavigation*, unit_tests:FrameNavigation* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149161

Patch Set 1 #

Total comments: 4

Patch Set 2 : updates #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -72 lines) Patch
M chrome/browser/extensions/api/web_navigation/frame_navigation_state.h View 6 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/frame_navigation_state.cc View 5 chunks +31 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/frame_navigation_state_unittest.cc View 6 chunks +21 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 16 chunks +86 lines, -34 lines 2 comments Download
M chrome/test/data/extensions/api_test/webnavigation/test_getFrame.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
jochen (gone - plz use gerrit)
plz review
8 years, 4 months ago (2012-07-30 11:45:46 UTC) #1
Matt Perry
https://chromiumcodereview.appspot.com/10835033/diff/1/chrome/browser/extensions/api/web_navigation/frame_navigation_state.h File chrome/browser/extensions/api/web_navigation/frame_navigation_state.h (right): https://chromiumcodereview.appspot.com/10835033/diff/1/chrome/browser/extensions/api/web_navigation/frame_navigation_state.h#newcode37 chrome/browser/extensions/api/web_navigation/frame_navigation_state.h:37: content::RenderViewHost* render_view_host; Is render_view_host guaranteed to outlive a FrameID? ...
8 years, 4 months ago (2012-07-30 11:52:43 UTC) #2
jochen (gone - plz use gerrit)
https://chromiumcodereview.appspot.com/10835033/diff/1/chrome/browser/extensions/api/web_navigation/frame_navigation_state.h File chrome/browser/extensions/api/web_navigation/frame_navigation_state.h (right): https://chromiumcodereview.appspot.com/10835033/diff/1/chrome/browser/extensions/api/web_navigation/frame_navigation_state.h#newcode37 chrome/browser/extensions/api/web_navigation/frame_navigation_state.h:37: content::RenderViewHost* render_view_host; On 2012/07/30 11:52:43, Matt Perry wrote: > ...
8 years, 4 months ago (2012-07-30 15:33:17 UTC) #3
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10835033/diff/2002/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): https://chromiumcodereview.appspot.com/10835033/diff/2002/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode320 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:320: SendErrorEvents(web_contents(), render_view_host); Technically this is dangerous. This notification ...
8 years, 4 months ago (2012-07-31 09:58:09 UTC) #4
jochen (gone - plz use gerrit)
8 years, 4 months ago (2012-07-31 10:12:32 UTC) #5
https://chromiumcodereview.appspot.com/10835033/diff/2002/chrome/browser/exte...
File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right):

https://chromiumcodereview.appspot.com/10835033/diff/2002/chrome/browser/exte...
chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:320:
SendErrorEvents(web_contents(), render_view_host);
I agree that it's a bit borderline :-/

Powered by Google App Engine
This is Rietveld 408576698