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

Issue 1050063002: Web MIDI: allow http://localhost to prompt sysex permission (Closed)

Created:
5 years, 8 months ago by Takashi Toyoshima
Modified:
5 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: allow http://localhost to prompt sysex permission Allow to obtain a sysex permission for localhost even if the scheme is non-secure. This is inteded for to use for testing. TEST=manual check with http://localhost:xxx and http://127.0.0.1:xxx BUG=470170 Committed: https://crrev.com/78fb2d9a429de070b0d7c9c57710cffa52c4b52b Cr-Commit-Position: refs/heads/master@{#323555}

Patch Set 1 #

Total comments: 3

Patch Set 2 : use net/ #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M chrome/browser/content_settings/permission_context_base.cc View 1 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
Takashi Toyoshima
msramek for security, and markus for owners review. I disabled to edit and add exceptions ...
5 years, 8 months ago (2015-04-01 12:34:08 UTC) #2
msramek
I think the resolution of localhost should be safe (unless "localhost" in /etc/hosts points to ...
5 years, 8 months ago (2015-04-01 12:59:16 UTC) #3
markusheintz_
Adding felt@. MIDI settings are only persisted for secure scheme right? What is the threat ...
5 years, 8 months ago (2015-04-01 13:31:31 UTC) #5
felt
It's fine to allow localhost (it is a secure origin by the definition) but I ...
5 years, 8 months ago (2015-04-01 15:35:51 UTC) #7
palmer
> It's fine to allow localhost (it is a secure origin by the definition) but ...
5 years, 8 months ago (2015-04-01 17:58:36 UTC) #8
felt
https://codereview.chromium.org/1050063002/diff/1/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/1050063002/diff/1/chrome/browser/content_settings/permission_context_base.cc#newcode22 chrome/browser/content_settings/permission_context_base.cc:22: bool IsHTTPLocalhost(const GURL& url) { You should use net::IsLocalhost ...
5 years, 8 months ago (2015-04-01 18:04:30 UTC) #9
Takashi Toyoshima
From media/DEPS, > # Do NOT add net/ or ui/base without a great reason, they're ...
5 years, 8 months ago (2015-04-02 10:51:38 UTC) #10
markusheintz_
On 2015/04/02 10:51:38, Takashi Toyoshima (chromium) wrote: > From media/DEPS, > > # Do NOT ...
5 years, 8 months ago (2015-04-02 12:04:33 UTC) #11
Takashi Toyoshima
Ah, sorry. I'm confused because my other changes are inside media/. But here isn't media/. ...
5 years, 8 months ago (2015-04-02 14:18:07 UTC) #12
Takashi Toyoshima
Updated the CL with TODO + net/ at Patch Set 2, and rebased at Patch ...
5 years, 8 months ago (2015-04-02 14:59:03 UTC) #13
markusheintz_
On 2015/04/02 14:59:03, Takashi Toyoshima (chromium) wrote: > Updated the CL with TODO + net/ ...
5 years, 8 months ago (2015-04-02 15:27:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1050063002/40001
5 years, 8 months ago (2015-04-02 15:41:00 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-02 20:27:40 UTC) #17
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:28:45 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/78fb2d9a429de070b0d7c9c57710cffa52c4b52b
Cr-Commit-Position: refs/heads/master@{#323555}

Powered by Google App Engine
This is Rietveld 408576698