WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158257
[GTK] Media and audio permission request unit tests are timing out
https://bugs.webkit.org/show_bug.cgi?id=158257
Summary
[GTK] Media and audio permission request unit tests are timing out
Carlos Garcia Campos
Reported
2016-06-01 02:51:25 PDT
/webkit2/WebKitWebView/usermedia-permission-requests: ** (WebKitWebProcess:35051): WARNING **: PulseAudio: error: Connection refused ** (WebKitWebProcess:35051): WARNING **: PulseAudio: failed to connect to daemon TEST: WebKitBuild/Debug/bin/TestWebKitAPI/WebKit2Gtk/TestUIClient: TIMEOUT /webkit2/WebKitWebView/audio-usermedia-permission-request: ** (WebKitWebProcess:35379): WARNING **: PulseAudio: error: Connection refused ** (WebKitWebProcess:35379): WARNING **: PulseAudio: failed to connect to daemon TEST: WebKitBuild/Debug/bin/TestWebKitAPI/WebKit2Gtk/TestUIClient: TIMEOUT I don't know if this is something specific to the bots, or that the API is just broken, I never build with that enabled.
Attachments
Patch
(8.31 KB, patch)
2020-05-07 08:43 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
Patch
(9.84 KB, patch)
2020-05-08 01:36 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
Patch
(10.28 KB, patch)
2020-05-08 06:39 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
Patch
(9.83 KB, patch)
2020-05-11 01:19 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2016-06-01 02:54:57 PDT
Looks like a bot issue.
Michael Catanzaro
Comment 2
2018-11-02 17:46:21 PDT
/webkit/WebKitWebView/usermedia-enumeratedevices-permission-check is similarly broken. (I wonder if it ever passed on the bots?) I'm marking it against this bug.
Philippe Normand
Comment 3
2020-05-07 06:28:22 PDT
I can't reproduce this. Let's try to unskip and see the the gtk-api EWS likes it or not...
Philippe Normand
Comment 4
2020-05-07 06:31:54 PDT
Oh actually, I can reproduce this!!! Let's debug the fun...
Philippe Normand
Comment 5
2020-05-07 08:43:44 PDT
Created
attachment 398738
[details]
Patch
EWS Watchlist
Comment 6
2020-05-07 08:44:28 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Philippe Normand
Comment 7
2020-05-07 08:44:59 PDT
Comment on
attachment 398738
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=398738&action=review
> Source/WebKit/ChangeLog:10 > + (webkit_settings_set_enable_mock_capture_devices): Hack: relax > + secure connection requirement when enabling Mock sources.
Carlos, I haven't found a better way to handle this. In the mac port this is exposed as a private setting. Do we have a similar thing?
Carlos Garcia Campos
Comment 8
2020-05-08 01:05:21 PDT
Comment on
attachment 398738
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=398738&action=review
>> Source/WebKit/ChangeLog:10 >> + secure connection requirement when enabling Mock sources. > > Carlos, I haven't found a better way to handle this. In the mac port this is exposed as a private setting. Do we have a similar thing?
We don't have private settings, but we can add private API to enable/disable an internal setting.
> Tools/ChangeLog:8 > + Fix getUserMedia glib tests. They require mock media capture devices.
So, do the tests really need to enable mock devices? or what they really need is enable secure connection and we use that setting to get it?
Philippe Normand
Comment 9
2020-05-08 01:36:28 PDT
Created
attachment 398841
[details]
Patch
Philippe Normand
Comment 10
2020-05-08 02:30:29 PDT
Comment on
attachment 398738
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=398738&action=review
>> Tools/ChangeLog:8 >> + Fix getUserMedia glib tests. They require mock media capture devices. > > So, do the tests really need to enable mock devices? or what they really need is enable secure connection and we use that setting to get it?
In the latest patch I disabled mock devices because indeed I thought they were not required, but here I do have a webcam, tests pass. On the EWS bot there's no webcam, tests time out. So I'll re-enable mock devices and see if the bot likes this...
Philippe Normand
Comment 11
2020-05-08 06:39:51 PDT
Created
attachment 398856
[details]
Patch
Philippe Normand
Comment 12
2020-05-08 07:03:06 PDT
api-gtk is green, woohoo.
Carlos Garcia Campos
Comment 13
2020-05-10 22:02:23 PDT
Comment on
attachment 398856
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=398856&action=review
> Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:2766 > +void webkitWebViewSetMediaCaptureRequiresSecureConnection(WebKitWebView* webView, bool required)
Why don't you add the private API to WebKitSettings directly?
> Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:2772 > + page.setPreferences(*preferences);
page is only used here you can getPage(webView).setPreferences(*preferences); But why do you need to set the page preferences again here?
Philippe Normand
Comment 14
2020-05-11 01:19:04 PDT
Created
attachment 399002
[details]
Patch
EWS
Comment 15
2020-05-11 02:48:04 PDT
Committed
r261473
: <
https://trac.webkit.org/changeset/261473
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 399002
[details]
.
Radar WebKit Bug Importer
Comment 16
2020-05-11 02:49:15 PDT
<
rdar://problem/63082298
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug