Closed
Bug 1071623
Opened 10 years ago
Closed 9 years ago
make the browser_devices_get_user_media.js test pass with e10s
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
FIXED
Firefox 46
People
(Reporter: florian, Assigned: florian)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 1 obsolete file)
38.34 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
The UI for getUserMedia has been fixed in bug 973001 to work with e10s enabled, but the test for this piece of UI doesn't work with e10s and is currently disabled. We should fix it.
Flags: qe-verify-
Flags: firefox-backlog+
Updated•10 years ago
|
Blocks: e10s-tests
tracking-e10s:
--- → +
Assignee | ||
Comment 1•9 years ago
|
||
The things that prevented this test from working with e10s weren't exactly what I expected. I assumed all the things touching content.* and especially the things using content.wrappedJSObject.* to call functions from the page loaded in the tab would be broken, but it seems to be working just fine using CPOWs. Are CPOWs still OK to use in tests?
Attachment #8705743 -
Flags: review?(felipc)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → florian
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
They are still OK as long as they don't escape the add-on compartment.. I think most usage here looks ok, but it would be nice to test with the patches from bug 1233497 to make sure it doesn't break when that lands.
Comment 4•9 years ago
|
||
Although it's unclear how `MediaManagerService.mediaCaptureWindowState(content, hasVideo, hasAudio)` is working, with our without bug 1233497, as you can't pass CPOWs to native code.. Do you know why that works?
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to :Felipe Gomes (needinfo me!) from comment #4)
> Although it's unclear how
> `MediaManagerService.mediaCaptureWindowState(content, hasVideo, hasAudio)`
> is working, with our without bug 1233497, as you can't pass CPOWs to native
> code.. Do you know why that works?
That doesn't work with e10s. My patch here moves this code to a framescript.
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Florian Quèze [:florian] [:flo] from comment #2)
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=daab5576d253
This shows several different intermittent failures when the test runs with e10s :-(.
Assignee | ||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment on attachment 8705743 [details] [diff] [review]
Patch v1
Ok, I've taking a look but I'll finish the review once these failures are figured out. It was easy to miss the `let frameScript = function() {` at the beginning of the file, and since this is a big file, it's easy to not realize that and think this is running in the parent because it is a browser_*.js file.
that is to say, could you move the framescript part to a separate file (through support_files) and load it instead of keeping it all together?
Attachment #8705743 -
Flags: review?(felipc) → feedback+
Assignee | ||
Comment 9•9 years ago
|
||
After using ContentTask instead of CPOWs for the code touching content.wrappedJSObject.*, this is green on try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=119e98811f5b
I also added a few enableDevice calls, these let the test run correctly in a loop (--run-until-failure).
I agree the framescript would be better in a separate file, but I would like to do this in a follow-up bug at the same time as fixing the other two browser_devices_get_user_media*.js tests.
Attachment #8707558 -
Flags: review?(felipc)
Assignee | ||
Updated•9 years ago
|
Attachment #8705743 -
Attachment is obsolete: true
Updated•9 years ago
|
Attachment #8707558 -
Flags: review?(felipc) → review+
Assignee | ||
Comment 10•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/a2997ea0c867abb7d53254e0125fdd452a91022f
Bug 1071623 - make the browser_devices_get_user_media.js test pass with e10s, r=felipe.
Comment 11•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Comment 12•9 years ago
|
||
[bugday-20160323]
Status: RESOLVED,FIXED -> UNVERIFIED
STR: Not clear.
Addon Developer specific testing.
Component:
Name Firefox
Version 46.0b4
Build ID 20160322075646
Update Channel beta
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
OS Windows 7 SP1 x86_64
Comment 13•9 years ago
|
||
https://bugzilla.mozilla.org/buglist.cgi?quicksearch=browser_devices_get_user_media.js&list_id=12942609
has 3 e10s failures, so it's clearly running, so marking verified. Dunno to what degree the e10s failures are because of this bug or because of other changes.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•