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

Issue 575203002: Use entry URLs instead of entry IDs to determine when to dismiss the overscroll overlay. (Closed)

Created:
6 years, 3 months ago by mfomitchev
Modified:
6 years, 3 months ago
Reviewers:
Charlie Reis, sadrul, sky
CC:
chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use entry URLs instead of entry IDs to determine when to dismiss the overscroll overlay. This is a band-aid fix for crbug.com/415167, which I'd like to try to get into M38. Apparently it's possible to have "temporary" entry IDs set as pending and then thrown away. This confuses OverscrollNavigationOverlay into thinking that the page was never loaded and the overlay never gets dismissed as a result, which makes the webpage unusable. Using URLs is not as reliable avoids this problem. It can introduce false positives in some corner cases, however a false positive doesn't have severe consequences - we simply dismiss the overlay too soon, and the use may see an empty page or a flicker. BUG=415167 Committed: https://crrev.com/c0f6e41d97c2527b165600f3a9e139a813b35b81 Cr-Commit-Position: refs/heads/master@{#295811}

Patch Set 1 #

Patch Set 2 : Accounting for redirections. #

Patch Set 3 : ALways dismissing the overlay on DidStopLoading #

Total comments: 2

Patch Set 4 : Fixing unit test #

Patch Set 5 : "Check entry's URL in DoesEntryMatchURL for the sake of uni tests. Also fixing a nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -27 lines) Patch
M content/browser/web_contents/aura/overscroll_navigation_overlay.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay.cc View 1 2 3 4 5 chunks +29 lines, -15 lines 0 comments Download
M content/browser/web_contents/aura/overscroll_navigation_overlay_unittest.cc View 1 2 3 2 chunks +6 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
mfomitchev
6 years, 3 months ago (2014-09-17 21:08:54 UTC) #2
sadrul
lgtm
6 years, 3 months ago (2014-09-17 21:18:13 UTC) #3
Charlie Reis
Hmm. What happens if the URL redirects? The committed URL might not be the same ...
6 years, 3 months ago (2014-09-17 23:51:26 UTC) #5
mfomitchev
message: Correct me if I am wrong, but I think the URLs that redirect wouldn't ...
6 years, 3 months ago (2014-09-18 04:04:06 UTC) #6
Charlie Reis
On 2014/09/18 04:04:06, mfomitchev wrote: > message: Correct me if I am wrong, but I ...
6 years, 3 months ago (2014-09-18 16:38:45 UTC) #7
mfomitchev
> Unfortunately, that's not always true. Suppose you're logged into a site and go > ...
6 years, 3 months ago (2014-09-18 21:01:54 UTC) #8
Charlie Reis
This seems like it should work, and it makes me feel better to have the ...
6 years, 3 months ago (2014-09-18 21:46:23 UTC) #9
mfomitchev
On 2014/09/18 21:46:23, Charlie Reis wrote: > This seems like it should work, and it ...
6 years, 3 months ago (2014-09-18 23:01:35 UTC) #10
Charlie Reis
Ok, LGTM. https://codereview.chromium.org/575203002/diff/40001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc File content/browser/web_contents/aura/overscroll_navigation_overlay.cc (right): https://codereview.chromium.org/575203002/diff/40001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc#newcode32 content/browser/web_contents/aura/overscroll_navigation_overlay.cc:32: it != redirect_chain.end(); nit: One more space ...
6 years, 3 months ago (2014-09-18 23:03:46 UTC) #11
Charlie Reis
On 2014/09/18 23:03:46, Charlie Reis wrote: > https://codereview.chromium.org/575203002/diff/40001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc > File content/browser/web_contents/aura/overscroll_navigation_overlay.cc (right): > > https://codereview.chromium.org/575203002/diff/40001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc#newcode32 ...
6 years, 3 months ago (2014-09-18 23:05:34 UTC) #12
mfomitchev
https://codereview.chromium.org/575203002/diff/40001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc File content/browser/web_contents/aura/overscroll_navigation_overlay.cc (right): https://codereview.chromium.org/575203002/diff/40001/content/browser/web_contents/aura/overscroll_navigation_overlay.cc#newcode32 content/browser/web_contents/aura/overscroll_navigation_overlay.cc:32: it != redirect_chain.end(); On 2014/09/18 23:03:46, Charlie Reis wrote: ...
6 years, 3 months ago (2014-09-19 20:03:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/575203002/80001
6 years, 3 months ago (2014-09-19 20:26:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/575203002/80001
6 years, 3 months ago (2014-09-19 20:26:21 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/11431)
6 years, 3 months ago (2014-09-19 20:51:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/575203002/80001
6 years, 3 months ago (2014-09-19 20:59:45 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/11508)
6 years, 3 months ago (2014-09-19 21:53:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/575203002/80001
6 years, 3 months ago (2014-09-19 21:56:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/575203002/80001
6 years, 3 months ago (2014-09-19 21:56:12 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 8abda5c7bbf012c2ce5696d444cdec5f61a2d13b
6 years, 3 months ago (2014-09-19 23:35:40 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 23:40:18 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c0f6e41d97c2527b165600f3a9e139a813b35b81
Cr-Commit-Position: refs/heads/master@{#295811}

Powered by Google App Engine
This is Rietveld 408576698