New issue
Advanced search Search tips

Issue 617090 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug

Blocking:
issue 614115



Sign in to add a comment

Add deprecation warnings when Web Audio is used in cross origin iframe without a user gesture

Project Member Reported by mlamouri@chromium.org, Jun 3 2016

Issue description

We aim to make this impossible in the future so we need to notify the developers about the change (in addition of checking whether this is common).
 
Labels: -M-53 M-54
Owner: mlamouri@chromium.org
Status: Assigned (was: Available)
Summary: Add deprecation warnings when Web Audio is used in cross origin iframe without a user gesture (was: Show console warning when WebAudio start emiting sound without a user gesture)
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Sep 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8e94d8acbaf7ffca80e06429422fe8cbd311f781

commit 8e94d8acbaf7ffca80e06429422fe8cbd311f781
Author: mlamouri <mlamouri@chromium.org>
Date: Tue Sep 13 09:01:08 2016

Warn about Web Audio without user gesture on Android no longer allowed on cross origin iframes.

This is a CL to send to M54 to warn users of Web Audio in cross origin iframes.

Note that because of how Web Audio work this warning (and the use counter) are
larger than reality: every `new AudioContext` in a cross origin iframe will warn
if not inside an event handler even if they are not meant to be used yet.

Intent to Intervene: https://groups.google.com/a/chromium.org/d/msg/blink-dev/51WbTwn0M_Y/VZuwn8-VAAAJ

BUG= 617090 

Review-Url: https://codereview.chromium.org/2311233002
Cr-Commit-Position: refs/heads/master@{#418201}

[modify] https://crrev.com/8e94d8acbaf7ffca80e06429422fe8cbd311f781/third_party/WebKit/Source/core/frame/Deprecation.cpp
[modify] https://crrev.com/8e94d8acbaf7ffca80e06429422fe8cbd311f781/third_party/WebKit/Source/core/frame/UseCounter.h
[modify] https://crrev.com/8e94d8acbaf7ffca80e06429422fe8cbd311f781/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
[modify] https://crrev.com/8e94d8acbaf7ffca80e06429422fe8cbd311f781/tools/metrics/histograms/histograms.xml

Labels: Merge-Request-54

Comment 6 by dimu@chromium.org, Sep 13 2016

Labels: -Merge-Request-54 Merge-Approved-54 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M54 (branch: 2840)
Project Member

Comment 7 by bugdroid1@chromium.org, Sep 13 2016

Labels: -merge-approved-54 merge-merged-2840
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903

commit 2fb1bdf0ffe1d08ed7ec098de07daf59447a1903
Author: Mounir Lamouri <mlamouri@chromium.org>
Date: Tue Sep 13 09:16:10 2016

Warn about Web Audio without user gesture on Android no longer allowed on cross origin iframes.

This is a CL to send to M54 to warn users of Web Audio in cross origin iframes.

Note that because of how Web Audio work this warning (and the use counter) are
larger than reality: every `new AudioContext` in a cross origin iframe will warn
if not inside an event handler even if they are not meant to be used yet.

Intent to Intervene: https://groups.google.com/a/chromium.org/d/msg/blink-dev/51WbTwn0M_Y/VZuwn8-VAAAJ

BUG= 617090 

Review-Url: https://codereview.chromium.org/2311233002
Cr-Commit-Position: refs/heads/master@{#418201}
(cherry picked from commit 8e94d8acbaf7ffca80e06429422fe8cbd311f781)

Review URL: https://codereview.chromium.org/2336143002 .

Cr-Commit-Position: refs/branch-heads/2840@{#323}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/third_party/WebKit/Source/core/frame/Deprecation.cpp
[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/third_party/WebKit/Source/core/frame/UseCounter.h
[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/tools/metrics/histograms/histograms.xml

Status: Fixed (was: Started)
Project Member

Comment 9 by bugdroid1@chromium.org, Oct 27 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903

commit 2fb1bdf0ffe1d08ed7ec098de07daf59447a1903
Author: Mounir Lamouri <mlamouri@chromium.org>
Date: Tue Sep 13 09:16:10 2016

Warn about Web Audio without user gesture on Android no longer allowed on cross origin iframes.

This is a CL to send to M54 to warn users of Web Audio in cross origin iframes.

Note that because of how Web Audio work this warning (and the use counter) are
larger than reality: every `new AudioContext` in a cross origin iframe will warn
if not inside an event handler even if they are not meant to be used yet.

Intent to Intervene: https://groups.google.com/a/chromium.org/d/msg/blink-dev/51WbTwn0M_Y/VZuwn8-VAAAJ

BUG= 617090 

Review-Url: https://codereview.chromium.org/2311233002
Cr-Commit-Position: refs/heads/master@{#418201}
(cherry picked from commit 8e94d8acbaf7ffca80e06429422fe8cbd311f781)

Review URL: https://codereview.chromium.org/2336143002 .

Cr-Commit-Position: refs/branch-heads/2840@{#323}
Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607}

[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/third_party/WebKit/Source/core/frame/Deprecation.cpp
[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/third_party/WebKit/Source/core/frame/UseCounter.h
[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp
[modify] https://crrev.com/2fb1bdf0ffe1d08ed7ec098de07daf59447a1903/tools/metrics/histograms/histograms.xml

Sign in to add a comment