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

Issue 21544005: Take the navigation type into account when checking if the navigation is in page. (Closed)

Created:
7 years, 4 months ago by pstanek
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Take the navigation type into account when checking if the navigation is in page. When navigating from ref url to non ref one the navigation type has decisive voice whether the navigation should be treated as in page. BUG=253481 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216329

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changing an approach a bit. #

Total comments: 3

Patch Set 3 : More generic and brave fix #

Total comments: 8

Patch Set 4 : Addressing review comments. #

Total comments: 13

Patch Set 5 : Dropping content::, comment & fix in the test. #

Total comments: 2

Patch Set 6 : Readability. Bringing back removed TC. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -22 lines) Patch
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 4 chunks +15 lines, -15 lines 3 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
pstanek
7 years, 4 months ago (2013-08-01 15:53:07 UTC) #1
pstanek
On 2013/08/01 15:53:07, pstanek wrote: No test as I have no really idea how to ...
7 years, 4 months ago (2013-08-01 15:53:37 UTC) #2
abarth-chromium
https://codereview.chromium.org/21544005/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/21544005/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2689 content/browser/web_contents/web_contents_impl.cc:2689: // is false even the navigation is in fact ...
7 years, 4 months ago (2013-08-01 20:48:32 UTC) #3
abarth-chromium
https://chromium.googlesource.com/chromium/src/+/master/chrome/browser/ssl/ssl_browser_tests.cc ^^^ Maybe this test suite is a good one to extend with a test ...
7 years, 4 months ago (2013-08-01 20:49:41 UTC) #4
pstanek
On 2013/08/01 20:48:32, abarth wrote: > https://codereview.chromium.org/21544005/diff/1/content/browser/web_contents/web_contents_impl.cc > File content/browser/web_contents/web_contents_impl.cc (right): > > https://codereview.chromium.org/21544005/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2689 > ...
7 years, 4 months ago (2013-08-01 21:35:35 UTC) #5
abarth-chromium
You should probably engage with an expert on this code. I haven't looked at it ...
7 years, 4 months ago (2013-08-01 22:09:40 UTC) #6
pstanek
@jochen: Please see https://codereview.chromium.org/21544005/#msg5 (apart from the CL & issue ofc)
7 years, 4 months ago (2013-08-01 22:22:34 UTC) #7
jochen (gone - plz use gerrit)
Adding the browser and renderer side navigation experts.
7 years, 4 months ago (2013-08-02 07:52:28 UTC) #8
jochen (gone - plz use gerrit)
On 2013/08/02 07:52:28, jochen wrote: > Adding the browser and renderer side navigation experts. for ...
7 years, 4 months ago (2013-08-02 07:53:42 UTC) #9
pstanek
On 2013/08/02 07:53:42, jochen wrote: > On 2013/08/02 07:52:28, jochen wrote: > > Adding the ...
7 years, 4 months ago (2013-08-02 08:04:02 UTC) #10
Charlie Reis
On 2013/08/02 08:04:02, pstanek wrote: > On 2013/08/02 07:53:42, jochen wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 16:58:45 UTC) #11
pstanek
On 2013/08/02 16:58:45, creis wrote: > On 2013/08/02 08:04:02, pstanek wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-05 11:22:33 UTC) #12
Charlie Reis
Looks like it's on the right track, but this is very tricky to understand. I ...
7 years, 4 months ago (2013-08-05 22:18:10 UTC) #13
pstanek
On 2013/08/05 22:18:10, creis wrote: > Looks like it's on the right track, but this ...
7 years, 4 months ago (2013-08-06 09:21:32 UTC) #14
Charlie Reis
Great, thanks for the changes. A few more comments below. https://codereview.chromium.org/21544005/diff/24001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): https://codereview.chromium.org/21544005/diff/24001/content/browser/web_contents/navigation_controller_impl.cc#newcode114 ...
7 years, 4 months ago (2013-08-06 18:48:07 UTC) #15
pstanek
https://codereview.chromium.org/21544005/diff/24001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/21544005/diff/24001/content/browser/web_contents/navigation_controller_impl_unittest.cc#newcode2769 content/browser/web_contents/navigation_controller_impl_unittest.cc:2769: content::NAVIGATION_TYPE_UNKNOWN)); On 2013/08/06 18:48:08, creis wrote: > This case ...
7 years, 4 months ago (2013-08-07 11:39:34 UTC) #16
Charlie Reis
Sorry, it looks like you didn't finish making the change to the test. https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl.cc File ...
7 years, 4 months ago (2013-08-07 16:59:27 UTC) #17
pstanek
https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl_unittest.cc#newcode2762 content/browser/web_contents/navigation_controller_impl_unittest.cc:2762: content::NAVIGATION_TYPE_UNKNOWN)); On 2013/08/07 16:59:27, creis wrote: > I don't ...
7 years, 4 months ago (2013-08-07 17:21:46 UTC) #18
pstanek
https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl.cc#newcode109 content/browser/web_contents/navigation_controller_impl.cc:109: content::NavigationType navigation_type) { On 2013/08/07 16:59:27, creis wrote: > ...
7 years, 4 months ago (2013-08-07 17:37:37 UTC) #19
Charlie Reis
Thanks for the changes. LGTM with style nit, and please add your earlier IsURLInPageNavigation(url_with_ref, true, ...
7 years, 4 months ago (2013-08-07 17:49:55 UTC) #20
pstanek
https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/21544005/diff/31001/content/browser/web_contents/navigation_controller_impl_unittest.cc#newcode2767 content/browser/web_contents/navigation_controller_impl_unittest.cc:2767: content::NAVIGATION_TYPE_UNKNOWN)); On 2013/08/07 17:49:56, creis wrote: > This case ...
7 years, 4 months ago (2013-08-07 18:05:56 UTC) #21
Charlie Reis
Thanks. Still LGTM.
7 years, 4 months ago (2013-08-07 18:08:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pstanek@opera.com/21544005/43001
7 years, 4 months ago (2013-08-07 19:21:43 UTC) #23
commit-bot: I haz the power
Change committed as 216329
7 years, 4 months ago (2013-08-08 00:25:13 UTC) #24
Finnur
This change is problematic and causes a regression in Chrome. https://code.google.com/p/chromium/issues/detail?id=281184 See FindBarController::Observe for how ...
7 years, 3 months ago (2013-08-30 11:48:39 UTC) #25
Finnur
https://chromiumcodereview.appspot.com/21544005/diff/43001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (left): https://chromiumcodereview.appspot.com/21544005/diff/43001/content/browser/web_contents/navigation_controller_impl.cc#oldcode118 content/browser/web_contents/navigation_controller_impl.cc:118: // scenarios can be differentiated with the TransitionType. Are ...
7 years, 3 months ago (2013-08-30 11:52:00 UTC) #26
pstanek
https://chromiumcodereview.appspot.com/21544005/diff/43001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (left): https://chromiumcodereview.appspot.com/21544005/diff/43001/content/browser/web_contents/navigation_controller_impl.cc#oldcode747 content/browser/web_contents/navigation_controller_impl.cc:747: // Do navigation-type specific actions. These will make and ...
7 years, 3 months ago (2013-08-30 12:01:13 UTC) #27
Finnur
If that's the case then the two comments need to be revised/removed.
7 years, 3 months ago (2013-08-30 12:29:39 UTC) #28
pstanek
On 2013/08/30 12:29:39, Finnur wrote: > If that's the case then the two comments need ...
7 years, 3 months ago (2013-08-30 12:35:56 UTC) #29
Finnur
I don't know this code well, but isn't it just enough to remove the words ...
7 years, 3 months ago (2013-08-30 12:42:39 UTC) #30
pstanek
On 2013/08/30 12:42:39, Finnur wrote: > I don't know this code well, but isn't it ...
7 years, 3 months ago (2013-08-30 12:46:44 UTC) #31
Finnur
7 years, 3 months ago (2013-08-30 12:51:04 UTC) #32
Message was sent while issue was closed.
Ah, I see what you mean now! I thought the comment above ClassifyNavigation
applied to the ClassifyNavigation function, and not to the switch statement. So
technically, the comment is still correct, it is just in a confusing location. 

So yes, I agree that the comment should probably live above the switch
statement.

Powered by Google App Engine
This is Rietveld 408576698