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

Issue 10837146: Fix how captive portals track which page is loading. (Closed)

Created:
8 years, 4 months ago by mmenke
Modified:
8 years, 4 months ago
Reviewers:
cbentzel
CC:
chromium-reviews
Visibility:
Public.

Description

Fix how captive portals track which page is loading. The old code incorrectly assumed RenderView frame IDs were globally unique, and used them to track main frame reloads. The corrected version tracks the provisional RenderViewHost instead. The new code also will now never send two LoadStart events to the CaptivePortalReloader without an intervening load committed/aborted event. R=cbentzel@chromium.org BUG=87100, 115487 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151941

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Make review easier #

Patch Set 4 : #

Patch Set 5 : sync #

Total comments: 17

Patch Set 6 : Response to comments. Also make line breaks more consistent #

Patch Set 7 : Inline GetProcessID, get rid of TestCaptivePortalTabHelper #

Total comments: 2

Patch Set 8 : Fix order #

Patch Set 9 : Undo accidental change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -180 lines) Patch
M chrome/browser/captive_portal/captive_portal_browsertest.cc View 1 2 3 4 6 chunks +118 lines, -46 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper.h View 1 2 3 4 5 6 5 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper.cc View 1 2 3 4 5 6 7 7 chunks +82 lines, -44 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc View 1 2 3 4 5 6 8 6 chunks +324 lines, -82 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
mmenke
I actually could never get the old code to fail in a browser or manual ...
8 years, 4 months ago (2012-08-10 15:41:43 UTC) #1
mmenke
Oh, should add that comparing set 3 to set 4 may make reviewing the browser ...
8 years, 4 months ago (2012-08-10 16:48:12 UTC) #2
cbentzel
Going through the tests some more, but the core logic looks correct. http://codereview.chromium.org/10837146/diff/5014/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc ...
8 years, 4 months ago (2012-08-15 17:00:38 UTC) #3
mmenke
https://chromiumcodereview.appspot.com/10837146/diff/5014/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc (right): https://chromiumcodereview.appspot.com/10837146/diff/5014/chrome/browser/captive_portal/captive_portal_tab_helper.cc#newcode70 chrome/browser/captive_portal/captive_portal_tab_helper.cc:70: // the previous load. Link Doctor pages act like ...
8 years, 4 months ago (2012-08-16 14:30:03 UTC) #4
cbentzel
LGTM http://codereview.chromium.org/10837146/diff/5014/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc (right): http://codereview.chromium.org/10837146/diff/5014/chrome/browser/captive_portal/captive_portal_tab_helper.cc#newcode104 chrome/browser/captive_portal/captive_portal_tab_helper.cc:104: // Send information about the new load. On ...
8 years, 4 months ago (2012-08-16 19:15:04 UTC) #5
mmenke
Thanks for the feedback. http://codereview.chromium.org/10837146/diff/13018/chrome/browser/captive_portal/captive_portal_tab_helper.cc File chrome/browser/captive_portal/captive_portal_tab_helper.cc (right): http://codereview.chromium.org/10837146/diff/13018/chrome/browser/captive_portal/captive_portal_tab_helper.cc#newcode213 chrome/browser/captive_portal/captive_portal_tab_helper.cc:213: bool CaptivePortalTabHelper::IsLoginTab() const { On ...
8 years, 4 months ago (2012-08-16 19:18:34 UTC) #6
mmenke
8 years, 4 months ago (2012-08-16 19:28:00 UTC) #7
Gah!  Didn't use the CQ.  Dunno what I was thinking.

It's already compiled on Linux on the tree, and since I only moved a function
since the last tryjob, I'll just keep an eye on the tree rather than reverting.

Powered by Google App Engine
This is Rietveld 408576698