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

Issue 15294012: Fix initial erroneous navigation in iframe to not add history entry. (Closed)

Created:
7 years, 7 months ago by nasko
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Fix initial erroneous navigation in iframe to not add history entry. The underlying issue is that AUTO_SUBFRAME transition type was incorrectly being set on subframe navigations. I'm fixing this to be compliant with the HTML5 spec. Blink side of this patch is https://codereview.chromium.org/25269006/. BUG=178380 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226669

Patch Set 1 #

Patch Set 2 : Adding a test and lots of logging for try jobs. #

Patch Set 3 : Removing logs and fixing up the test. #

Total comments: 2

Patch Set 4 : Redo how the test case works. #

Patch Set 5 : Another improvement to the test. #

Total comments: 6

Patch Set 6 : Rebased on ToT. #

Patch Set 7 : Properly set AUTO_SUBFRAME transition type on subframe navigations #

Total comments: 2

Patch Set 8 : Fix in sync with Blink and modified the test case a bit #

Total comments: 4

Patch Set 9 : Fixing nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -3 lines) Patch
M chrome/browser/errorpage_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +101 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
nasko
Hey guys, Can you review this change? mmenke@ -> errorpage_browsertest.cc creis@ -> render_view_impl.cc darin@ -> ...
7 years, 7 months ago (2013-05-22 17:19:55 UTC) #1
mmenke
Thanks for fixing this. https://codereview.chromium.org/15294012/diff/16001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/15294012/diff/16001/chrome/browser/errorpage_browsertest.cc#newcode262 chrome/browser/errorpage_browsertest.cc:262: "document.title = 'done';"; This failed ...
7 years, 7 months ago (2013-05-22 17:25:50 UTC) #2
nasko
https://codereview.chromium.org/15294012/diff/16001/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/15294012/diff/16001/chrome/browser/errorpage_browsertest.cc#newcode262 chrome/browser/errorpage_browsertest.cc:262: "document.title = 'done';"; On 2013/05/22 17:25:50, mmenke wrote: > ...
7 years, 7 months ago (2013-05-22 17:52:53 UTC) #3
nasko
I've changed the test to use explicit DidFailProvisionalLoad observer and ensure that we see the ...
7 years, 7 months ago (2013-05-23 18:21:17 UTC) #4
mmenke
On 2013/05/23 18:21:17, nasko wrote: > I've changed the test to use explicit DidFailProvisionalLoad observer ...
7 years, 7 months ago (2013-05-23 18:25:47 UTC) #5
nasko
On 2013/05/23 18:25:47, mmenke wrote: > On 2013/05/23 18:21:17, nasko wrote: > > I've changed ...
7 years, 7 months ago (2013-05-23 19:03:16 UTC) #6
mmenke
On 2013/05/23 19:03:16, nasko wrote: > On 2013/05/23 18:25:47, mmenke wrote: > > On 2013/05/23 ...
7 years, 7 months ago (2013-05-23 19:29:59 UTC) #7
nasko
On 2013/05/23 19:29:59, mmenke wrote: > On 2013/05/23 19:03:16, nasko wrote: > > On 2013/05/23 ...
7 years, 7 months ago (2013-05-23 20:35:13 UTC) #8
mmenke
On 2013/05/23 20:35:13, nasko wrote: > On 2013/05/23 19:29:59, mmenke wrote: > > On 2013/05/23 ...
7 years, 7 months ago (2013-05-23 20:39:05 UTC) #9
nasko
On 2013/05/23 20:39:05, mmenke wrote: > On 2013/05/23 20:35:13, nasko wrote: > > On 2013/05/23 ...
7 years, 7 months ago (2013-05-23 20:47:47 UTC) #10
mmenke
LGTM! https://codereview.chromium.org/15294012/diff/23002/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/15294012/diff/23002/chrome/browser/errorpage_browsertest.cc#newcode304 chrome/browser/errorpage_browsertest.cc:304: load_observer.Wait(); Sorry. Just skimmed it last time, and ...
7 years, 7 months ago (2013-05-23 21:13:38 UTC) #11
Charlie Reis
Just want to be sure we're on the right track. https://codereview.chromium.org/15294012/diff/23002/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): https://codereview.chromium.org/15294012/diff/23002/chrome/browser/errorpage_browsertest.cc#newcode300 ...
7 years, 7 months ago (2013-05-23 21:53:33 UTC) #12
nasko
I've updated this CL with a new approach to fixing this bug. It depends on ...
7 years, 3 months ago (2013-09-20 21:25:39 UTC) #13
darin (slow to review)
https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc#newcode3553 content/renderer/render_view_impl.cc:3553: !frame->hasCommittedRealDocument()) { I'm having a hard time understanding what ...
7 years, 3 months ago (2013-09-20 22:09:37 UTC) #14
nasko
https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc#newcode3553 content/renderer/render_view_impl.cc:3553: !frame->hasCommittedRealDocument()) { On 2013/09/20 22:09:38, darin wrote: > I'm ...
7 years, 3 months ago (2013-09-20 22:29:59 UTC) #15
darin (slow to review)
On 2013/09/20 22:29:59, nasko wrote: > https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc#newcode3553 > ...
7 years, 3 months ago (2013-09-20 22:47:20 UTC) #16
nasko
On 2013/09/20 22:47:20, darin wrote: > On 2013/09/20 22:29:59, nasko wrote: > > > https://codereview.chromium.org/15294012/diff/51001/content/renderer/render_view_impl.cc ...
7 years, 3 months ago (2013-09-20 23:14:02 UTC) #17
nasko
On 2013/09/20 23:14:02, nasko wrote: > On 2013/09/20 22:47:20, darin wrote: > > On 2013/09/20 ...
7 years, 3 months ago (2013-09-20 23:24:17 UTC) #18
nasko
On 2013/09/20 23:24:17, nasko wrote: > On 2013/09/20 23:14:02, nasko wrote: > > On 2013/09/20 ...
7 years, 3 months ago (2013-09-24 17:25:01 UTC) #19
darin (slow to review)
My inclination is to "fix" setReplacesCurrentHistoryItem, since I believe the first empty document has a ...
7 years, 3 months ago (2013-09-24 19:03:54 UTC) #20
nasko
I've updated the patch to match the new approach on the Blink side. I've also ...
7 years, 2 months ago (2013-10-01 21:45:33 UTC) #21
darin (slow to review)
LGTM
7 years, 2 months ago (2013-10-02 04:33:55 UTC) #22
Charlie Reis
Thanks for working through this! LGTM with nits. https://codereview.chromium.org/15294012/diff/64001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/15294012/diff/64001/content/renderer/render_view_impl.cc#newcode3562 content/renderer/render_view_impl.cc:3562: } ...
7 years, 2 months ago (2013-10-02 15:45:48 UTC) #23
nasko
Fixed nits. https://codereview.chromium.org/15294012/diff/64001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/15294012/diff/64001/content/renderer/render_view_impl.cc#newcode3562 content/renderer/render_view_impl.cc:3562: } else { On 2013/10/02 15:45:49, creis ...
7 years, 2 months ago (2013-10-02 23:06:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/15294012/72001
7 years, 2 months ago (2013-10-02 23:07:37 UTC) #25
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 02:35:10 UTC) #26
Message was sent while issue was closed.
Change committed as 226669

Powered by Google App Engine
This is Rietveld 408576698