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

Issue 216113007: Check the scheme of a RenderViewHost before assuming it contains an extension. (Closed)

Created:
6 years, 9 months ago by Jeffrey Yasskin
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Check the scheme of a RenderViewHost before assuming it contains an extension. Thanks to ncarter for the test! BUG=357382 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261496

Patch Set 1 #

Total comments: 2

Patch Set 2 : scheme() constructs a string instead of a StringPiece. Who knew? #

Patch Set 3 : Adopt Nick's test and fix sense of scheme check. #

Total comments: 2

Patch Set 4 : Allow the chrome-guest: scheme to fix WebViewTest.ContextMenusAPI_Basic #

Patch Set 5 : Sync to r260786 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -3 lines) Patch
M chrome/browser/extensions/process_manager_browsertest.cc View 1 2 2 chunks +57 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Jeffrey Yasskin
Here's a fix. Nick, if you have time to write a test, that'd be greatly ...
6 years, 9 months ago (2014-03-28 18:46:52 UTC) #1
ncarter (slow)
I'll take a stab at a test right now; I have an idea. https://codereview.chromium.org/216113007/diff/1/extensions/browser/process_manager.cc File ...
6 years, 9 months ago (2014-03-28 19:25:31 UTC) #2
Jeffrey Yasskin
https://codereview.chromium.org/216113007/diff/1/extensions/browser/process_manager.cc File extensions/browser/process_manager.cc (right): https://codereview.chromium.org/216113007/diff/1/extensions/browser/process_manager.cc#newcode67 extensions/browser/process_manager.cc:67: if (site_instance->GetSiteURL().scheme() != kExtensionScheme) On 2014/03/28 19:25:31, ncarter wrote: ...
6 years, 9 months ago (2014-03-28 20:19:35 UTC) #3
ncarter (slow)
I've got a test up here. Should we land separately, or merge together?
6 years, 8 months ago (2014-03-31 21:22:23 UTC) #4
ncarter (slow)
Sorry: https://codereview.chromium.org/220013002/
6 years, 8 months ago (2014-03-31 21:22:31 UTC) #5
Jeffrey Yasskin
https://codereview.chromium.org/216113007/diff/40001/chrome/browser/extensions/process_manager_browsertest.cc File chrome/browser/extensions/process_manager_browsertest.cc (right): https://codereview.chromium.org/216113007/diff/40001/chrome/browser/extensions/process_manager_browsertest.cc#newcode151 chrome/browser/extensions/process_manager_browsertest.cc:151: ASSERT_EQ(1u, pm->GetRenderViewHostsForExtension(extension->id()).size()); I made this an ASSERT so the ...
6 years, 8 months ago (2014-03-31 23:15:40 UTC) #6
ncarter (slow)
lgtm https://codereview.chromium.org/216113007/diff/40001/chrome/browser/extensions/process_manager_browsertest.cc File chrome/browser/extensions/process_manager_browsertest.cc (right): https://codereview.chromium.org/216113007/diff/40001/chrome/browser/extensions/process_manager_browsertest.cc#newcode151 chrome/browser/extensions/process_manager_browsertest.cc:151: ASSERT_EQ(1u, pm->GetRenderViewHostsForExtension(extension->id()).size()); On 2014/03/31 23:15:40, Jeffrey Yasskin wrote: ...
6 years, 8 months ago (2014-03-31 23:23:38 UTC) #7
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 8 months ago (2014-03-31 23:27:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/216113007/40001
6 years, 8 months ago (2014-03-31 23:27:24 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:03:18 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-01 00:03:18 UTC) #11
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 8 months ago (2014-04-01 00:23:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/216113007/40001
6 years, 8 months ago (2014-04-01 00:23:15 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:45:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-01 00:45:38 UTC) #15
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 8 months ago (2014-04-01 00:50:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/216113007/40001
6 years, 8 months ago (2014-04-01 00:51:49 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 02:17:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-01 02:17:55 UTC) #19
Jeffrey Yasskin
Fady, does it make sense to treat a chrome-guest: WebContents as an Extension view? I ...
6 years, 8 months ago (2014-04-01 07:11:47 UTC) #20
ncarter (slow)
fady: ping
6 years, 8 months ago (2014-04-03 00:17:01 UTC) #21
Fady Samuel
lgtm
6 years, 8 months ago (2014-04-03 00:49:52 UTC) #22
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 8 months ago (2014-04-03 00:51:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/216113007/70001
6 years, 8 months ago (2014-04-03 00:52:30 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 11:59:09 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_perf_unittests, telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=293046
6 years, 8 months ago (2014-04-03 11:59:09 UTC) #26
Jeffrey Yasskin
The CQ bit was checked by jyasskin@chromium.org
6 years, 8 months ago (2014-04-03 19:01:54 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/216113007/70001
6 years, 8 months ago (2014-04-03 19:02:12 UTC) #28
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 19:03:47 UTC) #29
Message was sent while issue was closed.
Change committed as 261496

Powered by Google App Engine
This is Rietveld 408576698