Closed Bug 1332516 Opened 9 years ago Closed 9 years ago

Intermittent browser/base/content/test/webrtc/browser_devices_get_user_media_unprompted_access_tear_off_tab.js | expected notification getUserMedia:response:allow - Got undefined, expected 1

Categories

(Core :: WebRTC, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox52 --- unaffected
firefox53 --- fixed
firefox54 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: mchiang)

References

(Depends on 1 open bug)

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell fixed])

Attachments

(1 file)

This looks like fallout from bug 1270572. mchiang, can you take a look at this, please? Thank you.
Blocks: 1270572
Flags: needinfo?(mchiang)
Assignee: nobody → mchiang
Flags: needinfo?(mchiang)
Rank: 15
Priority: -- → P1
Comment on attachment 8829357 [details] Bug 1332516 - Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; https://reviewboard.mozilla.org/r/106488/#review108338 Your commit message says "Fix ... by adding an argument", I don't see how that relates to what's in the patch. Could you please explain? ::: browser/base/content/test/webrtc/browser_devices_get_user_media_unprompted_access_tear_off_tab.js:42 (Diff revision 1) > gBrowser.selectedBrowser.messageManager.loadFrameScript(CONTENT_SCRIPT_HELPER, true); > > info("request audio+video and check if there is no prompt"); > yield promiseRequestDevice(true, true, null, null, win.gBrowser.selectedBrowser); > yield promiseObserverCalled("getUserMedia:request"); > - yield promiseNoPopupNotification("webRTC-shareDevices"); > + let promises = [promiseObserverCalled("getUserMedia:response:allow"), Why are you removing the check that we don't have a permission prompt shown in the UI? ::: browser/base/content/test/webrtc/browser_devices_get_user_media_unprompted_access_tear_off_tab.js:47 (Diff revision 1) > - yield promiseNoPopupNotification("webRTC-shareDevices"); > - yield expectObserverCalled("getUserMedia:response:allow"); > - yield expectObserverCalled("recording-device-events"); > + let promises = [promiseObserverCalled("getUserMedia:response:allow"), > + promiseObserverCalled("recording-device-events")]; > + yield Promise.all(promises); > > - let promises = [promiseObserverCalled("recording-device-events"), > + promises = [promiseObserverCalled("recording-device-events"), > promiseObserverCalled("recording-device-events"), The indent is broken here.
Attachment #8829357 - Flags: review?(florian) → review-
Comment on attachment 8829357 [details] Bug 1332516 - Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; https://reviewboard.mozilla.org/r/106488/#review108338 Sorry I mixed up, adding an argument should be for another bug (javascript error). > Why are you removing the check that we don't have a permission prompt shown in the UI? Just think that checking getUserMedia:response:allow is sufficient to assure there is no prompt. Will add it back.
Comment on attachment 8829357 [details] Bug 1332516 - Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; https://reviewboard.mozilla.org/r/106488/#review108536 Thanks!
Attachment #8829357 - Flags: review?(florian) → review+
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/41b7e94d14fc Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; r=florian
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Comment on attachment 8829357 [details] Bug 1332516 - Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; Approval Request Comment [Feature/Bug causing the regression]: bug 1270572 [User impact if declined]: intermittent mochitest failure [Is this code covered by automated tests?]: Yes [Has the fix been verified in Nightly?]: yes [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: none [Is the change risky?]: no [Why is the change risky/not risky?]: it only modifies mochitest [String changes made/needed]: none
Attachment #8829357 - Flags: approval-mozilla-aurora?
Comment on attachment 8829357 [details] Bug 1332516 - Fix Intermittent browser_devices_get_user_media_unprompted_access_tear_off_tab.js; test-only changes don't need approval for uplift
Attachment #8829357 - Flags: approval-mozilla-aurora?
Depends on: 1334752
Whiteboard: [stockwell fixed]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: