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

Issue 2561343002: Revert making trying to authorize a nonsense device id a bad_message. (Closed)

Created:
4 years ago by Max Morin
Modified:
4 years ago
Reviewers:
DaleCurtis
CC:
audio-mojo-cl_google.com, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org, o1ka, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert making trying to authorize a nonsense device id a bad_message. As it happens, renderers actually do this, and we don't want to unnecessarily crash them. Instead, use the previous behaviour of returning OUTPUT_DEVICE_STATUS_ERROR_NOT_FOUND instead. One way to trigger a nonsense id being sent to the browser is by using the setSinkId method of an HTMLMediaElement. BUG=671167 Committed: https://crrev.com/d548859dc67b223acef855cfce6e7e92c2ec34b7 Cr-Commit-Position: refs/heads/master@{#437933}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M content/browser/renderer_host/media/audio_output_authorization_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Max Morin
Dale: PTAL at this small CL. +CC people from the bug.
4 years ago (2016-12-09 13:04:55 UTC) #3
DaleCurtis
Do we want to allow junk to be sent over like this? Seems like it ...
4 years ago (2016-12-09 22:33:59 UTC) #4
Max Morin
On 2016/12/09 22:33:59, DaleCurtis wrote: > Do we want to allow junk to be sent ...
4 years ago (2016-12-12 08:11:39 UTC) #5
Guido Urdaneta
On 2016/12/09 22:33:59, DaleCurtis wrote: > Do we want to allow junk to be sent ...
4 years ago (2016-12-12 09:24:02 UTC) #6
DaleCurtis
lgtm then, though we generally perform strict error checks where possible for unexpected behavior.
4 years ago (2016-12-12 18:33:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2561343002/1
4 years ago (2016-12-12 19:46:42 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-12 22:38:25 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-12 22:42:55 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d548859dc67b223acef855cfce6e7e92c2ec34b7
Cr-Commit-Position: refs/heads/master@{#437933}

Powered by Google App Engine
This is Rietveld 408576698