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

Issue 10823169: Another attempt at fixing dead frames being tracked by webNavigation (Closed)

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

Description

Another attempt at fixing dead frames being tracked by webNavigation - when commiting a main frame load (non fragment/history state), cancel old iframes - when a cross process navigation is cancelled, send error events for that RVH Also in this CL - don't incorrectly set client_redirect on history state updates BUG=139117 TEST=ExtensionApiTest.WebNavigationCrossProcess Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150533

Patch Set 1 #

Total comments: 2

Patch Set 2 : updates #

Patch Set 3 : updates #

Total comments: 25

Patch Set 4 : updates #

Patch Set 5 : updates #

Patch Set 6 : updates #

Patch Set 7 : updates #

Total comments: 4

Patch Set 8 : updates #

Patch Set 9 : updates #

Total comments: 6

Patch Set 10 : patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1205 lines, -118 lines) Patch
M chrome/browser/extensions/api/web_navigation/frame_navigation_state.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +402 lines, -98 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/app/manifest.json View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/a.html View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/c.html View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/d.html View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/e.html View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/empty.html View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/f.html View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/g.html View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/h.html View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/crossProcess/i.html View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webnavigation/framework.js View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/test_crossProcess.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webnavigation/test_crossProcess.js View 1 2 3 4 5 1 chunk +638 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webnavigation/test_history.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
jochen (gone - plz use gerrit)
Charlie, plz review Is it correct that history API and reference fragment navigations won't cancel ...
8 years, 4 months ago (2012-08-03 22:49:00 UTC) #1
Charlie Reis
On 2012/08/03 22:49:00, jochen wrote: > Is it correct that history API and reference fragment ...
8 years, 4 months ago (2012-08-04 00:32:33 UTC) #2
jochen (gone - plz use gerrit)
I tested a page with <a href="slow loading site" onclick="history.pushState({}, '', 'foo')">link</a> and while it ...
8 years, 4 months ago (2012-08-04 19:28:38 UTC) #3
jochen (gone - plz use gerrit)
now with tests! Seems that reference fragment navigations and history updates indeed cancel pending navigations, ...
8 years, 4 months ago (2012-08-06 14:55:27 UTC) #4
jochen (gone - plz use gerrit)
-battre +mpcomplete to have a better chance for a review until tomorrow :)
8 years, 4 months ago (2012-08-06 17:48:10 UTC) #5
jochen (gone - plz use gerrit)
(try results are on patch set 2)
8 years, 4 months ago (2012-08-06 18:10:50 UTC) #6
Matt Perry
http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode386 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:386: if (is_main_frame && render_view_host_ == render_view_host) { this branch ...
8 years, 4 months ago (2012-08-06 20:00:51 UTC) #7
Charlie Reis
On 2012/08/06 14:55:27, jochen wrote: > Seems that reference fragment navigations and history updates indeed ...
8 years, 4 months ago (2012-08-06 20:04:13 UTC) #8
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode386 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:386: if (is_main_frame && render_view_host_ == render_view_host) { On 2012/08/06 ...
8 years, 4 months ago (2012-08-06 21:08:39 UTC) #9
Matt Perry
http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode386 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:386: if (is_main_frame && render_view_host_ == render_view_host) { On 2012/08/06 ...
8 years, 4 months ago (2012-08-06 21:16:26 UTC) #10
jochen (gone - plz use gerrit)
On 2012/08/06 21:16:26, Matt Perry wrote: > http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc > File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): > > http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode386 ...
8 years, 4 months ago (2012-08-06 21:21:40 UTC) #11
Charlie Reis
http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode386 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:386: if (is_main_frame && render_view_host_ == render_view_host) { On 2012/08/06 ...
8 years, 4 months ago (2012-08-06 21:30:26 UTC) #12
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc File chrome/browser/extensions/api/web_navigation/web_navigation_api.cc (right): http://codereview.chromium.org/10823169/diff/12001/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc#newcode386 chrome/browser/extensions/api/web_navigation/web_navigation_api.cc:386: if (is_main_frame && render_view_host_ == render_view_host) { On 2012/08/06 ...
8 years, 4 months ago (2012-08-06 21:42:32 UTC) #13
jochen (gone - plz use gerrit)
ok, so here's a version that uses a resource throttle to delay the loads. A ...
8 years, 4 months ago (2012-08-07 12:06:56 UTC) #14
jochen (gone - plz use gerrit)
+jam for the addition of the test navigation listener in chrome/browser/renderer_host (and chrome/ OWNERS approval)
8 years, 4 months ago (2012-08-07 12:15:06 UTC) #15
battre
http://codereview.chromium.org/10823169/diff/4006/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc File chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (right): http://codereview.chromium.org/10823169/diff/4006/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc#newcode56 chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc:56: // commits. Add comment, that |script| is supposed to ...
8 years, 4 months ago (2012-08-07 13:34:39 UTC) #16
jochen (gone - plz use gerrit)
all done
8 years, 4 months ago (2012-08-07 13:41:10 UTC) #17
jam
do you really need to add testing code to ChromeResourceDispatcherHostDelegate and to add a getter ...
8 years, 4 months ago (2012-08-07 16:14:11 UTC) #18
jochen (gone - plz use gerrit)
On 2012/08/07 16:14:11, John Abd-El-Malek wrote: > do you really need to add testing code ...
8 years, 4 months ago (2012-08-07 17:46:05 UTC) #19
jam
On 2012/08/07 17:46:05, jochen wrote: > On 2012/08/07 16:14:11, John Abd-El-Malek wrote: > > do ...
8 years, 4 months ago (2012-08-07 18:01:08 UTC) #20
jochen (gone - plz use gerrit)
ok, here's a version that replaces ChromeContentBrowserClient to install it's own ChromeResourceDispatcherHostDelegate. It also register ...
8 years, 4 months ago (2012-08-07 20:29:49 UTC) #21
jam
test looks good to me, thanks http://codereview.chromium.org/10823169/diff/6025/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc File chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (right): http://codereview.chromium.org/10823169/diff/6025/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc#newcode303 chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc:303: : chrome::ChromeContentBrowserClient(), nit: ...
8 years, 4 months ago (2012-08-07 20:31:32 UTC) #22
jam
lgtm
8 years, 4 months ago (2012-08-07 20:31:52 UTC) #23
Matt Perry
lgtm
8 years, 4 months ago (2012-08-07 20:36:46 UTC) #24
Charlie Reis
Sorry, took me a bit to understand what test_crossProcess.js was doing, but I think I ...
8 years, 4 months ago (2012-08-07 21:53:04 UTC) #25
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10823169/diff/6025/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc File chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (right): http://codereview.chromium.org/10823169/diff/6025/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc#newcode148 chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc:148: // commits. The idea is that |script| triggers the ...
8 years, 4 months ago (2012-08-08 08:31:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/10823169/1014
8 years, 4 months ago (2012-08-08 08:32:27 UTC) #27
commit-bot: I haz the power
8 years, 4 months ago (2012-08-08 10:46:44 UTC) #28
Change committed as 150533

Powered by Google App Engine
This is Rietveld 408576698