Closed
Bug 1228564
Opened 9 years ago
Closed 9 years ago
Non audible object shouldn't register AudioChannelAgent and re-register audio capturing when we create new AudioChannelAgent
Categories
(Firefox OS Graveyard :: AudioChannel, defect)
Tracking
(firefox46 fixed, b2g-master verified)
VERIFIED
FIXED
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(2 files)
This bug is fork from bug1190040 comment32.
---
In present design, the WindowAudioCaptureChanged() would only be called via the GetAudioCaptured().
We don't have a mechanism to automatically capture other new MediaElements which are created after calling GetAudioCaptured().
We need to have a check when registering the AudioChannelAgent. If its owner window has already been captured, we should capture its media content as well.
Assignee | ||
Comment 1•9 years ago
|
||
Bug 1228564 - part 1 : revert the changeset of bug 1190040.
Assignee | ||
Comment 2•9 years ago
|
||
Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered.
Assignee | ||
Comment 3•9 years ago
|
||
All platforms + mochitests : https://treeherder.mozilla.org/#/jobs?repo=try&revision=9e28a0ca98d2
B2G + all tests : https://treeherder.mozilla.org/#/jobs?repo=try&revision=4e437047cb95
Assignee | ||
Comment 5•9 years ago
|
||
Got some test cases fails, still trying to fix them.
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8693455 [details]
MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26469/diff/1-2/
Attachment #8693455 -
Flags: review?(amarchesini)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8693456 [details]
MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26471/diff/1-2/
Attachment #8693456 -
Flags: review?(amarchesini)
Comment 9•9 years ago
|
||
Comment on attachment 8693456 [details]
MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
https://reviewboard.mozilla.org/r/26471/#review25643
::: dom/base/nsGlobalWindow.cpp:1232
(Diff revision 2)
> - Preferences::AddBoolVarCache(&sIdleObserversAPIFuzzTimeDisabled,
> + Preferences::AddBoolVarCache(&sIdleObserversAPIFuzzTimeDisabled,
revert all these changes and keep only what is needed for this patch.
If you want, file a follow up to remove the spaces.
::: dom/html/HTMLMediaElement.cpp:4744
(Diff revision 2)
> + if (!HasAudio()) {
moved after mPaused || Muted() check
Attachment #8693456 -
Flags: review?(amarchesini) → review+
Updated•9 years ago
|
Attachment #8693455 -
Flags: review?(amarchesini) → review+
Comment 10•9 years ago
|
||
Comment on attachment 8693455 [details]
MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku.
https://reviewboard.mozilla.org/r/26469/#review25645
Comment 11•9 years ago
|
||
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8693455 [details]
MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26469/diff/2-3/
Attachment #8693455 -
Attachment description: MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. → MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku.
Assignee | ||
Updated•9 years ago
|
Attachment #8693456 -
Attachment description: MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. → MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8693456 [details]
MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26471/diff/2-3/
Assignee | ||
Comment 14•9 years ago
|
||
Keywords: checkin-needed
Assignee | ||
Comment 15•9 years ago
|
||
Rebase patches.
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8693455 [details]
MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26469/diff/3-4/
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8693456 [details]
MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26471/diff/3-4/
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 18•9 years ago
|
||
Comment on attachment 8693455 [details]
MozReview Request: Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26469/diff/4-5/
Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8693456 [details]
MozReview Request: Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/26471/diff/4-5/
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 20•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/28e4faa6705c
https://hg.mozilla.org/integration/mozilla-inbound/rev/14a4637e9d96
Keywords: checkin-needed
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/f96142e950e0 for Android M(4) failures:
E.g. https://treeherder.mozilla.org/logviewer.html#?job_id=19026021&repo=mozilla-inbound
08:03:06 INFO - 51 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | iframe.mute exists
08:03:06 INFO - 52 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | iframe.unmute exists
08:03:06 INFO - 53 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | iframe.getMuted exists
08:03:06 INFO - 54 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | iframe.getVolume exists
08:03:06 INFO - 55 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | iframe.setVolume exists
08:03:06 INFO - 56 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | allowedAudioChannels exist
08:03:06 INFO - 57 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | 1 audio channel by default
08:03:06 INFO - 58 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | Correct class
08:03:06 INFO - 59 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.getVolume exists
08:03:06 INFO - 60 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.setVolume exists
08:03:06 INFO - 61 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.getMuted exists
08:03:06 INFO - 62 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.setMuted exists
08:03:06 INFO - 63 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.isActive exists
08:03:06 INFO - 64 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | undefined assertion name
08:03:06 INFO - 65 INFO Test : audio-muted-by-default
08:03:06 INFO - 66 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | allowedAudioChannels exist
08:03:06 INFO - 67 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | 1 audio channel by default
08:03:06 INFO - 68 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | Correct class
08:03:06 INFO - 69 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.getMuted exists
08:03:06 INFO - 70 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | ac.setMuted exists
08:03:06 INFO - 71 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | activestatechanged event received.
08:03:06 INFO - 72 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | Muted channel by default
08:03:06 INFO - 73 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | Unmuted the channel.
08:03:06 INFO - 74 INFO TEST-UNEXPECTED-FAIL | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | Test timed out.
08:03:06 INFO - reportError@SimpleTest/TestRunner.js:114:7
08:03:06 INFO - TestRunner._checkForHangs@SimpleTest/TestRunner.js:134:7
08:03:18 INFO - 75 INFO TEST-OK | dom/browser-element/mochitest/test_browserElement_inproc_AudioChannel.html | took 312972ms
Flags: needinfo?(alwu)
Assignee | ||
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
bugherder |
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(alwu)
Assignee | ||
Updated•9 years ago
|
Summary: Check the audio capturing when we register the new AudioChannelAgent → Non audible object shouldn't register AudioChannelAgent and re-register audio capturing when we create new AudioChannelAgent
Comment 29•9 years ago
|
||
This issue is Verified Fixed. I checked 3 of the 4 following duplicates: Bug 1226023 Bug 1227078 and Bug 1232602.
Results: Issues described in the 3 bugs did not reproduce.
I did not check Bug 1221916 however as Qanalyst is unable to verify this issue specifically.
Comment 30•9 years ago
|
||
This issue is Verified Fixed for Aries Master and Flame Master.
Result: The following duplicates do NOT reproduce: Bug 1226023 Bug 1227078 and Bug 1232602.
Environmental Variables:
Device: Aries 2.6
BuildID: 20160105105910
Gaia: 78b2bc4cad3fcf83cbbbe4aeb77079cf956972cf
Gecko: 29258f59e5456a1a518ccce6b473b50c1173477e
Gonk: a19052e4389c3ae2d8fc3e7a74a475401baacc56
Version: 46.0a1 (2.6)
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:46.0) Gecko/46.0 Firefox/46.0
Environmental Variables:
Device: Flame 2.6 Kk Fullflash (512mb)
BuildID: 20160105030240
Gaia: 78b2bc4cad3fcf83cbbbe4aeb77079cf956972cf
Gecko: 29258f59e5456a1a518ccce6b473b50c1173477e
Gonk: 205ac4204bbbb2098a8046444acba551ba5dc75a
Version: 46.0a1 (2.6)
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:46.0) Gecko/46.0 Firefox/46.0
-----------------------------------------------------------------
This issue DOES occur on Flame 2.5.
Result: Music will stop when opening Camera app: Bug 1227078. This duplicated bug blocks me from being able to test Bug 1227078 and Bug 1226023.
Environmental Variables:
Device: Flame 2.5 Kk Fullflash (512mb)
BuildID: 20160105125513
Gaia: 50c5babe34fb2b055da34fdde6847aabffe73246
Gecko: d8517b54e27903b9f0a94d76470b4f8126e09eb0
Gonk: 205ac4204bbbb2098a8046444acba551ba5dc75a
Version: 44.0 (2.5)
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:44.0) Gecko/44.0 Firefox/44.0
Updated•9 years ago
|
QA Whiteboard: [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
You need to log in
before you can comment on or make changes to this bug.
Description
•