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

Issue 1082083002: Fix ClassifyNavigation. (Closed)

Created:
5 years, 8 months ago by Avi (use Gerrit)
Modified:
5 years, 8 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ClassifyNavigation. If there is a slow pending load for a page, and in the meantime the page uses replaceState, the existence of the pending entry could cause a misclassification of the replaceState as SAME_PAGE. Ensure that SAME_PAGE classification happens only if the pages bear some relationship. BUG=369661 TEST=Existing tests, NavigationTypeClassification_InPageWhilePending. Committed: https://crrev.com/f9c055737d01f84199e5e921f20378491db34ca8 Cr-Commit-Position: refs/heads/master@{#325321}

Patch Set 1 #

Total comments: 8

Patch Set 2 : fix the tests #

Patch Set 3 : with test #

Patch Set 4 : better version of the test #

Total comments: 6

Patch Set 5 : no virtual #

Patch Set 6 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -42 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 2 chunks +21 lines, -14 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 6 chunks +86 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 5 chunks +31 lines, -26 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
Charlie Reis
Hmm, looks like we're getting some test failures. Also, the "TEST=Existing tests" line in the ...
5 years, 8 months ago (2015-04-13 23:45:41 UTC) #2
Avi (use Gerrit)
I would need to dig a bit; I needed these to pass specific unit tests ...
5 years, 8 months ago (2015-04-14 02:00:43 UTC) #3
Avi (use Gerrit)
Added the patches to the unit tests that correct them.
5 years, 8 months ago (2015-04-14 14:39:45 UTC) #4
Avi (use Gerrit)
Charlie, I added a specific new test that fails without this fix, and that passes ...
5 years, 8 months ago (2015-04-14 20:15:42 UTC) #5
Avi (use Gerrit)
On 2015/04/14 20:15:42, Avi wrote: > Charlie, I added a specific new test that fails ...
5 years, 8 months ago (2015-04-15 14:51:46 UTC) #6
Charlie Reis
I spent some time trying to follow this and I still don't quite get the ...
5 years, 8 months ago (2015-04-15 17:43:09 UTC) #8
Charlie Reis
(also added Nasko as FYI for the test code)
5 years, 8 months ago (2015-04-15 17:43:42 UTC) #9
Avi (use Gerrit)
https://codereview.chromium.org/1082083002/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1082083002/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1034 content/browser/frame_host/navigation_controller_impl.cc:1034: existing_entry->GetURL() == pending_entry_->GetVirtualURL()) { On 2015/04/15 17:43:08, Charlie Reis ...
5 years, 8 months ago (2015-04-15 19:14:16 UTC) #10
Charlie Reis
https://codereview.chromium.org/1082083002/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1082083002/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1034 content/browser/frame_host/navigation_controller_impl.cc:1034: existing_entry->GetURL() == pending_entry_->GetVirtualURL()) { On 2015/04/15 19:14:16, Avi wrote: ...
5 years, 8 months ago (2015-04-15 19:57:36 UTC) #11
Avi (use Gerrit)
https://codereview.chromium.org/1082083002/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/1082083002/diff/60001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode1806 content/browser/frame_host/navigation_controller_impl_unittest.cc:1806: params.redirects.push_back(GURL("http://foo1")); On 2015/04/15 19:57:36, Charlie Reis (slow until 4-15) ...
5 years, 8 months ago (2015-04-15 20:19:26 UTC) #12
Charlie Reis
Thanks! LGTM.
5 years, 8 months ago (2015-04-15 20:32:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082083002/100001
5 years, 8 months ago (2015-04-15 20:37:30 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 8 months ago (2015-04-15 22:06:06 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 22:08:17 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f9c055737d01f84199e5e921f20378491db34ca8
Cr-Commit-Position: refs/heads/master@{#325321}

Powered by Google App Engine
This is Rietveld 408576698