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

Issue 23022006: Remove GetActiveEntry usage from content. (Closed)

Created:
7 years, 4 months ago by nasko
Modified:
7 years, 3 months ago
CC:
chromium-reviews, asanka, vsevik, hashimoto+watch_chromium.org, benjhayden+dwatch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, jam, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, yurys, paulirish+reviews_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, miu+watch_chromium.org, ctguil+watch_chromium.org, pfeldman, zork+watch_chromium.org, apiccion, gone, Ryan Sleevi
Visibility:
Public.

Description

Remove GetActiveEntry usage from content. Using GetActiveEntry can lead to subtle bugs, including security ones. See the bug entry for more details. BUG=273710 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223982

Patch Set 1 #

Total comments: 44

Patch Set 2 : Rebase on ToT. #

Patch Set 3 : Fixes based on Charlie's review. #

Patch Set 4 : Fix compile issue and content_unittests. #

Patch Set 5 : Fixing Save Page As code and test. #

Total comments: 17

Patch Set 6 : Another round of review. #

Patch Set 7 : Fixing android compile break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -144 lines) Patch
M content/browser/accessibility/accessibility_ui.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 4 chunks +4 lines, -8 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 4 chunks +10 lines, -10 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 51 chunks +76 lines, -78 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 9 chunks +18 lines, -17 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 2 3 4 5 19 chunks +19 lines, -19 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
nasko
Hey Charlie, This is a CL to remove usage of GetActiveEntry across content. Can you ...
7 years, 4 months ago (2013-08-16 10:41:27 UTC) #1
Charlie Reis
mkosiba: Can you take a look at the question in content/browser/android/content_view_core_impl.cc? It dates back to ...
7 years, 4 months ago (2013-08-16 22:10:14 UTC) #2
mkosiba (inactive)
LGTM for content_view_core_impl changes (but I'm not an OWNER) Dan, Ali - this should be ...
7 years, 4 months ago (2013-08-19 14:49:37 UTC) #3
gone
https://codereview.chromium.org/23022006/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/23022006/diff/1/content/browser/android/content_view_core_impl.cc#newcode1550 content/browser/android/content_view_core_impl.cc:1550: NavigationEntry* entry = web_contents_->GetController().GetVisibleEntry(); On 2013/08/19 14:49:38, mkosiba wrote: ...
7 years, 4 months ago (2013-08-19 18:40:39 UTC) #4
nasko
Hey guys, I'm renewing this CL after being away for a while. I've added apiccion@, ...
7 years, 3 months ago (2013-09-12 17:56:30 UTC) #5
abarth-chromium
On 2013/08/16 22:10:14, creis wrote: > abarth: Can you let us know whether SSLManager is ...
7 years, 3 months ago (2013-09-12 19:54:09 UTC) #6
nasko
On 2013/09/12 19:54:09, abarth wrote: > On 2013/08/16 22:10:14, creis wrote: > > abarth: Can ...
7 years, 3 months ago (2013-09-13 00:48:01 UTC) #7
abarth-chromium
On 2013/09/13 00:48:01, nasko wrote: > On 2013/09/12 19:54:09, abarth wrote: > > On 2013/08/16 ...
7 years, 3 months ago (2013-09-13 03:18:31 UTC) #8
nasko
Adding rdsmith@ for OWNERs review of chrome/browser/download.
7 years, 3 months ago (2013-09-13 22:54:26 UTC) #9
Randy Smith (Not in Mondays)
On 2013/09/13 22:54:26, nasko wrote: > Adding rdsmith@ for OWNERs review of chrome/browser/download. As noted ...
7 years, 3 months ago (2013-09-16 16:26:03 UTC) #10
Charlie Reis
Getting close. Looks like we still need to resolve Save As with no committed entry, ...
7 years, 3 months ago (2013-09-16 23:10:53 UTC) #11
nasko
As per email discussion, I've removed the changes to Save As and addressed the rest ...
7 years, 3 months ago (2013-09-18 17:03:17 UTC) #12
Randy Smith (Not in Mondays)
My understanding from the email thread was that this CL would silently abort a SavePage ...
7 years, 3 months ago (2013-09-18 17:12:44 UTC) #13
nasko
On 2013/09/18 17:12:44, rdsmith wrote: > My understanding from the email thread was that this ...
7 years, 3 months ago (2013-09-18 17:14:30 UTC) #14
Randy Smith (Not in Mondays)
On 2013/09/18 17:14:30, nasko wrote: > On 2013/09/18 17:12:44, rdsmith wrote: > > My understanding ...
7 years, 3 months ago (2013-09-18 17:30:57 UTC) #15
nasko
On 2013/09/18 17:30:57, rdsmith wrote: > On 2013/09/18 17:14:30, nasko wrote: > > On 2013/09/18 ...
7 years, 3 months ago (2013-09-18 17:32:14 UTC) #16
Randy Smith (Not in Mondays)
On 2013/09/18 17:32:14, nasko wrote: > On 2013/09/18 17:30:57, rdsmith wrote: > > On 2013/09/18 ...
7 years, 3 months ago (2013-09-18 17:45:01 UTC) #17
Charlie Reis
LGTM https://codereview.chromium.org/23022006/diff/41001/content/browser/web_contents/render_view_host_manager_unittest.cc File content/browser/web_contents/render_view_host_manager_unittest.cc (right): https://codereview.chromium.org/23022006/diff/41001/content/browser/web_contents/render_view_host_manager_unittest.cc#newcode953 content/browser/web_contents/render_view_host_manager_unittest.cc:953: EXPECT_TRUE(contents()->GetController().GetPendingEntry() == NULL); On 2013/09/18 17:03:18, nasko wrote: ...
7 years, 3 months ago (2013-09-18 18:36:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/23022006/66001
7 years, 3 months ago (2013-09-18 20:25:13 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-18 23:20:10 UTC) #20
Message was sent while issue was closed.
Change committed as 223982

Powered by Google App Engine
This is Rietveld 408576698