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

Issue 2140393002: Don't clear pending NavigationParams until didStopLoading. (Closed)

Created:
4 years, 5 months ago by Charlie Reis
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, jam, 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

Don't clear pending NavigationParams until didStopLoading. Clearing them at the end of NavigateInternal causes problems when a ScopedPageLoadDeferrer is in use. Credit to thestig@ for the test framework changes. BUG=626838 TEST=See bug for repro steps. Committed: https://crrev.com/275d69fc4e8af8ab4a8e7d8fe621ca5b408c134d Cr-Commit-Position: refs/heads/master@{#407239}

Patch Set 1 #

Patch Set 2 : Update test #

Total comments: 2

Patch Set 3 : Fix wait bug. #

Total comments: 5

Patch Set 4 : Rebase #

Patch Set 5 : Test fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -6 lines) Patch
M chrome/browser/printing/print_preview_dialog_controller_browsertest.cc View 1 2 3 4 5 chunks +107 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 34 (18 generated)
Charlie Reis
avi@: Can you review render_frame_impl.cc? Feel free to CQ while I'm out if you don't ...
4 years, 5 months ago (2016-07-15 23:41:28 UTC) #5
Lei Zhang
https://codereview.chromium.org/2140393002/diff/20001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc File chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/2140393002/diff/20001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc#newcode115 chrome/browser/printing/print_preview_dialog_controller_browsertest.cc:115: if (waiting_) Isn't this always true? It should go ...
4 years, 5 months ago (2016-07-15 23:43:33 UTC) #6
Charlie Reis
https://codereview.chromium.org/2140393002/diff/20001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc File chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/2140393002/diff/20001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc#newcode115 chrome/browser/printing/print_preview_dialog_controller_browsertest.cc:115: if (waiting_) On 2016/07/15 23:43:33, Lei Zhang wrote: > ...
4 years, 5 months ago (2016-07-15 23:46:55 UTC) #8
Lei Zhang
test lgtm, I'm pretty sure that was my fault.
4 years, 5 months ago (2016-07-15 23:50:09 UTC) #11
Avi (use Gerrit)
:/ https://codereview.chromium.org/2140393002/diff/40001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc File chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/2140393002/diff/40001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc#newcode299 chrome/browser/printing/print_preview_dialog_controller_browsertest.cc:299: HistoryNavigateDuringPrint) { You're aware that this new test ...
4 years, 5 months ago (2016-07-16 02:29:13 UTC) #14
Lei Zhang
https://codereview.chromium.org/2140393002/diff/40001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc File chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/2140393002/diff/40001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc#newcode299 chrome/browser/printing/print_preview_dialog_controller_browsertest.cc:299: HistoryNavigateDuringPrint) { On 2016/07/16 02:29:13, Avi wrote: > You're ...
4 years, 5 months ago (2016-07-16 03:34:12 UTC) #15
Charlie Reis
https://codereview.chromium.org/2140393002/diff/40001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc File chrome/browser/printing/print_preview_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/2140393002/diff/40001/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc#newcode299 chrome/browser/printing/print_preview_dialog_controller_browsertest.cc:299: HistoryNavigateDuringPrint) { On 2016/07/16 03:34:12, Lei Zhang wrote: > ...
4 years, 5 months ago (2016-07-20 21:32:26 UTC) #16
Lei Zhang
On 2016/07/20 21:32:26, Charlie Reis wrote: > Any ideas? It turns out ScopedPageLoadDeferrer is being ...
4 years, 5 months ago (2016-07-20 23:15:35 UTC) #17
Charlie Reis
thestig@: Thanks for finding how to fix the test! It's passing on the Win/Mac rel_ng ...
4 years, 5 months ago (2016-07-22 18:34:00 UTC) #20
Avi (use Gerrit)
Assuming things work, LGTM.
4 years, 5 months ago (2016-07-22 18:52:47 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/2140393002/80001
4 years, 5 months ago (2016-07-22 20:04:55 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-22 20:10:33 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/275d69fc4e8af8ab4a8e7d8fe621ca5b408c134d Cr-Commit-Position: refs/heads/master@{#407239}
4 years, 5 months ago (2016-07-22 20:11:59 UTC) #30
Charlie Harrison
I think this isn't quite right. When navigation B comes along and trashes provisional navigation ...
4 years, 4 months ago (2016-07-26 19:46:35 UTC) #32
Charlie Reis
On 2016/07/26 19:46:35, csharrison wrote: > I think this isn't quite right. > > When ...
4 years, 4 months ago (2016-07-26 20:33:36 UTC) #33
Charlie Reis
4 years, 4 months ago (2016-07-27 21:46:34 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2190463006/ by creis@chromium.org.

The reason for reverting is: This caused a regression
(https://crbug.com/631617).  We'll need to look for a safer way to clear the
pending_navigation_params_ and try again..

Powered by Google App Engine
This is Rietveld 408576698