Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Spotify links crash the browser

thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

Spotify links crash the browser

Post 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 ?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Spotify links crash the browser

Post 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
thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

Re: Spotify links crash the browser

Post by thefunkyjoint »

Thanks for the feedback Salvador ! So, let's wait a fix :?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Spotify links crash the browser

Post 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.
thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

Re: Spotify links crash the browser

Post by thefunkyjoint »

That's great news ! Looking forward to the update :D
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: Spotify links crash the browser

Post 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!
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Spotify links crash the browser

Post 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.
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: Spotify links crash the browser

Post by coater »

Thanks!
I visited chromium website and found that 90.0.4430.96 is available. Is this will be updated in the future?
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Spotify links crash the browser

Post 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.
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: Spotify links crash the browser

Post 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/)?.
Post Reply