Youtube controls work incorrect in OSR mode

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: Youtube controls work incorrect in OSR mode

Postby codelimit » Thu Oct 08, 2020 9:13 am

Czarek wrote:Check if all resources on a web page loaded successfully when the issue occurs.


How can I check this?
I added some logging and that is what I see:

Code: Select all
OnLoadEnd() https://www.google.com/?gws_rd=ssl with status 200
OnLoadEnd() about:blank with status 0
OnLoadEnd() about:blank with status 0

OnLoadEnd() https://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1 with status 200
OnLoadEnd() https://developers-dot-devsite-v2-prod.appspot.com/youtube/iframe_api_reference_4f6454303134e849f414cff6fd5131a1bdc92422dd3df21a157eb80a4ffe24a7.frame with status 200
OnLoadEnd() https://www.youtube.com/embed/FAtdv94yzp4?widget_referrer=https%3A%2F%2Fdevelopers.google.com%2Fyoutube%2Fiframe_api_reference&enablejsapi=1&origin=https%3A%2F%2Fdevelopers-dot-devsite-v2-prod.appspot.com&widgetid=1 with status 200
OnLoadEnd() https://developers-dot-devsite-v2-prod.appspot.com/youtube/iframe_api_reference_e171e1b2c6e6f9206fdd47f6b72fcec577ea5bd671f52b7846e76fd0c0394898.frame with status 200
OnLoadEnd() https://www.youtube.com/embed/bHQqvYy5KYo?origin=https%3A%2F%2Fdevelopers.google.com&autohide=1&showinfo=0&video-id=bHQqvYy5KYo&enablejsapi=1&widgetid=1 with status 200
OnLoadEnd() https://developers.google.com/youtube/iframe_api_reference with status 200
OnLoadEnd() about:blank with status 0


For a comparison purposes i check the same without OSR:

Code: Select all
OnLoadEnd() https://www.google.com/?gws_rd=ssl with status 200
OnLoadEnd() about:blank with status 0
OnLoadEnd() about:blank with status 0

OnLoadEnd() https://www.youtube.com/embed/FAtdv94yzp4?widget_referrer=https%3A%2F%2Fdevelopers.google.com%2Fyoutube%2Fiframe_api_reference&enablejsapi=1&origin=https%3A%2F%2Fdevelopers-dot-devsite-v2-prod.appspot.com&widgetid=1 with status 200
OnLoadEnd() https://developers-dot-devsite-v2-prod.appspot.com/youtube/iframe_api_reference_e171e1b2c6e6f9206fdd47f6b72fcec577ea5bd671f52b7846e76fd0c0394898.frame with status 200
OnLoadEnd() https://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1 with status 200
OnLoadEnd() https://developers-dot-devsite-v2-prod.appspot.com/youtube/iframe_api_reference_4f6454303134e849f414cff6fd5131a1bdc92422dd3df21a157eb80a4ffe24a7.frame with status 200
OnLoadEnd() https://www.youtube.com/embed/bHQqvYy5KYo?origin=https%3A%2F%2Fdevelopers.google.com&autohide=1&showinfo=0&video-id=bHQqvYy5KYo&enablejsapi=1&widgetid=1 with status 200
OnLoadEnd() https://developers.google.com/youtube/iframe_api_reference with status 200
OnLoadEnd() about:blank with status 0


The number of loaded requests is the same, but content has some diff. If it even matter..

Also I see some warnings in standard output:

Code: Select all
[1008/171040.846:WARNING:extension_protocols.cc(271)] Failed to get directory for extension invalid
[1008/171040.880:WARNING:extension_protocols.cc(271)] Failed to get directory for extension invalid
[1008/171040.884:WARNING:extension_protocols.cc(271)] Failed to get directory for extension invalid
[1008/171040.892:WARNING:extension_protocols.cc(271)] Failed to get directory for extension invalid
[1008/171041.683:WARNING:extension_protocols.cc(271)] Failed to get directory for extension invalid
[1008/171041.699:WARNING:extension_protocols.cc(271)] Failed to get directory for extension invalid

[1008/171049.365:ERROR:frame_sink_provider_impl.cc(37)] No RenderWidgetHost exists with id 3 in process 4
[1008/171049.370:ERROR:frame_sink_provider_impl.cc(55)] No RenderWidgetHost exists with id 3 in process 4
[1008/171049.371:ERROR:frame_sink_provider_impl.cc(37)] No RenderWidgetHost exists with id 10 in process 5
[1008/171049.376:ERROR:frame_sink_provider_impl.cc(55)] No RenderWidgetHost exists with id 10 in process 5
[1008/171049.379:ERROR:frame_sink_provider_impl.cc(37)] No RenderWidgetHost exists with id 3 in process 4
[1008/171049.380:ERROR:frame_sink_provider_impl.cc(55)] No RenderWidgetHost exists with id 3 in process 4
Last edited by codelimit on Thu Oct 08, 2020 9:21 am, edited 1 time in total.
codelimit
Techie
 
Posts: 30
Joined: Mon Nov 04, 2019 11:48 am

Re: Youtube controls work incorrect in OSR mode

Postby Czarek » Thu Oct 08, 2020 9:20 am

Use developer tools and the network tab. Compare what loads when things work and when they don't.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Youtube controls work incorrect in OSR mode

Postby codelimit » Thu Oct 08, 2020 9:26 am

Sorry but this beyond my understanding. I never used developer tools (which tools do you mean exactly?). Can you please advice which info can I read/watch to understand what are you talking about?
codelimit
Techie
 
Posts: 30
Joined: Mon Nov 04, 2019 11:48 am

Re: Youtube controls work incorrect in OSR mode

Postby Czarek » Thu Oct 08, 2020 10:14 am

Right click on a page and select Show DevTools.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Youtube controls work incorrect in OSR mode

Postby uvhannes » Fri Oct 09, 2020 6:11 pm

in cef 76 this still works without issues.
I currently know that it starts getting into the described, bugged, state in cef 79 up to 85. I will test with 77 and 78 in a bit.

76: good
77 - 85: Broken

testable here: http://jsfiddle.net/G5GhH/38/

what cannot be loaded is: chrome-extension://pkedcjkdefgpdelpbcmbmeomcjbeemfm/cast_sender.js

This seems to be the chrome media router.
uvhannes
Newbie
 
Posts: 6
Joined: Mon Jul 03, 2017 5:15 pm

Re: Youtube controls work incorrect in OSR mode

Postby Czarek » Fri Oct 09, 2020 8:37 pm

Looks like this: https://stackoverflow.com/questions/258 ... -in-chrome
One user reports that when this error occurs it can sometimes break JS on the page.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 90 guests