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

Issue 6915019: Changes to not use the prerendered contents when window.opener needs to be set. (Closed)

Created:
9 years, 7 months ago by Shishir
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, Paweł Hajdan Jr., Avi (use Gerrit), brettw-cc_chromium.org
Visibility:
Public.

Description

Changes to not use the prerendered contents when window.opener needs to be set. BUG=79922 TEST=browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85394 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85689 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86242

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addresing Chris's comments. #

Total comments: 1

Patch Set 3 : Addressing Chris's comments & fixing a bug in PrerenderManager::MoveEntryToPendingDelete. #

Total comments: 4

Patch Set 4 : Addressing Sreeram's comments. #

Total comments: 10

Patch Set 5 : Addressing Chris's comments. #

Patch Set 6 : Syncing client and updating CL for commit. #

Patch Set 7 : Updated patch to HEAD to commit. #

Patch Set 8 : Fixing line length. #

Patch Set 9 : Fix: Possible race condition in browser test. #

Total comments: 1

Patch Set 10 : Uploading synced version for commit. #

Patch Set 11 : Commeting out PrerenderWindowOpenerJsOpenInNewPageTest #

Patch Set 12 : Synced for Commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -43 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +80 lines, -20 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_observer.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_observer.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_render_view_host_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_render_view_host_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/prerender/prerender_loader.html View 1 2 3 4 5 6 7 1 chunk +19 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Shishir
Please look at this CL when you get time.
9 years, 7 months ago (2011-05-03 21:37:57 UTC) #1
sreeram
Thanks for the work on this. However, I am a little concerned about the IPCs. ...
9 years, 7 months ago (2011-05-04 17:09:02 UTC) #2
cbentzel
+brettw for the additional has_opener_set bool in the provisional load IPC messages. http://codereview.chromium.org/6915019/diff/1/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc ...
9 years, 7 months ago (2011-05-04 17:10:15 UTC) #3
brettw
I agree in general with sreeram's sentiment. But I'm also worried about cluttering up the ...
9 years, 7 months ago (2011-05-04 17:20:45 UTC) #4
sreeram
Shishir just explained to me in person that my suggestion won't work here. The renderer ...
9 years, 7 months ago (2011-05-04 17:31:44 UTC) #5
Shishir
Since we want to reuse the prerendered page and not throw it away, I will ...
9 years, 7 months ago (2011-05-04 18:39:40 UTC) #6
cbentzel
It may be worth waiting for Dominic's CL, but I don't think it will have ...
9 years, 7 months ago (2011-05-04 18:56:19 UTC) #7
Shishir
http://codereview.chromium.org/6915019/diff/1/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/1/chrome/browser/prerender/prerender_browsertest.cc#newcode53 chrome/browser/prerender/prerender_browsertest.cc:53: // page should pre prerendered correctly. The page still ...
9 years, 7 months ago (2011-05-05 23:09:54 UTC) #8
cbentzel
http://codereview.chromium.org/6915019/diff/2003/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): http://codereview.chromium.org/6915019/diff/2003/chrome/browser/prerender/prerender_manager.cc#newcode429 chrome/browser/prerender/prerender_manager.cc:429: prerender_contents->set_final_status(FINAL_STATUS_WINDOW_OPENER); Should this be Destroy rather than set_final_status? With ...
9 years, 7 months ago (2011-05-06 02:30:01 UTC) #9
Shishir
Added a new patch integrating the Destroy() changes and fixing a minor issue in PrerenderManager::MoveEntryToPendingDelete. ...
9 years, 7 months ago (2011-05-09 23:21:09 UTC) #10
sreeram
http://codereview.chromium.org/6915019/diff/10001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/10001/chrome/browser/prerender/prerender_browsertest.cc#newcode54 chrome/browser/prerender/prerender_browsertest.cc:54: bool ShouldRenderPrerenderedPageCorrectly(FinalStatus status) { Naming suggestion: Perhaps call this ...
9 years, 7 months ago (2011-05-10 15:58:19 UTC) #11
sreeram
http://codereview.chromium.org/6915019/diff/10001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/10001/chrome/browser/prerender/prerender_browsertest.cc#newcode997 chrome/browser/prerender/prerender_browsertest.cc:997: OpenDestUrlInNewWindowViaJs(); On 2011/05/10 15:58:20, sreeram wrote: > Seems to ...
9 years, 7 months ago (2011-05-10 17:01:16 UTC) #12
Shishir
http://codereview.chromium.org/6915019/diff/10001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/10001/chrome/browser/prerender/prerender_browsertest.cc#newcode997 chrome/browser/prerender/prerender_browsertest.cc:997: OpenDestUrlInNewWindowViaJs(); Added a check in PrerenderTestURLImpl On 2011/05/10 17:01:16, ...
9 years, 7 months ago (2011-05-11 22:20:06 UTC) #13
Shishir
Hi Brett, Chris, Could you take another look at the CL? Thanks Shishir
9 years, 7 months ago (2011-05-12 00:29:48 UTC) #14
sreeram
LGTM http://codereview.chromium.org/6915019/diff/16001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/16001/chrome/browser/prerender/prerender_browsertest.cc#newcode326 chrome/browser/prerender/prerender_browsertest.cc:326: EXPECT_EQ(prerender_contents->final_status(), FINAL_STATUS_MAX); Swap the arguments. In EXPECT_EQ, the ...
9 years, 7 months ago (2011-05-12 02:36:41 UTC) #15
cbentzel
My only major concern is whether we need to specify opener on the redirect IPC. ...
9 years, 7 months ago (2011-05-12 11:17:08 UTC) #16
Shishir
http://codereview.chromium.org/6915019/diff/16001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/16001/chrome/browser/prerender/prerender_browsertest.cc#newcode54 chrome/browser/prerender/prerender_browsertest.cc:54: bool ShouldRenderPrerenderedPageCorrectly(FinalStatus status) { This is still needed as ...
9 years, 7 months ago (2011-05-12 22:05:18 UTC) #17
cbentzel
LGTM You'll still need Brett's approval for the IPC changes [or someone else with OWNERS ...
9 years, 7 months ago (2011-05-13 00:28:12 UTC) #18
brettw
LGTM
9 years, 7 months ago (2011-05-13 05:08:04 UTC) #19
commit-bot: I haz the power
Can't apply patch for file content/browser/tab_contents/tab_contents_observer.h. patching file content/browser/tab_contents/tab_contents_observer.h Hunk #1 FAILED at 51. 1 ...
9 years, 7 months ago (2011-05-13 17:35:09 UTC) #20
commit-bot: I haz the power
Presubmit check for 6915019-16015 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-13 18:57:43 UTC) #21
commit-bot: I haz the power
Presubmit check for 6915019-16015 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-13 19:02:21 UTC) #22
commit-bot: I haz the power
Change committed as 85394
9 years, 7 months ago (2011-05-14 22:23:20 UTC) #23
Shishir
Hi Dominic, Could you upload this CL to the try bots? Thanks Shishir
9 years, 7 months ago (2011-05-16 19:01:24 UTC) #24
dominich
http://codereview.chromium.org/6915019/diff/29001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/6915019/diff/29001/chrome/browser/prerender/prerender_browsertest.cc#newcode56 chrome/browser/prerender/prerender_browsertest.cc:56: // Returns true iff the final status is one ...
9 years, 7 months ago (2011-05-16 22:21:12 UTC) #25
Shishir
Hi Timo, Can you commit this since chris is out? Thanks Shishir
9 years, 7 months ago (2011-05-16 22:53:21 UTC) #26
tburkard
LGTM On 2011/05/16 22:53:21, Shishir wrote: > Hi Timo, > > Can you commit this ...
9 years, 7 months ago (2011-05-17 17:45:35 UTC) #27
commit-bot: I haz the power
Can't apply patch for file chrome/browser/prerender/prerender_final_status.h. patching file chrome/browser/prerender/prerender_final_status.h Hunk #1 FAILED at 34. 1 ...
9 years, 7 months ago (2011-05-17 20:30:23 UTC) #28
commit-bot: I haz the power
Change committed as 85689
9 years, 7 months ago (2011-05-17 22:32:33 UTC) #29
jam
why aren't you running this change through the trybot first? this broke the tree and ...
9 years, 7 months ago (2011-05-17 23:53:32 UTC) #30
shishir1
Dominich had run the tests through the trybots yesterday and I didnt get any failure ...
9 years, 7 months ago (2011-05-17 23:56:16 UTC) #31
tburkard
LGTM On Tue, May 17, 2011 at 4:55 PM, Shishir Agrawal <shishir@google.com> wrote: > Dominich ...
9 years, 7 months ago (2011-05-18 20:13:21 UTC) #32
commit-bot: I haz the power
9 years, 7 months ago (2011-05-22 19:40:29 UTC) #33
Change committed as 86242

Powered by Google App Engine
This is Rietveld 408576698