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

Issue 11316038: Make it so the windows store protocol is properly handled (Closed)

Created:
8 years, 1 month ago by cpu_(ooo_6.6-7.5)
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Make it so the windows store protocol is properly handled The core problem is that the key that controls the execution of a protocol HKEY_CLASSES_ROOT\<protocol>\Shell\Open\Command Has changed, we expect the Default value to be a valid command like foo.exe %1 but this is no longer the case. This value can be empty and other values will control what happens, for instance DelegateExecute. This CL also whitelists the protocol, alternatively we could hardcode a meaniful string to present to the user but that presents localization issues. We take the same approach as IE and just launch the windows store if we see this protocol. BUG=159096 TEST=see bug Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175678

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -13 lines) Patch
M chrome/browser/external_protocol/external_protocol_handler.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/platform_util_win.cc View 1 3 chunks +19 lines, -13 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
cpu_(ooo_6.6-7.5)
In this version of the change we whitelist the protocol, like we do for mailto, ...
7 years, 11 months ago (2013-01-08 01:47:05 UTC) #1
jschuh
lgtm with one nit. https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc File chrome/browser/platform_util_win.cc (right): https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc#newcode168 chrome/browser/platform_util_win.cc:168: if (!ValidateShellCommandForScheme(url.scheme())) I feel like ...
7 years, 11 months ago (2013-01-08 04:06:00 UTC) #2
darin (slow to review)
https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc File chrome/browser/platform_util_win.cc (right): https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc#newcode129 chrome/browser/platform_util_win.cc:129: return false; nit: 2 space indent https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc#newcode132 chrome/browser/platform_util_win.cc:132: } ...
7 years, 11 months ago (2013-01-08 06:00:14 UTC) #3
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc File chrome/browser/platform_util_win.cc (right): https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc#newcode129 chrome/browser/platform_util_win.cc:129: return false; On 2013/01/08 06:00:14, darin wrote: > nit: ...
7 years, 11 months ago (2013-01-08 19:01:16 UTC) #4
darin (slow to review)
LGTM
7 years, 11 months ago (2013-01-08 19:12:33 UTC) #5
jschuh
https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc File chrome/browser/platform_util_win.cc (right): https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc#newcode168 chrome/browser/platform_util_win.cc:168: if (!ValidateShellCommandForScheme(url.scheme())) On 2013/01/08 19:01:16, cpu wrote: > On ...
7 years, 11 months ago (2013-01-08 19:22:37 UTC) #6
nsylvain
On 2013/01/08 19:22:37, Justin Schuh wrote: > https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc > File chrome/browser/platform_util_win.cc (right): > > https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_win.cc#newcode168 ...
7 years, 11 months ago (2013-01-08 19:58:16 UTC) #7
cpu_(ooo_6.6-7.5)
7 years, 11 months ago (2013-01-08 20:16:53 UTC) #8
On 2013/01/08 19:58:16, nsylvain wrote:
> On 2013/01/08 19:22:37, Justin Schuh wrote:
> >
>
https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_...
> > File chrome/browser/platform_util_win.cc (right):
> > 
> >
>
https://codereview.chromium.org/11316038/diff/1/chrome/browser/platform_util_...
> > chrome/browser/platform_util_win.cc:168: if
> > (!ValidateShellCommandForScheme(url.scheme()))
> > On 2013/01/08 19:01:16, cpu wrote:
> > > On 2013/01/08 04:06:00, Justin Schuh wrote:
> > > > I feel like Nicolas should sign off on this one given the original bug.
> > > 
> > > Ok, I'll ping him.
> > 
> > I'm pretty sure I typed that after you handed me a tequila. Please
disregard.
> 
> Nicolas thinks the code looks fine...  I assume you tried an empty string
(with
> not alternate ways of describing the command) on Win7 and it did not crash,
just
> failed silently?

Yep, no crash.

Powered by Google App Engine
This is Rietveld 408576698