New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Firefox & Chrome to use fake media stream #13062
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Perhaps @jugglinmike would also like to review?
@@ -221,6 +221,9 @@ def setup_kwargs(self, kwargs): | |||
channel=kwargs["browser_channel"]) | |||
kwargs["prefs_root"] = prefs_root | |||
|
|||
# Allow WebRTC tests to call getUserMedia. | |||
kwargs["extra_prefs"].append("media.navigator.streams.fake=true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I think this should be in https://searchfox.org/mozilla-central/source/testing/profiles/unittest/user.js or the wpt-specific equivalent that @whimboo is adding. But I guess here is OK temporarily if it's inconvenient to make an upstream patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to make a patch once @whimboo creates the wpt-specific profile, and I'll remove this afterwards. In the interim, let's land this to make Taskcluster results more useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My patch has already been landed, and was merged upstream via #13050.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sent a patch to m-c: https://phabricator.services.mozilla.com/D6579
Darn, meant to squash-merge but clicked the wrong button. Sorry. |
I'm a little late, but I'm still interested in hearing your perspective. This makes the browser behave less realistically, so I'm concerned about making it the default behavior for users of the WPT CLI. It might be confusing for folks to understand discrepancies in results reported by the CLI and by running manually or with a different automation tool. And if they wanted to learn more, they'd have to research the source code (rather than read a log file). What do you think about maintaining this at the edges? Specifically, that would mean adding the browser-specific flags to the TaskCluster script. |
Sorry for the rush, @jugglinmike .
IMHO, this merely shuffles the confusion around, from discrepancy between manual runs (or other runners) and Our current setup until very recently (i.e. on BuildBot) is more like the latter, but I'd argue that the former is slightly better, for the following reasons:
Feel free to respond to my reasoning above. This is certainly something worth discussing! |
I fully agree with what @Hexcles says. I agree that there's a concern about making the test configuration too different from the real browser, and I would like to reduce the number of differences we have for Firefox by cutting down the profile settings we apply (removing ones that just enable features that aren't on by default in nightly for example). However, enabling fake input streams so that media tests can work seems pretty clearly on the side of acceptable test configuration. |
We've been talking about providing a link to log files on wpt.fyi. That's the feature I've had in mind when comparing the discoverability of these two solutions. To me, logs are a more intentional way to communicate details about the runtime (compared with program source code, however well documented). That's the third time we've mentioned documentation. I appreciate your perspective as a downstream consumer, and docs seems particularly relevant in that case. The concerns I have about result veracity would be at least partially mitigated if we were more forward about the things we do to support automation. Before we can get there, I think a more general restructuring is in order--see gh-13125. In the immediate term, we were previously recommending the use of these arguments for Chrome, so that should be removed: gh-13126 |
This is yet another difference in results I observed between BuildBot and Taskcluster.
This was added to wpt.fyi in web-platform-tests/results-collection#504 .