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

Issue 2919593007: Always update the omnibox URL when cancelling via onbeforeunload (Closed)

Created:
3 years, 6 months ago by ncarter (slow)
Modified:
3 years, 6 months ago
Reviewers:
Charlie Reis, clamy
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Always update the omnibox URL when cancelling via onbeforeunload The problem was that browser-initiated, same-site navigations that are cancelled via a beforeunload dialog didn't send a INVALIDATE_TYPE_URL invalidation to the Browser, because this invalidation was done as result of the beforeunload ACK, and we never got a beforeunload ACK in that case in non-PlzNavigate. PlzNavigate did not have this problem. We already cleared the pending entry -- in WebContentsImpl::OnDialogClosed, just before we send the response to the RunJavaScriptDialog result. The fix is to invalidate the omnibox at the same moment. BUG=721184 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2919593007 Cr-Commit-Position: refs/heads/master@{#480598} Committed: https://chromium.googlesource.com/chromium/src/+/bcce9cb42a1578ba95ead8b64e66101a8ae5e40b

Patch Set 1 #

Patch Set 2 : Narrow proposed fix. #

Patch Set 3 : Remove unnecessary line. #

Patch Set 4 : Further refine approach, fixing unit test. #

Patch Set 5 : Test tweaking #

Total comments: 11

Patch Set 6 : Update comment in navigation_controller.h #

Patch Set 7 : Merge remote-tracking branch 'origin/master' into spoof #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -22 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 2 chunks +18 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 2 3 4 5 6 1 chunk +139 lines, -0 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (27 generated)
ncarter (slow)
Charlie & Camille -- please review https://codereview.chromium.org/2919593007/diff/70001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2919593007/diff/70001/content/browser/frame_host/navigation_controller_impl.cc#newcode1737 content/browser/frame_host/navigation_controller_impl.cc:1737: void NavigationControllerImpl::DiscardNonCommittedEntries() { ...
3 years, 6 months ago (2017-06-01 23:08:07 UTC) #18
Charlie Reis
LGTM with some sanity check questions in the test. Thanks for the cleanup along with ...
3 years, 6 months ago (2017-06-02 23:57:58 UTC) #22
ncarter (slow)
https://codereview.chromium.org/2919593007/diff/70001/content/browser/web_contents/web_contents_impl_browsertest.cc File content/browser/web_contents/web_contents_impl_browsertest.cc (right): https://codereview.chromium.org/2919593007/diff/70001/content/browser/web_contents/web_contents_impl_browsertest.cc#newcode1016 content/browser/web_contents/web_contents_impl_browsertest.cc:1016: // cross-site navigation, it will not reset the loading ...
3 years, 6 months ago (2017-06-19 17:45:50 UTC) #23
ncarter (slow)
https://codereview.chromium.org/2919593007/diff/70001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2919593007/diff/70001/content/browser/frame_host/navigation_controller_impl.cc#newcode1737 content/browser/frame_host/navigation_controller_impl.cc:1737: void NavigationControllerImpl::DiscardNonCommittedEntries() { On 2017/06/02 23:57:57, Charlie Reis (slow) ...
3 years, 6 months ago (2017-06-19 18:14:19 UTC) #24
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/2919593007/90001
3 years, 6 months ago (2017-06-19 18:14:37 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/234831) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-19 18:16:41 UTC) #29
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/2919593007/110001
3 years, 6 months ago (2017-06-19 20:29:03 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:110001) as https://chromium.googlesource.com/chromium/src/+/bcce9cb42a1578ba95ead8b64e66101a8ae5e40b
3 years, 6 months ago (2017-06-19 22:17:25 UTC) #35
pdr.
On 2017/06/19 at 22:17:25, commit-bot wrote: > Committed patchset #7 (id:110001) as https://chromium.googlesource.com/chromium/src/+/bcce9cb42a1578ba95ead8b64e66101a8ae5e40b I think ...
3 years, 6 months ago (2017-06-20 00:38:40 UTC) #36
pdr.
3 years, 6 months ago (2017-06-20 00:56:37 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:110001) has been created in
https://codereview.chromium.org/2952483002/ by pdr@chromium.org.

The reason for reverting is: This caused failures on
browser_side_navigation_content_browsertests
(WebContentsImplBrowserTest.DismissingBeforeUnloadDialogInvalidatesUrl). See:
https://crbug.com/734835 for links to the builders..

Powered by Google App Engine
This is Rietveld 408576698