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

Issue 18500005: Fix SessionStorage confusion between RenderViewHostImpl and NavigationController. (Closed)

Created:
7 years, 5 months ago by marja
Modified:
7 years, 5 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, felt, shishir+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, mad+watch_chromium.org, joi+watch-content_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, melevin+watch_chromium.org, jam, dominich, marja+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, tburkard+watch_chromium.org, gavinp+prer_chromium.org, jfweitz+watch_chromium.org, Jered, feature-media-reviews_chromium.org, donnd+watch_chromium.org, dominich+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, michaeln
Visibility:
Public.

Description

Fix SessionStorage confusion between RenderViewHostImpl and NavigationController. Both RenderViewHostImpl and NavigationController had SessionStorageNamespace*, and under some circumstances, they pointed to different SessionStorageNamespaces* which is wrong. This also cleans up some storage partition code, since we're not going to have multiple SessionStorageNamespaces. For more information, see bug. BUG=138152 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212218

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : fixes #

Patch Set 4 : style #

Total comments: 4

Patch Set 5 : Code review (jochen) #

Patch Set 6 : fix (NavigationControllerImpl::CopyStateFrom) and test fix #

Patch Set 7 : ditto; still wasn't right #

Total comments: 10

Patch Set 8 : rebased #

Patch Set 9 : code review (ajwong) #

Patch Set 10 : code review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -236 lines) Patch
M chrome/browser/extensions/activity_log/activity_log_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_unittest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/predictors/autocomplete_action_predictor.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/predictors/autocomplete_action_predictor.cc View 1 2 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/prerender/prerender_local_predictor.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/sessions/session_restore_browsertest.cc View 1 3 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service_helper.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_tabrestore.cc View 3 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.h View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_factory.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -6 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 chunks +1 line, -13 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 4 chunks +6 lines, -24 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 7 8 9 4 chunks +13 lines, -54 lines 1 comment Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -20 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 chunks +6 lines, -7 lines 1 comment Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -15 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 4 5 6 7 2 chunks +1 line, -13 lines 0 comments Download
M content/public/browser/web_contents.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/test/test_render_view_host_factory.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/test/test_render_view_host_factory.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
marja
jochen, ajwong, ptal. jochen: everything ajwong: pls review that the storage partition cleanup is done ...
7 years, 5 months ago (2013-07-15 13:48:44 UTC) #1
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/18500005/diff/25001/content/browser/renderer_host/render_view_host_delegate.h File content/browser/renderer_host/render_view_host_delegate.h (right): https://codereview.chromium.org/18500005/diff/25001/content/browser/renderer_host/render_view_host_delegate.h#newcode415 content/browser/renderer_host/render_view_host_delegate.h:415: virtual SessionStorageNamespace* GetSessionStorageNamespace(); Please add a comment what ...
7 years, 5 months ago (2013-07-15 14:07:06 UTC) #2
marja
thx for review https://codereview.chromium.org/18500005/diff/25001/content/browser/renderer_host/render_view_host_delegate.h File content/browser/renderer_host/render_view_host_delegate.h (right): https://codereview.chromium.org/18500005/diff/25001/content/browser/renderer_host/render_view_host_delegate.h#newcode415 content/browser/renderer_host/render_view_host_delegate.h:415: virtual SessionStorageNamespace* GetSessionStorageNamespace(); On 2013/07/15 14:07:06, ...
7 years, 5 months ago (2013-07-15 14:16:45 UTC) #3
marja
(michaeln, fyi)
7 years, 5 months ago (2013-07-15 14:17:20 UTC) #4
awong
LGTM w/ 1 nit + 2 questions about the status quo implementation. https://codereview.chromium.org/18500005/diff/56001/chrome/browser/sessions/session_service.cc File chrome/browser/sessions/session_service.cc ...
7 years, 5 months ago (2013-07-16 18:56:01 UTC) #5
marja
thanks for review! https://codereview.chromium.org/18500005/diff/56001/chrome/browser/sessions/session_service.cc File chrome/browser/sessions/session_service.cc (right): https://codereview.chromium.org/18500005/diff/56001/chrome/browser/sessions/session_service.cc#newcode1742 chrome/browser/sessions/session_service.cc:1742: // isolated apps which won't have ...
7 years, 5 months ago (2013-07-17 09:33:28 UTC) #6
marja
joi: I'm changing some content/public interfaces here, could you review? All the changes are because ...
7 years, 5 months ago (2013-07-17 09:38:09 UTC) #7
awong
https://codereview.chromium.org/18500005/diff/56001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): https://codereview.chromium.org/18500005/diff/56001/content/browser/web_contents/navigation_controller_impl.cc#newcode1217 content/browser/web_contents/navigation_controller_impl.cc:1217: if (!source.session_storage_namespace_.get()) On 2013/07/17 09:33:29, marja wrote: > On ...
7 years, 5 months ago (2013-07-17 09:44:02 UTC) #8
awong
BTW, whatever you decide with respect to NULLs still has my LGTM. On Wed, Jul ...
7 years, 5 months ago (2013-07-17 10:02:53 UTC) #9
marja
https://codereview.chromium.org/18500005/diff/56001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): https://codereview.chromium.org/18500005/diff/56001/content/browser/web_contents/navigation_controller_impl.cc#newcode1217 content/browser/web_contents/navigation_controller_impl.cc:1217: if (!source.session_storage_namespace_.get()) On 2013/07/17 09:44:08, awong wrote: > On ...
7 years, 5 months ago (2013-07-17 11:02:59 UTC) #10
Jói
//content/public LGTM.
7 years, 5 months ago (2013-07-17 13:42:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/18500005/87001
7 years, 5 months ago (2013-07-17 13:45:00 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=15643
7 years, 5 months ago (2013-07-17 14:02:22 UTC) #13
marja
Ahh, I still need OWNERS since OWNERS of src is no longer *. sky, could ...
7 years, 5 months ago (2013-07-17 14:16:46 UTC) #14
sky
content/test LGTM
7 years, 5 months ago (2013-07-17 15:56:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/18500005/87001
7 years, 5 months ago (2013-07-17 20:39:06 UTC) #16
commit-bot: I haz the power
Change committed as 212218
7 years, 5 months ago (2013-07-18 02:43:01 UTC) #17
awong
7 years, 5 months ago (2013-07-22 22:35:32 UTC) #18
https://codereview.chromium.org/18500005/diff/87001/content/browser/web_conte...
File content/browser/web_contents/navigation_controller_impl.cc (right):

https://codereview.chromium.org/18500005/diff/87001/content/browser/web_conte...
content/browser/web_contents/navigation_controller_impl.cc:1367:
->GetDOMStorageContext()));
Ah Hah! I think this is the bug.  We should still take in the SiteInstance.

https://codereview.chromium.org/18500005/diff/87001/content/browser/web_conte...
File content/browser/web_contents/render_view_host_manager.cc (right):

https://codereview.chromium.org/18500005/diff/87001/content/browser/web_conte...
content/browser/web_contents/render_view_host_manager.cc:86: routing_id,
main_frame_routing_id, false));
Here we still need GetSessionStorageNamespace for a given site_instance

Powered by Google App Engine
This is Rietveld 408576698