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

Issue 9169065: Reloading page after installing app should bring it into correct process. (Closed)

Created:
8 years, 11 months ago by nasko
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org, brettw
Visibility:
Public.

Description

Reloading page after installing app should bring it into correct process. BUG=80621 TEST=Open a page which is part of an app, in another tab install the app, reload the original page. The renderer process for the tab should be switched. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120007

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressing initial code review comments. #

Total comments: 2

Patch Set 3 : Changing pointer types due to refactoring of public APIs. #

Total comments: 13

Patch Set 4 : Moving the javascript reload detection to ShouldFork. #

Total comments: 2

Patch Set 5 : Fixing merge conflict. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -23 lines) Patch
M chrome/browser/extensions/app_process_apitest.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 chunks +23 lines, -9 lines 0 comments Download
M content/browser/tab_contents/navigation_controller_impl.cc View 1 2 3 4 2 chunks +38 lines, -9 lines 0 comments Download
M content/browser/tab_contents/navigation_entry_impl.h View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/tab_contents/navigation_entry_impl.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
nasko
This change fixes issue 80621, but covers only browser initiated reloads. JavaScript reloads need support ...
8 years, 11 months ago (2012-01-26 00:37:22 UTC) #1
Charlie Reis
Thanks! https://chromiumcodereview.appspot.com/9169065/diff/1/chrome/browser/extensions/app_process_apitest.cc File chrome/browser/extensions/app_process_apitest.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/1/chrome/browser/extensions/app_process_apitest.cc#newcode451 chrome/browser/extensions/app_process_apitest.cc:451: * We don't use multi-line /* */ comments ...
8 years, 11 months ago (2012-01-26 01:20:22 UTC) #2
nasko
I've added the check for mismatched process types in the case of Javascript reload, which ...
8 years, 11 months ago (2012-01-26 20:25:57 UTC) #3
Charlie Reis
LGTM with the changes below. John, can you review for owner's approval? https://chromiumcodereview.appspot.com/9169065/diff/1/content/browser/tab_contents/navigation_controller_impl.cc File content/browser/tab_contents/navigation_controller_impl.cc ...
8 years, 11 months ago (2012-01-26 21:49:45 UTC) #4
jam
can brett look at this instead of me? i don't know this code at all.
8 years, 11 months ago (2012-01-27 18:15:19 UTC) #5
Charlie Reis
On 2012/01/27 18:15:19, John Abd-El-Malek wrote: > can brett look at this instead of me? ...
8 years, 11 months ago (2012-01-27 18:22:22 UTC) #6
(Do not use) nasko
There will be a slight change, one pointer type SiteInstance will move to SiteInstanceImpl, because ...
8 years, 11 months ago (2012-01-27 18:34:35 UTC) #7
darin (slow to review)
Add a unit test in navigation_controller_impl_unittest.cc? https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc#newcode763 chrome/renderer/chrome_content_renderer_client.cc:763: if (old_url == ...
8 years, 11 months ago (2012-01-27 19:34:11 UTC) #8
nasko
Responding to the comments from Darin. https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc#newcode763 chrome/renderer/chrome_content_renderer_client.cc:763: if (old_url == ...
8 years, 11 months ago (2012-01-27 20:14:55 UTC) #9
Charlie Reis
https://chromiumcodereview.appspot.com/9169065/diff/11001/content/browser/tab_contents/navigation_controller_impl.cc File content/browser/tab_contents/navigation_controller_impl.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/11001/content/browser/tab_contents/navigation_controller_impl.cc#newcode280 content/browser/tab_contents/navigation_controller_impl.cc:280: // copy page id, site instance, and content state. ...
8 years, 11 months ago (2012-01-27 20:50:18 UTC) #10
darin (slow to review)
OK, it seems a shame to have artifacts like these leak through. Multi-process is supposed ...
8 years, 11 months ago (2012-01-27 23:54:06 UTC) #11
darin (slow to review)
https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc#newcode763 chrome/renderer/chrome_content_renderer_client.cc:763: if (old_url == new_url) { On 2012/01/27 20:14:56, nasko ...
8 years, 11 months ago (2012-01-27 23:58:35 UTC) #12
nasko
Responses to Darin's comments. https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/11001/chrome/renderer/chrome_content_renderer_client.cc#newcode763 chrome/renderer/chrome_content_renderer_client.cc:763: if (old_url == new_url) { ...
8 years, 11 months ago (2012-01-28 01:43:12 UTC) #13
(Do not use) nasko
Thanks for the info! I will try the "location = location" and test it out ...
8 years, 11 months ago (2012-01-28 01:45:54 UTC) #14
darin (slow to review)
On Fri, Jan 27, 2012 at 5:43 PM, <nasko@chromium.org> wrote: > Responses to Darin's comments. ...
8 years, 11 months ago (2012-01-28 05:01:41 UTC) #15
nasko
The latest patch moves the logic to detect javascript reload to the ShouldFork function.
8 years, 10 months ago (2012-01-30 21:20:49 UTC) #16
darin (slow to review)
LGTM. Just one nit: https://chromiumcodereview.appspot.com/9169065/diff/14001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/14001/chrome/renderer/chrome_content_renderer_client.cc#newcode657 chrome/renderer/chrome_content_renderer_client.cc:657: // should send it to ...
8 years, 10 months ago (2012-01-30 22:14:47 UTC) #17
Charlie Reis
https://chromiumcodereview.appspot.com/9169065/diff/14001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/9169065/diff/14001/chrome/renderer/chrome_content_renderer_client.cc#newcode657 chrome/renderer/chrome_content_renderer_client.cc:657: // should send it to the browser if it's ...
8 years, 10 months ago (2012-01-30 22:21:56 UTC) #18
darin (slow to review)
On Mon, Jan 30, 2012 at 2:21 PM, <creis@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/9169065/diff/** > 14001/chrome/renderer/chrome_**content_renderer_client.cc<https://chromiumcodereview.appspot.com/9169065/diff/14001/chrome/renderer/chrome_content_renderer_client.cc> ...
8 years, 10 months ago (2012-01-30 22:46:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9169065/14001
8 years, 10 months ago (2012-01-31 19:07:22 UTC) #20
commit-bot: I haz the power
Can't apply patch for file content/browser/tab_contents/navigation_controller_impl.cc. While running patch -p1 --forward --force; patching file content/browser/tab_contents/navigation_controller_impl.cc ...
8 years, 10 months ago (2012-01-31 19:07:24 UTC) #21
nasko
Fixed a merge conflict. Darin, can you submit the change to the commit queue? Charlie ...
8 years, 10 months ago (2012-01-31 22:50:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/9169065/23001
8 years, 10 months ago (2012-01-31 23:32:15 UTC) #23
commit-bot: I haz the power
8 years, 10 months ago (2012-02-01 01:54:25 UTC) #24
Change committed as 120007

Powered by Google App Engine
This is Rietveld 408576698