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

Issue 1012863004: Fixes a reuse WebUI bug because of the incorrect shadowing of a boolean value. (Closed)

Created:
5 years, 9 months ago by carlosk
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes a reuse WebUI bug because of the incorrect shadowing of a boolean value. This only affects PlzNavigate. When a same-site navigation should reuse the current WebUI, in RFHM::GetFrameHostForNavigation the (shadowing) method-local |should_reuse_web_ui_| would be set to true and the speculative WebUI would (correctly) not be created. But later on as the instance-level |should_reuse_web_ui_| defaults to false, RFHM::CommitPending would try to get the |speculative_web_ui_| which would not be set and *could* cause a crash. As of now the crash doesn't happen because CommitPending is not called when the current RFH is kept for the navigation. BUG=376094 Committed: https://crrev.com/6454936159376e371fd27c2a14e27b18494850d7 Cr-Commit-Position: refs/heads/master@{#322485}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
carlosk
creis: PTAL clamy, fdegans: FYI This fixes that variable shadowing bug I found in http://crrev.com/967383002 ...
5 years, 9 months ago (2015-03-25 12:24:30 UTC) #3
Charlie Reis
LGTM. A test would be nice (here or in a followup) if it's easy to ...
5 years, 9 months ago (2015-03-26 03:21:55 UTC) #4
clamy
Lgtm! Thanks for catching this.
5 years, 9 months ago (2015-03-26 10:52:54 UTC) #5
carlosk
Thanks. On 2015/03/26 03:21:55, Charlie Reis wrote: > LGTM. > > A test would be ...
5 years, 9 months ago (2015-03-26 15:57:36 UTC) #6
carlosk
On 2015/03/26 15:57:36, carlosk wrote: > Thanks. > > On 2015/03/26 03:21:55, Charlie Reis wrote: ...
5 years, 9 months ago (2015-03-26 18:06:01 UTC) #7
Charlie Reis
I can't think of a case when we would stay in the same RFH and ...
5 years, 9 months ago (2015-03-26 19:00:27 UTC) #8
carlosk
On 2015/03/26 19:00:27, Charlie Reis wrote: > I can't think of a case when we ...
5 years, 9 months ago (2015-03-26 19:48:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012863004/1
5 years, 9 months ago (2015-03-26 19:49:40 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 9 months ago (2015-03-26 22:42:00 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 22:42:43 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6454936159376e371fd27c2a14e27b18494850d7
Cr-Commit-Position: refs/heads/master@{#322485}

Powered by Google App Engine
This is Rietveld 408576698