Page 1 of 2

Spotify links crash the browser

Posted: Sat Apr 10, 2021 6:23 pm
by thefunkyjoint
Hello,

I've found out that any Spotify link i try to open, crashes the browser.

Tried with the SimpleBrowser demo.

Example link :

https://open.spotify.com/episode/0PtNt3U5pawDwslM0IUTAW?si=EbfuO1ctR2SC4UiJix3KIQ

As soon as open it, app crashes and closes.

Any hints ?

Re: Spotify links crash the browser

Posted: Sun Apr 11, 2021 8:09 am
by salvadordf
I can reproduce the error too with the official CEF sample application (cefclient). :oops:

I'll get a trace and report it.

Edit : This is the issue in the CEF project https://bitbucket.org/chromiumembedded/cef/issues/3105/cefclient-crashes-loading-a-page-with-drm

Re: Spotify links crash the browser

Posted: Sun Apr 11, 2021 11:27 am
by thefunkyjoint
Thanks for the feedback Salvador ! So, let's wait a fix :?

Re: Spotify links crash the browser

Posted: Tue Apr 13, 2021 9:08 am
by salvadordf
The CEF project maintainer fixed this issue in CEF 90 which will be released in a few days.

This issue was caused by a request with this URI :

Code: Select all

spotify://episode/0PtNt3U5pawDwslM0IUTAW?si=EbfuO1ctR2SC4UiJix3KIQ
Workaround :
You can avoid this issue in CEF 89 by using the TChromium.OnBeforeResourceLoad event and setting Result to RV_CANCEL when request.url starts with "spotify" but to be safe I would cancel all requests that don't start with a known scheme like HTTP or FTP.

Re: Spotify links crash the browser

Posted: Thu Apr 15, 2021 11:12 am
by thefunkyjoint
That's great news ! Looking forward to the update :D

Re: Spotify links crash the browser

Posted: Wed May 05, 2021 5:23 am
by coater
Branch Date Release Branch Chromium Version
Apr 2021 4472 91 91
-------
If this version repair the error? When cef4 will build on this version?
Thank you very much!

Re: Spotify links crash the browser

Posted: Wed May 05, 2021 7:05 am
by salvadordf
That issue is fixed since April 18, 2021 when CEF4Delphi was updated to CEF 90 with the 4430 branch.

The version you mention uses a branch in development state and CEF4Delphi is not using it yet.

The CEF branch 4470 uses Chromium 91 which will be considered stable in a few weeks but you don't have to use that branch to fix this issue.
Just download the latest CEF4Delphi version from GitHub now.

Re: Spotify links crash the browser

Posted: Wed May 05, 2021 9:08 am
by coater
Thanks!
I visited chromium website and found that 90.0.4430.96 is available. Is this will be updated in the future?

Re: Spotify links crash the browser

Posted: Wed May 05, 2021 9:26 am
by salvadordf
CEF uses Chromium 90.0.4430.93 at this moment.

CEF4Delphi is just a CEF wrapper and it can only use the Chromium version used by CEF at each moment.

Re: Spotify links crash the browser

Posted: Thu May 06, 2021 1:55 am
by coater
Thanks!
Where can I see the cef version such as 90.6.4 in this websit(https://bitbucket.org/chromiumembedded/cef/src/4430/)?.