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

Issue 2510003002: If replacing a safebrowsing interstitial, don't call DontProceed on the old one. (Closed)

Created:
4 years, 1 month ago by mattm
Modified:
4 years ago
Reviewers:
Nathan Parker, meacer
CC:
chromium-reviews, grt+watch_chromium.org, estark, Jialiu Lin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

If replacing a safebrowsing interstitial, don't call DontProceed on the old one. Calling DontProceed directly has some side effects like destroying the pending NavigationEntry. There is already common code in InterstitialPageImpl::Show to handle closing an existing interstitial when showing a new one, and it properly handles the pending NavigationEntry. BUG=655794 Committed: https://crrev.com/3294450834f7ae8978994a8d2f7f9dd1df3178f2 Cr-Commit-Position: refs/heads/master@{#435445}

Patch Set 1 #

Patch Set 2 : set TODO url for crbug.com/666172 #

Total comments: 12

Patch Set 3 : rebase #

Patch Set 4 : review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -13 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 1 chunk +5 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
mattm
4 years, 1 month ago (2016-11-17 03:48:07 UTC) #6
Nathan Parker
Thanks, Matt. +meacer for review also. I mostly have questions. https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode461 ...
4 years, 1 month ago (2016-11-17 20:08:25 UTC) #12
mattm
https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode461 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:461: // interstitial, showing the new one will automatically hide ...
4 years, 1 month ago (2016-11-17 21:22:09 UTC) #13
mattm
On 2016/11/17 20:08:25, Nathan Parker wrote: > Thanks, Matt. > > +meacer for review also. ...
4 years ago (2016-11-29 22:59:57 UTC) #14
meacer
Sorry for the delay. Lgtm with nits. https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode925 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:925: GURL url ...
4 years ago (2016-11-30 00:04:09 UTC) #15
mattm
Thanks. Nathan did you have any further comments? https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/2510003002/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode925 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:925: GURL ...
4 years ago (2016-11-30 00:47:41 UTC) #18
Nathan Parker
lgtm
4 years ago (2016-11-30 21:40:50 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2510003002/60001
4 years ago (2016-11-30 21:45:31 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 22:24:08 UTC) #27
commit-bot: I haz the power
4 years ago (2016-11-30 22:28:56 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3294450834f7ae8978994a8d2f7f9dd1df3178f2
Cr-Commit-Position: refs/heads/master@{#435445}

Powered by Google App Engine
This is Rietveld 408576698